Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Query Parameter to GenerateSshKeyPair API #26090

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2023-09-01",
"sshPublicKeyName": "mySshPublicKeyName",
"encryption": "ed25519"
},
"responses": {
"200": {
"body": {
"privateKey": "{ssh private key}",
"publicKey": "{ssh-rsa public key}",
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/SshPublicKeys/mySshPublicKeyName?api-version=2023-09-01&encryption=ed25519"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,13 @@
"type": "string",
"description": "The name of the SSH public key."
},
{
"name": "encryption",
"in": "query",
"required": false,
"type": "string",
"description": "SshKey pair encryption type. Options available are: ed25519 or rsa [encryption=ed25519 or encryption=rsa]. Default is RSA."
},
{
"$ref": "../../../common-types/v1/common.json#/parameters/ApiVersionParameter"
},
Expand All @@ -395,6 +402,9 @@
"x-ms-examples": {
"Generate an SSH key pair.": {
"$ref": "./examples/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair.json"
},
"Generate an SSH key pair with Ed25519 encryption.": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as above Generate a instead of an

"$ref": "./examples/sshPublicKeyExamples/SshPublicKey_GenerateKeyPairEd25519.json"
}
}
}
Expand Down