usage

Usage service handles licencing

Show usage

Retrieve a single usage

Securityx-api-key
Request
path Parameters
metric
required
string

Usage metric

Example: Dolorum aut mollitia.
query Parameters
accountIdentifier
required
string

Account identifier

Example: accountIdentifier=Excepturi autem quia rem ea.
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": "Necessitatibus nesciunt dolorem modi corporis."
}

Show licence

Check whether the account is currently licenced

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

Account identifier

Example: Deserunt est repellat aut necessitatibus sint.
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": "p",
  • "isLicenced": false,
  • "isPaid": false,
  • "reason": "Qui commodi et quos aut.",
  • "startTime": 4525895836765393400,
  • "total": 2458082902234963000,
  • "used": 1091736013650703700
}