Usage
Access Account Usage
Report usage
Harness Account ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Timestamp indicating the end of the usage interval (in milliseconds since Unix epoch)
1670427991307Usage calculation interval (in days)
30Example: 30OK response.
Usage Result
Account identifier
BdsgiWzwT7CQFeJl9XkQ3AHarness module
STOTimestamp
1670427991307BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
GET /gateway/sto/api/usage?accountId=abcdef1234567890ghijkl×tamp=1670427991307 HTTP/1.1
Host: app.harness.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"accountIdentifier": "BdsgiWzwT7CQFeJl9XkQ3A",
"activeDevelopers": {
"count": 0,
"displayName": "Last 30 Days",
"references": [
"Vitae dolorum ullam atque aut cum qui.",
"Dolore tempore incidunt expedita voluptatem excepturi.",
"Eos culpa."
]
},
"activeScans": {
"count": 0,
"displayName": "Last 30 Days",
"references": [
"Vitae dolorum ullam atque aut cum qui.",
"Dolore tempore incidunt expedita voluptatem excepturi.",
"Eos culpa."
]
},
"module": "STO",
"timestamp": 1670427991307
}Report usage for all accounts
Timestamp indicating the end of the usage interval (in milliseconds since Unix epoch)
1670427991307Usage calculation interval (in days)
30Example: 30OK response.
All Accounts Usage Result
Timestamp
1670427991307BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
GET /gateway/sto/api/usage/all-accounts?timestamp=1670427991307 HTTP/1.1
Host: app.harness.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"timestamp": 1670427991307,
"usage": [
{
"accountId": "BdsgiWzwT7CQFeJl9XkQ3A",
"developerCount": 25,
"harnessCodeCount": 100,
"harnessContainerCount": 50,
"scanCount": 5000
},
{
"accountId": "BdsgiWzwT7CQFeJl9XkQ3A",
"developerCount": 25,
"harnessCodeCount": 100,
"harnessContainerCount": 50,
"scanCount": 5000
},
{
"accountId": "BdsgiWzwT7CQFeJl9XkQ3A",
"developerCount": 25,
"harnessCodeCount": 100,
"harnessContainerCount": 50,
"scanCount": 5000
}
]
}Last updated
Was this helpful?