Downloading the RSA 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 RSA public and private keys, which are used as the SSH private key of the target ECSs.
This API is automatically called by the migration Agent to download RSA public and private keys. You do not need to make calls to this API.
Request
None
Example
- Example response
{ "private_key ":"-----BEGIN RSA PRIVATE KEY-----\nMIIEoAIBAAKCAQEAo9rcDbwylbq73zmv3IL9cxgBqe+POIIOguVo7ZKqxwOLm2sz\nAf7y/taAtdQdIwGOeuhTXS1o3Ea3sc96XwJhCJbCZwZck/6yO2zq041qL6YQ3VZY\nU1XHJnYp50Fd7mQA2ud5M48DE6ggs5sJ5DDr8g0GzscnIPHB1mg1tP+f1tcTEhFq\nmZiU208VGGetoHFIdgvbcw9V3Ci/INMcoMWe1AsKDNeRVTNdT+qgzqFUEgOUa21/\n8s25Tdv38pHwKobh9GNAICThsoQuOzmuMPv4nxyoNy43CEuGmj+3qdXe6+nJYug6\ndEjP9RCJ5LVt5QEflG81+xDfuTXGjIE/aHqhTQIDAQABAoH/JcNK899ryRZANjIV\nVbzarKvbtk5/s4ZF0eUNSbODqFoo0qjiGJOpbRICl+VK0caKD8l7bP4KLLofm9s1\nWLAzrMcSBqxwqasJaKixdhAhaNndCSXdNVePjk2tWp62BzsE925hgIB1NRKKdtpE\nbVLZDe/yobVET1NoWQGrXwuKyvhn9+z/hDkZJDVoQRolUa2SiNYWh7QiU+GeZ5DD\nPjpiAJfmBe4Zs611AhJMiBQohGDy+L8thGRx3bl69fIIn3Sa1ZTC49sW+82qGHsP\nqhXiB6OCsmVy44DmOUUG/qClY/aSer/a4cNLaZTzzx3IhCeI30ats/0aLEw5Szyb\nsIgBAoGBANO55QA14SgAR+XjGsMOq8/rHU/x3cquJO1COeFF8xCgAOulmRmQbpYC\ni34fJlpNTbi5czTy8JuPsKAcSGnbnFVZtEEB1XpZCDZ5ChSqaiCZECdl79RjZ4GZ\nJMa3uXnwioPh9eHx8RSl+qGAT/15LdkPzDDHrt6Q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ifHKg3LjcIS4aaP7ep1d7r6cli6Dp0SM/1EInktW3lAR+UbzX7EN+5NcaMgT9oeqFN \n" }
Status Codes
See Status Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot