This API enables you to retrieve all the billing policies.
The syntax for calling this method is:
GET <Base_Url>/billingPolicies
A sample API call is as follows:
GET https://123.123.123.123/vCenter-CB/api/billingPolicies
You must be authenticated with vCenter Chargeback Manager but do not need any special privileges.
XPath |
Type |
Min Occurs |
Max Occurs |
Description |
BillingPolicies/BillingPolicy |
1 |
unbounded |
Represents the billing policy that is modified. |
|
BillingPolicies/BillingPolicy/@id |
xs:int |
1 |
1 |
ID of the billing policy. |
BillingPolicies/BillingPolicy/Name |
xs:string |
1 |
1 |
Name of the billing policy. |
BillingPolicies/BillingPolicy/Description |
xs:string |
1 |
1 |
Description of the billing policy. Description should not exceed 512 characters. |
BillingPolicies/BillingPolicy/Expression |
xs:string |
1 |
1 |
Expression used to calculate the cost. The expressions should follow the correct syntax |
A sample response is provided here.
For description of the error codes displayed by this API, see the Error Codes table.