Skip to content

Commit 4f41edb

Browse files
author
Uday Sahni
committed
PR Fixes and changes to reflect entity changes
1 parent 8c6383e commit 4f41edb

1 file changed

Lines changed: 20 additions & 15 deletions

File tree

source/includes/openstack/_sshKeys.md

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ curl -H "MC-Api-Key: your_api_key" \
1212
{
1313
"data": [
1414
{
15-
"name": "SSHKeyA",
15+
"id": "ssh-key-a",
16+
"name": "ssh-key-a",
1617
"fingerprint": "17:43:84:aa:a1:ed:6b:aa:10:be:73:1f:63:d0:53:16",
1718
"publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDlf6/L7kuWWyo8y718JXeKKJa5kdT5QT0GcJUVvuLGNAf/Xjwhc9ThaQk+5mBs49hECTTYlOP0J5lb69kpU2fCmRzroazMD8isOh33o7HdNT9F2CWEKCHJ4Qhd40bXf3b4twz43HIo/pkPyJZ7OVC1v39UNvSkh+iNdUkCVZAO9ijAeW4n+F6WSKG1GqZrdElGSMpTM/DMmNo393N3xOcW4Z9qjG7PGdPIgtxqM/wmyyv0id5eV/QkciOaVEgJ7jzQ/iQA1rdEPI7EojLFgaNTIRjp/fQ/BPQ47ZKimwRzns1csupr2BENDpAXqAqHTgSpEyeG/5OvD4oA521fLoiv Generated-by-Nova"
1819
},
1920
{
20-
"name": "SSHKeyB",
21+
"id": "ssh-key-b",
22+
"name": "ssh-key-b",
2123
"fingerprint": "2b:36:6b:f7:98:ef:6a:32:bf:c8:19:94:80:c1:44:60",
2224
"publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCnZh9CoR97SY2gA7/JhShzNcxt0VVEi0QMOH/IJZWdu5mtSdJrIvZVTMVVKdae6PUQaYsVt5IImeOZLYiHkUNvvkm291BnKwuymjV9J/CftRs0ZM0X/VhftmROAT5G89Fw57VU6L6bjV4ex7fvAAhr44KJZsgViswOcxJSuwoGmQX15GJAxsSOQ4GthHWJWoifBG0la7+rtAPRUS/qAcCcVuaLNqTalSUtrAytD8J4tswd6UzzPf3MUJWMW36aExwhJW22oHQxvOSot2e36ZFhtHXj1PJs4ZG9mE9JMMz/Y9eIdHMg30vb/YQ5ftsJUs9xjjDD5+fjQxttB1QqqyCp Generated-by-Nova"
2325
}
@@ -34,36 +36,39 @@ Retrieve a list of SSH keys in an OpenStack domain.
3436

3537
Attributes | Description
3638
---------------------------------- | -----------------------------------
37-
`name`<br/>*string* | The SSH key's name which is the unique identifier for the entity
39+
`id`<br/>*string* | The SSH key's ID which takes the same value as the name
40+
`name`<br/>*string* | The SSH key's name
3841
`fingerprint`<br/>*string* | A short sequence of bytes used to identify the SSH key
3942
`publicKey`<br/>*string* | The SSH public key
4043

4144
#### Retrieve a SSH key
4245

4346
```shell
4447
curl -H "MC-Api-Key: your_api_key" \
45-
"https://api.your.cloudmc/v1/services/compute-os/devel/sshkeys/SSHKeyA"
48+
"https://api.your.cloudmc/v1/services/compute-os/devel/sshkeys/ssh-key-a"
4649
```
4750
```json
4851
{
4952
"data": {
50-
"name": "SSHKeyA",
53+
"id": "ssh-key-a",
54+
"name": "ssh-key-a",
5155
"fingerprint": "17:43:84:aa:a1:ed:6b:aa:10:be:73:1f:63:d0:53:16",
52-
"createDate": "2017-06-13T15:26:27.000Z",
56+
"createDate": "2017-06-19T16:19:48.000Z",
5357
"publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDlf6/L7kuWWyo8y718JXeKKJa5kdT5QT0GcJUVvuLGNAf/Xjwhc9ThaQk+5mBs49hECTTYlOP0J5lb69kpU2fCmRzroazMD8isOh33o7HdNT9F2CWEKCHJ4Qhd40bXf3b4twz43HIo/pkPyJZ7OVC1v39UNvSkh+iNdUkCVZAO9ijAeW4n+F6WSKG1GqZrdElGSMpTM/DMmNo393N3xOcW4Z9qjG7PGdPIgtxqM/wmyyv0id5eV/QkciOaVEgJ7jzQ/iQA1rdEPI7EojLFgaNTIRjp/fQ/BPQ47ZKimwRzns1csupr2BENDpAXqAqHTgSpEyeG/5OvD4oA521fLoiv Generated-by-Nova"
5458
}
5559
}
5660
```
5761

58-
<code>GET /services/<a href="#service-connections">:service_code</a>/<a href="#environments">:environment_name</a>/sshkeys/:name</code>
62+
<code>GET /services/<a href="#service-connections">:service_code</a>/<a href="#environments">:environment_name</a>/sshkeys/:id</code>
5963

6064
Retrieve a single SSH key in an OpenStack domain.
6165

6266
Attributes | Description
6367
---------------------------------- | -----------------------------------
64-
`name`<br/>*string* | The SSH key's name which is the unique identifier for the entity
65-
`fingerprint`<br/>*string* | A short sequence of bytes used to identify the SSH key
66-
`createDate` <br/> *date* | The date the SSH key was created
68+
`id`<br/>*string* | The SSH key's ID which takes the same value as the name
69+
`name`<br/>*string* | The SSH key's name
70+
`fingerprint`<br/>*string* | A short sequence of bytes used to identify the SSH key
71+
`createDate` <br/> *date* | The date the SSH key was created
6772
`publicKey`<br/>*string* | The SSH public key
6873

6974
#### Create a SSH key
@@ -78,8 +83,8 @@ curl -X POST \
7883
```
7984
```json
8085
{
81-
"name": "SSHKeyC",
82-
"publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDlf6/L7kuWWyo8y718JXeKKJa5kdT5QT0GcJUVvuLGNAf/Xjwhc9ThaQk+5mBs49hECTTYlOP0J5lb69kpU2fCmRzroazMD8isOh33o7HdNT9F2CWEKCHJ4Qhd40bXf3b4twz43HIo/pkPyJZ7OVC1v39UNvSkh+iNdUkCVZAO9ijAeW4n+F6WSKG1GqZrdElGSMpTM/DMmNo393N3xOcW4Z9qjG7PGdPIgtxqM/wmyyv0id5eV/QkciOaVEgJ7jzQ/iQA1rdEPI7EojLFgaNTIRjp/fQ/BPQ47ZKimwRzns1csupr2BENDpAXqAqHTgSpEyeG/5OvD4oA521fLoiv Generated-by-Nova"
86+
"name": "ssh-key-c",
87+
"publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDlf6/L7kuWWyo8y718JXeKKJa5kdT5QT0GcJUVvuLGNAf/Xjwhc9ThaQk+5mBs49hECTTYlOP0J5lb69kpU2fCmRzroazMD8isOh33o7HdNT9F2CWEKCHJ4Qhd40bXf3b4twz43HIo/pkPyJZ7OVC1v39UNvSkh+iNdUkCVZAO9ijAeW4n+F6WSKG1GqZrdElGSMpTM/DMmNo393N3xOcW4Z9qjG7PGdPIgtxqM/wmyyv0id5eV/QkciOaVEgJ7jzQ/iQA1rdEPI7EojLFgaNTIRjp/fQ/BPQ47ZKimwRzns1csupr2BENDpAXqAqHTgSpEyeG/5OvD4oA521fLoiv Generated-by-Nova"
8388
}
8489
```
8590

@@ -89,17 +94,17 @@ Create a SSH key.
8994

9095
Required attributes | Description
9196
---------------------------------- | -----------------------------------
92-
`name`<br/>*string* | The SSH key's name which is the unique identifier for the entity
97+
`name`<br/>*string* | The SSH key's name
9398
`publicKey`<br/>*string* | A public SSH key in RSA format
9499

95100
#### Delete a SSH key
96101

97102
```shell
98103
curl -X DELETE \
99104
-H "MC-Api-Key: your_api_key" \
100-
"https://api.your.cloudmc/v1/services/compute-os/devel/sshkeys/SSHKeyC"
105+
"https://api.your.cloudmc/v1/services/compute-os/devel/sshkeys/ssh-key-c"
101106
```
102107

103-
<code>DELETE /services/<a href="#service-connections">:service_code</a>/<a href="#environments">:environment_name</a>/sshkeys/:name</code>
108+
<code>DELETE /services/<a href="#service-connections">:service_code</a>/<a href="#environments">:environment_name</a>/sshkeys/:id</code>
104109

105110
Delete a SSH key.

0 commit comments

Comments
 (0)