Resource Center/Resource Pool/SSH Key Operations
POSTSSH Key OperationsSince 4.7.21SynchronousAuth Required
GenerateSshKeyPair
GenerateSshKeyPair
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.
nameStringRequiredThe resource name.
descriptionStringOptional. Optional. The detailed description of the resource.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/ssh-key-pair/generate
/zstack/v1/ssh-key-pair/generate
Request Example
curl -X POST 'http://{host}/zstack/v1/ssh-key-pair/generate' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"name":"<name>","description":"<description>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "25d8c1517825305f9dbcfd5413197faf", "name": "ssh-key-pair", "publicKey": "ssh-public-key", "privateKey": "ssh-private-key" } }Change History
This API has no change history records yet.
