[{"label":"Latest (8.10.0)","version":"latest"},{"version":"8.6.3"}]
vrealize-operations

Create Metering Policy

Description

Create a new pricing policy

Request

Request

URL

URL


post
https://localhost/suite-api/api/pricing
Copy

Request Body

Request Body

pricing-policy of type(s) application/json, application/xml Required

The pricing policy that needs to be created

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

201 Created

Returns PricingPolicy of type(s) application/json, application/xml

The pricing policy was created successfully in the system

Errors

Errors

422

An invalid request body was specified or any constraints were violated


500

There was an error during the creation of the pricing policy

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"chargeModel":"ALLOCATION_POOL","createdBy":"VRA","description":"string","id":"string","lastUpdateTimestamp":0,"links":[{"description":"string","href":"string","name":"string","rel":"NEXT"}],"meterings":[{"itemName":"string","metering":{"baseRate":0,"chargeBasedOn":"USAGE","chargeOnPowerState":"ALWAYS","chargePeriod":"HOURLY","conditionalBaseRates":[{"baseRate":0,"usageLowerBound":0}],"fixedPrice":0,"overage":false,"overageRate":0,"unit":"string"}}],"name":"string","namedMeterings":[{"itemName":"string","meterings":[{"metering":{"baseRate":0,"chargeBasedOn":"USAGE","chargeOnPowerState":"ALWAYS","chargePeriod":"HOURLY","conditionalBaseRates":[{"baseRate":0,"usageLowerBound":0}],"fixedPrice":0,"overage":false,"overageRate":0,"unit":"string"},"name":"string"}]}],"oneTimeMeterings":[{"itemName":"string","oneTimeMetering":{"oneTimeFixedPrice":0}}],"tagBasedMeterings":[{"itemName":"string","meterings":[{"key":"string","metering":{"baseRate":0,"chargeBasedOn":"USAGE","chargeOnPowerState":"ALWAYS","chargePeriod":"HOURLY","conditionalBaseRates":[{"baseRate":0,"usageLowerBound":0}],"fixedPrice":0,"overage":false,"overageRate":0,"unit":"string"},"value":"string"}]}],"tagBasedOneTimeMeterings":[{"itemName":"string","oneTimeMeterings":[{"key":"string","oneTimeMetering":{"oneTimeFixedPrice":0},"value":"string"}]}],"tagBasedPolicyRefs":[{"itemName":"string","policyRefs":[{"key":"string","policyRef":{"policyId":"string","priority":0},"value":"string"}]}],"tagBasedRateFactors":[{"itemName":"string","rateFactors":[{"key":"string","rateFactor":{"contextMeteringItem":"string","rateFactor":0},"value":"string"}]}],"unconditionalMeterings":[{"itemName":"string","unconditionalMetering":{"chargePeriod":"HOURLY","rate":0}}]}' https://localhost/suite-api/api/pricing


[{"label":"Latest (8.10.0)","version":"latest"},{"version":"8.6.3"}]
vrealize-operations
Feedback

Was this page helpful?