-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Query Parameter to GenerateSshKeyPair API (#26090)
* init * PR comments * Turning this into a POST * fix * another fix * fixes * fixes * fix
- Loading branch information
1 parent
3879354
commit 83525ba
Showing
3 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...-01/examples/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair_EncryptionWithEd25519.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2023-09-01", | ||
"sshPublicKeyName": "mySshPublicKeyName", | ||
"parameters": { | ||
"encryptionType": "RSA" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"privateKey": "{ssh private key}", | ||
"publicKey": "{ssh-rsa public key}", | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/SshPublicKeys/mySshPublicKeyName" | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...3-09-01/examples/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair_EncryptionWithRSA.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2023-09-01", | ||
"sshPublicKeyName": "mySshPublicKeyName", | ||
"parameters": { | ||
"encryptionType": "RSA" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"privateKey": "{ed25519 private key}", | ||
"publicKey": "{ed25519 public key}", | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/SshPublicKeys/mySshPublicKeyName" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters