Usage
Usage service handles licencing
Retrieve a single usage
Usage metric
Est hic voluptatem debitis.Account identifier
Velit et.OK response.
Modi doloribus voluptas.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=Velit+et. HTTP/1.1
Host: localhost:80
Accept: */*
{
"data": {
"ansible": {
"uniqueHosts30d": 4067307001481856000
},
"count": 9181301836106756000
},
"status": "Vero similique quod molestiae a."
}Check whether the account is currently licenced
Account identifier
Voluptatum voluptatem sint.OK response.
Account identifier
mTrue 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
Maxime facere sint enim quam ad repellendus.The unix timestamp of the current period over which usage was calculated
8573895961321331000The total number of successful apply operations this account is licenced to perform
8750728927331978000The count of successful apply operations already performed
4307504862176186400BadRequestError: 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: Voluptatum voluptatem sint.
Accept: */*
{
"account": "ssb",
"ansible": {
"total": 4998838773847544000,
"used": 286535700307776160
},
"isLicenced": true,
"isPaid": true,
"reason": "Qui modi.",
"startTime": 890492665697337700,
"total": 6672047796945337000,
"used": 6869223821422257000
}Last updated
Was this helpful?