Costs
Costs Service handles the API related with the costs attached to workspaces. This API is read only as all the cost are generated in the plugin side
List the monthly cost per each workspace
Org is the organisation identifier.
3Project is the project identifier.
yjSpecify the start time for the query
1691150743950Specify the end time limit for the query
1691150743950Page is the page number to return relative to the page 'limit'.
1Example: 1Limit is the number of records to return for a page.
30Example: 30Filter the workspaces to retrieve the cost
["Dolorem ullam eos.","Et doloribus et quasi dolor et.","Mollitia possimus iure ad."]Account is the internal customer account ID.
tqjOK response.
Current page size
50Total items available
1800Total pages available
36BadRequestError: 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/orgs/{org}/projects/{project}/costs HTTP/1.1
Host: localhost:80
Harness-Account: tqj
Accept: */*
{
"pageSize": 50,
"totalItems": 1800,
"totalPages": 36,
"workspaces": [
{
"cost": "12.13",
"created": 1672531200,
"currency": "USD",
"workspace_id": "Unde qui ab rerum.",
"workspace_name": "Aperiam sapiente hic."
},
{
"cost": "12.13",
"created": 1672531200,
"currency": "USD",
"workspace_id": "Unde qui ab rerum.",
"workspace_name": "Aperiam sapiente hic."
},
{
"cost": "12.13",
"created": 1672531200,
"currency": "USD",
"workspace_id": "Unde qui ab rerum.",
"workspace_name": "Aperiam sapiente hic."
},
{
"cost": "12.13",
"created": 1672531200,
"currency": "USD",
"workspace_id": "Unde qui ab rerum.",
"workspace_name": "Aperiam sapiente hic."
}
]
}List the cost of the workspace and correlate it with the executions
Org is the organisation identifier.
sProject is the project identifier.
7bWorkspace id to retrieve the cost and the metadata associated with it
Sit sunt aut.Limit is the number of records to return for a page.
30Example: 30Page is the page number to return relative to the page 'limit'.
1Example: 1Specify the start time for the query
1691150743950Specify the end time limit for the query
1691150743950Account is the internal customer account ID.
wqiOK response.
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.
GET /api/orgs/{org}/projects/{project}/costs/{workspace} HTTP/1.1
Host: localhost:80
Harness-Account: wqi
Accept: */*
[
{
"account": "dl",
"activity_type": "apply",
"cost": "12.13",
"created": 1672531200,
"currency": "USD",
"org": "id5",
"pipeline": "Similique consequatur veritatis id nam.",
"pipeline_execution_id": "Debitis eos dolorem voluptatibus.",
"pipeline_stage_id": "Omnis nesciunt fuga dolores est.",
"project": "1c",
"workspace": "Asperiores dolorem qui laborum est."
},
{
"account": "dl",
"activity_type": "apply",
"cost": "12.13",
"created": 1672531200,
"currency": "USD",
"org": "id5",
"pipeline": "Similique consequatur veritatis id nam.",
"pipeline_execution_id": "Debitis eos dolorem voluptatibus.",
"pipeline_stage_id": "Omnis nesciunt fuga dolores est.",
"project": "1c",
"workspace": "Asperiores dolorem qui laborum est."
}
]Last updated
Was this helpful?