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
OK 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.
{- "pageSize": 50,
- "totalItems": 1800,
- "totalPages": 36,
- "workspaces": [
- {
- "cost": "12.13",
- "created": 1672531200,
- "currency": "USD",
- "workspace_id": "Necessitatibus sint dolorum aut earum officia natus.",
- "workspace_name": "Et veniam adipisci ut."
}, - {
- "cost": "12.13",
- "created": 1672531200,
- "currency": "USD",
- "workspace_id": "Necessitatibus sint dolorum aut earum officia natus.",
- "workspace_name": "Et veniam adipisci ut."
}, - {
- "cost": "12.13",
- "created": 1672531200,
- "currency": "USD",
- "workspace_id": "Necessitatibus sint dolorum aut earum officia natus.",
- "workspace_name": "Et veniam adipisci ut."
}, - {
- "cost": "12.13",
- "created": 1672531200,
- "currency": "USD",
- "workspace_id": "Necessitatibus sint dolorum aut earum officia natus.",
- "workspace_name": "Et veniam adipisci ut."
}
]
}
List the cost of the workspace and correlate it with the executions
OK 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.
[- {
- "account": "i9",
- "cost": "12.13",
- "created": 1672531200,
- "currency": "USD",
- "org": "j",
- "pipeline": "Esse voluptatem dicta aliquid.",
- "pipeline_execution_id": "Enim sunt et vero eaque.",
- "pipeline_stage_id": "Placeat delectus.",
- "project": "s9n",
- "workspace": "Vel vero."
}, - {
- "account": "i9",
- "cost": "12.13",
- "created": 1672531200,
- "currency": "USD",
- "org": "j",
- "pipeline": "Esse voluptatem dicta aliquid.",
- "pipeline_execution_id": "Enim sunt et vero eaque.",
- "pipeline_stage_id": "Placeat delectus.",
- "project": "s9n",
- "workspace": "Vel vero."
}, - {
- "account": "i9",
- "cost": "12.13",
- "created": 1672531200,
- "currency": "USD",
- "org": "j",
- "pipeline": "Esse voluptatem dicta aliquid.",
- "pipeline_execution_id": "Enim sunt et vero eaque.",
- "pipeline_stage_id": "Placeat delectus.",
- "project": "s9n",
- "workspace": "Vel vero."
}, - {
- "account": "i9",
- "cost": "12.13",
- "created": 1672531200,
- "currency": "USD",
- "org": "j",
- "pipeline": "Esse voluptatem dicta aliquid.",
- "pipeline_execution_id": "Enim sunt et vero eaque.",
- "pipeline_stage_id": "Placeat delectus.",
- "project": "s9n",
- "workspace": "Vel vero."
}
]