Resource Center/Resource Pool/VM Instance Operations
PUTVM Instance OperationsSince 4.6.0SynchronousAuth Required
UpdateDirectory
UpdateDirectory
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
uuidStringRequiredThe resource UUID.
nameStringRequiredThe resource name.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/update/directory
/zstack/v1/update/directory
Request Example
curl -X PUT 'http://{host}/zstack/v1/update/directory' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"uuid":"<uuid>","name":"<name>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "ce9c80c271df30eba545af5b7efc6b09", "name": "test", "groupName": "admin/first/second", "parentUuid": "5cc7f45b66783385b3f4a9d1ef109a5d", "rootDirectoryUuid": "57290934e96a305fbdad6ccb33bb64b8", "zoneUuid": "b103949274663c19b9675ea6f6505dd5", "type": "default" } }Change History
This API has no change history records yet.
