Use this information to create a shared infrastructure key.
The following elements are described:
Request
Aspect |
Value |
Endpoint URL |
/api/resource-manager/infrastructure-keys/shared |
HTTP Method |
POST |
Body
Field |
Description |
Mandatory |
name |
The name of the infrastructure key (must be unique). |
Yes |
description |
Infrastructure key description. |
No |
publicKey |
Public key portion of the infrastructure key. |
No |
privateKey |
Private key portion of the infrastructure key. |
No |
Example (YAML)
name: key
description: key
publicKey: ssh-rsa XXAAAAB3NzaC1yc2EAAAADAQABAAABAQDJ1t35uQorDiR8gmXQtbGB6W+NrK4nx+IYj8bTBsQu0gx4jlYNwb2wzaeejLU7QP8FB5G3eclo7emUNK479Eg/UMtPmNzsQhRjlUKonuYLPncLGKtetFgjMnmePvi8mudl9o1alvcdtn41VofNZ4dN8RcgKIJOdS1Xd4vwHEW57PhUNIHs0x2MHfPQ0wsz1vzUrof4B2bxFkXI4f3kTXKV2n3MMfeb736TYfrhBcji4i9OOiQV3jwlrmqeOQyddgrCUB6TEDPJfO6XGqxWSl56CxvbqSSZ3ugplptAoObUHuxJs5P6pMGvC03D5nDq3pSKajAgTix6xjM6Z4LKFHPx accanto@blacktower
privateKey: |
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAvdugKkZpDMCrDks78JMQd9KrL7rPkQeUheAob6oUVeLwhyXm
2q+EQo7oCSc4k2nKXdBTIl2d/ob/jjHQmpeYzjJD3Xk5GHuzRdJy1T+g+j5ZaJMg
5w8paUqoaFEoJsuZS5zu4dpLEo5htJdbLhtv29LCl0u68V6EnL+WyT4kzxTz3UjX
BMZTH243dByFjdANEXBQdf0aDcsuregbowV8eUVzC9yd0j3UvZzIFZnkKOE3yDBG
PX4qtrmYLhEYkn+QY85bRlT2dAP5Gcfff0LMx1IpePAcQSQINMNamX36B4Atsa2u
+bVsJCmoIZZWcrhxSOeURdZz6xYalPr3sGnUPQIDAQABAoIBAGr6lgU8J3VIGxqy
ydOFCoJ58nuyh8Lwwn+tDxvcehjrBx0f/jS7MYtPeu+tafOma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PQvE4UU2fVVrbppYtnkkTAaIXdBzQA/hjHnQlpooHr/cMmftE4dPO
UQ122Zq7AHx3P58o1Q0CVhakGkoa+mc0+VK4O2uYl3sMrKCpVjs2ZQ==
-----END RSA PRIVATE KEY-----
Note that the syntax for the private key must use the pipe |
symbol and be
indented to conform to the PEM format.
Response
Aspect |
Value |
Content-Type |
application/json |
Success Status Code |
201 |
Response body
Field |
Description |
name |
The name of the infrastructure key. |
description |
Infrastructure key description. |
privateKey |
Private key portion of the infrastructure key. |
publicKey |
Public key portion of the infrastructure key. |