Import Ssh Key
Import users ssh key according to the information specified.
Privileges required:
CREATE
SELF_SSH_KEY
Request
URI
POST
https://{api_host}/portal/rest/sshConfig/importSshKey
COPY
Request Body
{
"expire": 0,
"publicKey": "string"
}
integer
expire
Optional
expire
string
publicKey
Optional
publicKey
Responses
200
Request was successfully processed
{
"error": "string",
"rows": 0
}
string
error
Optional
An error message explaining why the method failed
integer
rows
Required
The number of rows modified
400
Invalid Request: Please check your request schema
Returns
generic_400
of type(s)
application/json
{
"error": {
"code": -32600,
"message": "An error occurred while processing your request",
"data": {
"valid": false,
"error": [
{
"code": "string",
"message": "string",
"path": "string"
}
],
"warning": [
{
"code": "string",
"message": "string",
"path": "string"
}
]
}
}
}
Code Samples
COPY
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/portal/rest/sshConfig/importSshKey
All Operations
POST
Secure Edge Access Mode
POST
Enterprise Proxy Delete Enterprise Proxy User
POST
Enterprise Proxy Get Enterprise Proxy User
POST
Enterprise Proxy Insert Enterprise Proxy User
POST
Enterprise Proxy Update Enterprise Proxy User
POST
Enterprise User Delete Enterprise User
POST
Enterprise User Get Enterprise User
POST
Enterprise User Update Enterprise User
POST
Operator User Delete Operator User
POST
Operator User Get Operator User
POST
Operator User Insert Operator User
POST
Operator User Update Operator User
POST
Generate Ssh Key
POST
Ssh Config Get Enterprise Proxy User Ssh Key
POST
Ssh Config Get Enterprise User Ssh Key
POST
Ssh Config Get Operator User Ssh Key
POST
Import Ssh Key
POST
Ssh Config Revoke Enterprise Proxy User Ssh Key
POST
Ssh Config Revoke Enterprise User Ssh Key
POST
Ssh Config Revoke Operator User Ssh Key