Skip to main content

Create Public Key

Request

Creates a public key. If you are a reseller, pass the account number of your customer to create a key-name and key-value pair.

Security
BearerAuth
Bodyapplication/jsonrequired

keyName, keyValue, and keyType

keyNamestringrequired

Key name

Example:"myKeyName"
keyValuestringrequired

Key value

Example:"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQC5kHcagDZ7utPan4DHWUvoJxwz/DISRFwZdpMhslhZRI+6dGOC8mJn42SlSUAUtkt8Qyl4HipPK7Xh6oGj70Iba1a9pDcURYTYcqWFBEhcdDsMn
keyTypestring

Key type, whether RSA or DSA. Default is RSA.

Enum:"RSA""DSA"
Example:"RSA"
Payload
{ "keyName": "myKeyName", "keyValue": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQC5kHcagDZ7utPan4DHWUvoJxwz/DISRFwZdpMhslhZRI+6dGOC8mJn42SlSUAUtkt8Qyl4HipPK7Xh6oGj70Iba1a9pDcURYTYcqWFBEhcdDsMnH1CICmvVdsILehFtiS3X0J1JhwmWQI/7ll3QOk8fLgWCz3idlYJqtMs8Gz/6Q== noname", "keyType": "RSA" }

Responses

Created. The unique Id of the newly created key is in the location header of the response.

Headers
Locationstring

URL of the created public key.

Example:"/ne/v1/publicKeys/877a3aa2-c49a-4af1-98a6-007424e737ae"
Bodyapplication/json
uuidstring

The unique Id of the keyName and keyValue combination

Example:"877a3aa2-c49a-4af1-98a6-007424e737ae"
keyNamestring

Key name

Example:"myKeyName"
keyValuestring

Key value

Example:"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQC5kHcagDZ7utPan4DHWUvoJxwz/DISRFwZdpMhslhZRI+6dGOC8mJn42SlSUAUtkt8Qyl4HipPK7Xh6oGj70Iba1a9pDcURYTYcqWFBEhcdDsMn
keyTypestring

Type of key, whether RSA or DSA

Enum:"RSA""DSA"
Example:"RSA"
Response
{ "uuid": "877a3aa2-c49a-4af1-98a6-007424e737ae", "keyName": "myKeyName", "keyValue": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQC5kHcagDZ7utPan4DHWUvoJxwz/DISRFwZdpMhslhZRI+6dGOC8mJn42SlSUAUtkt8Qyl4HipPK7Xh6oGj70Iba1a9pDcURYTYcqWFBEhcdDsMnH1CICmvVdsILehFtiS3X0J1JhwmWQI/7ll3QOk8fLgWCz3idlYJqtMs8Gz/6Q== noname", "keyType": "RSA" }
Was this page helpful?