O&M Management/Custom Attribute
PUTCustom AttributeSince 4.10.16SynchronousAuth Required
Update Custom Attribute Key
Update Custom Attribute Key
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
uuidStringRequiredCustom attribute key UUID
Body Fields
updateresourceattributekeyObjectRequiredupdateresourceattributekey request body object.
nameStringKey name
descriptionStringDetailed description of the resource
resourceTypesListList of resource types supported by this attribute
createConstraintsListNewly created constraints
updateConstraintsListUpdated constraints
deleteConstraintIdsListList of constraint IDs to delete
systemTagsListSystem tags
userTagsListUser tags
Responses
Endpoint
PUT/zstack/v1/resource-attributes/{uuid}/actions
/zstack/v1/resource-attributes/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/resource-attributes/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"updateresourceattributekey":{"name":"<name>","description":"<description>","resourceTypes":["<resourceTypes>"],"createConstraints":["<createConstraints>"],"updateConstraints":["<updateConstraints>"],"deleteConstraintIds":["<deleteConstraintIds>"]},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "ff03a2b491023030bf58b1b35ea9cd00", "name": "OperationsPersonnel", "description": "Kinny", "resourceTypes": [ "VmInstanceVO" ], "createDate": "Nov 14, 2017 2:20:57 PM", "lastOpDate": "Nov 14, 2017 2:20:57 PM", "constraints": [ { "id": 1, "keyUuid": "ff03a2b491023030bf58b1b35ea9cd00", "type": "option", "parameter": "Kinny", "createDate": "Nov 14, 2017 2:20:57 PM", "lastOpDate": "Nov 14, 2017 2:20:57 PM" } ] } }Change History
This API has no change history records yet.
