Operations Management/Billing Management Operations
POSTBilling Management OperationsSince 0.6SynchronousAuth Required
CreateResourcePrice
CreateResourcePrice
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
resourceNameStringRequiredThe resource name.
resourceUnitStringOptional. The billing unit of the resource.
timeUnitStringRequiredThe billing time unit.
pricedoubleRequiredThe unit price.
accountUuidStringOptional. The account UUID.
dateInLongLongOptional. The long-integer time.
tableUuidStringOptional. The price table UUID.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/billings/prices
/zstack/v1/billings/prices
Request Example
curl -X POST 'http://{host}/zstack/v1/billings/prices' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"resourceName":"<resourceName>","resourceUnit":"<resourceUnit>","timeUnit":"<timeUnit>","price":1,"accountUuid":"<accountUuid>","dateInLong":1,"tableUuid":"<tableUuid>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "437ade61b17e4c658844fdacfb0fc6de", "resourceName": "Volume", "resourceUnit": "1", "timeUnit": "s", "price": 2.0 } }Change History
This API has no change history records yet.
