Import Ssh Key

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"
                }
            ]
        }
    }
}

500
Returns generic_500 of type(s) application/json
Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/portal/rest/sshConfig/importSshKey