Updated on 2022-08-02 GMT+08:00

Downloading the ECDSA Public and Private Keys

Function

If a source server runs a Linux OS, the migration Agent installed on the source server communicates with the target ECS through SSH. This API is used to return a group of Elliptic Curve Digital Signature Algorithm (ECDSA) public and private keys, which are used as the SSH private key of the destination servers.

This API is automatically called by the migration Agent to download ECDSA public and private keys. You do not need to make calls to this API.

URI

  • URI Format

    GET /v1/sms/tasks/{task_id}/ecdsakeypair

  • Parameter description

    Parameter

    Type

    Mandatory

    Description

    task_id

    String

    Yes

    Specifies the task ID.

Constraints

N/A

Extension Description

N/A

Request Parameters

None

Response Parameters

Parameter

Type

Description

private_key

String

Specifies the ECDSA private key in PEM format.

public_key

String

Specifies the ECDSA public key in PEM format.

Request Example

None

Response Example

{
"private_key ":"-----BEGIN EC PRIVATE KEY-----
MHcCAQEEIM65a2NCcZg6el7wELMEZQTTpOGm6AeO0FVNQKcrIq6GoAoGCCqGSM49
AwEHoUQDQgAEJL+BljWgKJodqjJmeqYwiQ7YRIdnBtfckSIUykoGRUJc4VuFMJzv
jPCoirT49vDFCDheKbicZSZNpXb2riGU2g==
-----END EC PRIVATE KEY-----",
"public_key":":"-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEJL+BljWgKJodqjJmeqYwiQ7YRIdn
BtfckSIUykoGRUJc4VuFMJzvjPCoirT49vDFCDheKbicZSZNpXb2riGU2g==
-----END PUBLIC KEY-----"
}

Status Codes

See Status Codes.