Operations Management/Billing Management Operations
PUTBilling Management OperationsSince 3.7.2SynchronousAuth Required
UpdateResourcePrice
UpdateResourcePrice
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
uuidStringRequiredThe resource price UUID.
Body Fields
updateresourcepriceObjectRequiredupdateresourceprice request body object.
endDateInLongLongOptional. The resource price expiration date.
setEndDateInLongBaseOnCurrentTimebooleanOptional. Sets the resource price expiration date to the current time.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/billings/prices/{uuid}/actions
/zstack/v1/billings/prices/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/billings/prices/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"updateresourceprice":{"endDateInLong":1,"setEndDateInLongBaseOnCurrentTime":true},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "d7d2b639707c3e158f9f94cdfff8dc88", "resourceName": "Volume", "resourceUnit": "1", "timeUnit": "s", "price": 2.0, "dateInLong": 1.510669257141E12, "endDateInLong": 1.511029257141E12 } }Change History
This API has no change history records yet.
