usage

Usage service handles licencing

Show usage

Retrieve a single usage

Securityx-api-key
Request
path Parameters
metric
required
string

Usage metric

Example: Ea vitae voluptatem.
query Parameters
accountIdentifier
required
string

Account identifier

Example: accountIdentifier=Enim deleniti voluptatem voluptatum rerum officiis sit.
Responses
200

OK response.

400

BadRequestError: Bad Request response.

401

UnauthorizedError: Unauthorized response.

403

ForbiddenError: Forbidden response.

404

NotFoundError: Not Found response.

408

TimeoutError: Request Timeout response.

409

ConflictError: Conflict response.

423

LockedError: Locked response.

499

ContextCancelledError: response.

500

InternalServerError: Internal Server Error response.

502

BadGatewayError: Bad Gateway response.

put/iacm/api/enforcement/client/usage/{metric}
Request samples
Response samples
application/json
{
  • "data": {
    },
  • "status": "Expedita repellendus magnam quos."
}

Show licence

Check whether the account is currently licenced

Securityx-api-key
Request
header Parameters
Harness-Account
required
string

Account identifier

Example: Exercitationem numquam quidem temporibus cumque neque.
Responses
200

OK response.

400

BadRequestError: Bad Request response.

401

UnauthorizedError: Unauthorized response.

403

ForbiddenError: Forbidden response.

404

NotFoundError: Not Found response.

408

TimeoutError: Request Timeout response.

409

ConflictError: Conflict response.

423

LockedError: Locked response.

499

ContextCancelledError: response.

500

InternalServerError: Internal Server Error response.

502

BadGatewayError: Bad Gateway response.

get/iacm/api/usage/check-licence
Request samples
Response samples
application/json
{
  • "account": "zz6",
  • "isLicenced": false,
  • "isPaid": false,
  • "reason": "Dolor voluptatem et maiores numquam.",
  • "startTime": 6605955080534140000,
  • "total": 6107093804927690000,
  • "used": 8179007119811445000
}