This API enables you to query for all attributes created in vCenter Chargeback Manager on which the user has a role with Read privilege. This API does not return the attributes imported from vCenter Server.
The syntax for calling this method is:
GET <Base URL>/attributes
A sample API call is as follows:
GET https://123.123.123.123/vCenter-CB/api/attributes
To call this API, you should be authenticated but do not need any special privileges.
If the operation is successful, the API gets an XML response with the following details.
XPath |
Type |
Min Occurs |
Max Occurs |
Description |
---|---|---|---|---|
Attributes/Attribute |
|
0 |
unbounded |
Represents an attribute. |
Attributes/Attribute/@id |
xs:int |
1 |
1 |
ID of the attribute. |
Attributes/Attribute/Name |
xs:string |
1 |
1 |
Name of the attribute. |
Attributes/Attribute/Description |
xs:string |
1 |
1 |
Description provided for the attribute. |
A sample response is provided here.