Usage
Usage service handles licencing
Retrieve a single usage
Usage metric
Consequatur nam.Account identifier
Rem earum ut ut voluptatum quidem eius.OK response.
Aut et vel id quo.BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
PUT /api/enforcement/client/usage/{metric}?accountIdentifier=Rem+earum+ut+ut+voluptatum+quidem+eius. HTTP/1.1
Host: localhost:80
Accept: */*
{
"data": {
"ansible": {
"uniqueHosts30d": 3681136019911911400
},
"count": 3643502814306413000
},
"status": "Sunt molestiae facere temporibus repellendus hic reprehenderit."
}Check whether the account is currently licenced
Account identifier
Mollitia sed laudantium animi in quia doloremque.OK response.
Account identifier
hnTrue when this account is currently licenced to execute apply operations
falseTrue when this account is a paid account
trueIf the account is not licenced, this is the reason why
Explicabo quasi non magnam debitis.The unix timestamp of the current period over which usage was calculated
4931644747963660000The total number of successful apply operations this account is licenced to perform
4979462508537017000The count of successful apply operations already performed
4167969778573592000BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/usage/check-licence HTTP/1.1
Host: localhost:80
Harness-Account: Mollitia sed laudantium animi in quia doloremque.
Accept: */*
{
"account": "x6h",
"activeWorkspaces": {
"total": 3431452212837257700,
"used": 8050654051313454000
},
"ansible": {
"total": 3231037647155435500,
"used": 3694293662675364400
},
"isLicenced": true,
"isPaid": false,
"reason": "Facere praesentium nesciunt possimus.",
"startTime": 4514877314331004400,
"total": 2571575050103393300,
"used": 8692624268400836000
}Last updated
Was this helpful?