Resource Center/Resource Pool/SSH Key Operations
PUTSSH Key OperationsSince 4.7.21SynchronousAuth Required
UpdateSshKeyPair
UpdateSshKeyPair
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
uuidStringRequiredThe resource UUID.
Body Fields
updatesshkeypairObjectRequiredupdatesshkeypair request body object.
nameStringOptional. The resource name.
descriptionStringOptional. Optional. The detailed description of the resource.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/ssh-key-pair/{uuid}/actions
/zstack/v1/ssh-key-pair/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/ssh-key-pair/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"updatesshkeypair":{"name":"<name>","description":"<description>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "15565277de143faea29e6fcc571c4d1d", "name": "ssh-key-pair", "publicKey": "" } }Change History
This API has no change history records yet.
