usage

Usage service handles licencing

getUsage usage

Retrieve a single usage

Securityx-api-key
Request
path Parameters
metric
required
string

Usage metric

Example: Quas consequatur vel inventore ad quo occaecati.
query Parameters
accountIdentifier
required
string

Account identifier

Example: accountIdentifier=Et architecto ipsum.
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": "Deserunt aut possimus velit dicta."
}

checkLicence usage

Check whether the account is currently licenced

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

Account identifier

Example: Ea quidem.
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": "2b",
  • "isLicenced": false,
  • "isPaid": false,
  • "reason": "Omnis et et eius rem officia est.",
  • "startTime": 8897094788876478000,
  • "total": 3673585892653777000,
  • "used": 1996890563105202700
}