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

Update Metering Policy

Description

Update the specified pricing policy

Request

Request

URL

URL


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

Request Body

Request Body

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

The pricing policy identifier

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK returns PricingPolicy of type(s) application/json, application/xml

The pricing policy was updated 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 update of the pricing policy

Code Samples

Code Samples

cURL Command

curl -X PUT -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.6.3)","version":"latest"}]
vrealize-operations
Feedback

Was this page helpful?