REST Resources

/api/space/device-management/upload-keys

The following operation is supported on this resource:

  • POST - To upload the RSA keys
POST /upload-keysVersion 3

To upload the RSA keys.

Sample Usage

This API makes an asynchronous method call; so, you can optionally specify queue and schedule parameters:

POST /upload-keys?queue=<queue>&schedule=<schedule>


Note: The queue URL denoted by <queue> must have been created already.


  • Parameters:
    NameTypeURI TypeDescriptionRequired
    queueQueue URLQueryA fully qualified queue URL, where job progress notifications will be sent (See Asynchronous API Usage)N
    schedulecron-like-expressionQuerySchedule this API in the future, by specifying a cron-like-expression (See Job Scheduling)N
  • Sample Input XML:
    <upload-keys-request>
             <device-credentials-bean-list>
                 <device-credentials-bean>
                       <space-user-name>admin</space-user-name>
                       <user-name>rooot</user-name>
                       <host-name>SRX_Device</host-name>
                       <password>********</password>
                       <ip-address>192.168.1.100</ip-address>
                 </device-credentials-bean>
             </device-credentials-bean-list>
    </upload-keys-request>

  • Sample Output XML:
    <task href="/api/space/job-management/jobs/1081374">
      <id>1081374</id>
    </task>

  • Sample Input JSON:
    {
      "upload-keys-request": {
         "device-credentials-bean-list": {
           "device-credentials-bean" : {
            "space-user-name" : "admin" ,
            "user-name" : "root" ,
            "host-name" : "SRX_Device" ,
            "password" : "********" ,
            "ip-address" : "192.168.1.100"
          }
        }
      }
    }

  • Sample Output JSON:
    {
      "task":{
        "@href":"/api/space/job-management/jobs/1081374",
        "id":1081374
      }
    }

  • Access Control

    The following capabilities are required to access this API: UploadKeys