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.
ui9Project is the project identifier.
pvSpecify 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
["Expedita qui.","Facilis rem ipsam et aut."]Account is the internal customer account ID.
cOK 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: c
Accept: */*
{
"pageSize": 50,
"totalItems": 1800,
"totalPages": 36,
"workspaces": [
{
"cost": "12.13",
"created": 1672531200,
"currency": "USD",
"workspace_id": "Modi iure tenetur iusto.",
"workspace_name": "Rem consequuntur repellat sit ex velit."
},
{
"cost": "12.13",
"created": 1672531200,
"currency": "USD",
"workspace_id": "Modi iure tenetur iusto.",
"workspace_name": "Rem consequuntur repellat sit ex velit."
},
{
"cost": "12.13",
"created": 1672531200,
"currency": "USD",
"workspace_id": "Modi iure tenetur iusto.",
"workspace_name": "Rem consequuntur repellat sit ex velit."
}
]
}List the cost of the workspace and correlate it with the executions
Org is the organisation identifier.
6Project is the project identifier.
xjgWorkspace id to retrieve the cost and the metadata associated with it
Praesentium vel ipsum dolorum.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.
jk7OK 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: jk7
Accept: */*
[
{
"account": "p",
"activity_type": "apply",
"cost": "12.13",
"created": 1672531200,
"currency": "USD",
"org": "m",
"pipeline": "Ab consequatur soluta iure ea.",
"pipeline_execution_id": "Velit inventore.",
"pipeline_stage_id": "Ea voluptatem minus assumenda atque.",
"project": "ryg",
"workspace": "Reprehenderit distinctio quis unde quasi aut nihil."
},
{
"account": "p",
"activity_type": "apply",
"cost": "12.13",
"created": 1672531200,
"currency": "USD",
"org": "m",
"pipeline": "Ab consequatur soluta iure ea.",
"pipeline_execution_id": "Velit inventore.",
"pipeline_stage_id": "Ea voluptatem minus assumenda atque.",
"project": "ryg",
"workspace": "Reprehenderit distinctio quis unde quasi aut nihil."
},
{
"account": "p",
"activity_type": "apply",
"cost": "12.13",
"created": 1672531200,
"currency": "USD",
"org": "m",
"pipeline": "Ab consequatur soluta iure ea.",
"pipeline_execution_id": "Velit inventore.",
"pipeline_stage_id": "Ea voluptatem minus assumenda atque.",
"project": "ryg",
"workspace": "Reprehenderit distinctio quis unde quasi aut nihil."
},
{
"account": "p",
"activity_type": "apply",
"cost": "12.13",
"created": 1672531200,
"currency": "USD",
"org": "m",
"pipeline": "Ab consequatur soluta iure ea.",
"pipeline_execution_id": "Velit inventore.",
"pipeline_stage_id": "Ea voluptatem minus assumenda atque.",
"project": "ryg",
"workspace": "Reprehenderit distinctio quis unde quasi aut nihil."
}
]Last updated
Was this helpful?