System Management/System Settings/Custom Attribute
POSTCustom AttributeSince 4.7.0SynchronousAuth Required
Batch Update Resource Custom Attributes
Batch Update Resource Custom Attributes
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
resourceUuidStringRequiredResource UUID of the configuration
Body Fields
resourceConfigsListRequiredThe list of resource custom attributes
systemTagsListSystem tags
userTagsListUser tags
Responses
Endpoint
POST/zstack/v1/resource-configurations/{resourceUuid}/resource-configs/actions
/zstack/v1/resource-configurations/{resourceUuid}/resource-configs/actions
Request Example
curl -X POST 'http://{host}/zstack/v1/resource-configurations/{resourceUuid}/resource-configs/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"resourceConfigs":["<resourceConfigs>"],"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventories": [ { "value": "10", "effectiveConfigs": [ { "uuid": "9d7aeba3ff604f46b419475c0ade1538", "resourceUuid": "378c6a50c9ee415baa4688fcd19f023a", "resourceType": "ClusterVO", "name": "cpu.overProvisioning.ratio", "category": "host", "value": "10", "createDate": "Nov 14, 2017 2:20:57 PM", "lastOpDate": "Nov 14, 2017 2:20:57 PM" } ], "name": "cpu.overProvisioning.ratio" } ] }Change History
This API has no change history records yet.
