Operations Management/Billing Management Operations
PUTBilling Management OperationsSince 0.6SynchronousAuth Required
CalculateAccountSpending
CalculateAccountSpending
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
calculateaccountspendingObjectRequiredcalculateaccountspending request body object.
accountUuidStringRequiredThe account UUID.
dateStartLongOptional. The start date.
dateEndLongOptional. The end date.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/billings/accounts/{accountUuid}/actions
/zstack/v1/billings/accounts/{accountUuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/billings/accounts/{accountUuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"calculateaccountspending":{"accountUuid":"<accountUuid>","dateStart":1,"dateEnd":1},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "total": 200.0, "spending": [ { "spending": 0.0, "details": [] } ] }Change History
This API has no change history records yet.
