REST Resources
-
/ -
/acknowledge-device-fingerprint -
/change-device-credentials -
/delete-device-discovery-rules -
/delete-devices -
/device-discovery-rules -
/device-discovery-rules /{id} -
/devices -
/devices /{device-id} /activate-modeled-device -
/devices /{device-id} /applicable-configlets -
/devices /{device-id} /apply-cli-configlet -
/devices /{device-id} /associated-softwares -
/devices /{device-id} /clone -
/devices /{device-id} /compute-configlet-parameter-values -
/devices /{device-id} /configlet -
/devices /{device-id} /configurations /expanded -
/devices /{device-id} /configurations /raw -
/devices /{device-id} /submit-cli-configlet -
/devices /{device-id} /validate-cli-configlet -
/devices /{deviceid} /customized-attribute-values -
/devices /{deviceid} /customized-attribute-values /{id} -
/devices /{id} -
/devices /{id} /associated-scripts -
/devices /{id} /change-requests -
/devices /{id} /configurations -
/devices /{id} /configurations /expanded /match-content -
/devices /{id} /configurations /raw /match-content -
/devices /{id} /connection-status -
/devices /{id} /exec-resync -
/devices /{id} /exec-rpc -
/devices /{id} /managed-elements -
/devices /{id} /managed-status -
/devices /{id} /modify-device-target-ip -
/devices /{id} /view-customized-attributes -
/discover-devices -
/discoveryresult /{id} -
/get-device-statistics -
/get-syslog-events -
/job-instances /{job-id} /acknowledge-fingerprint-job-results -
/job-instances /{job-id} /delete-devices-job-results -
/job-instances /{job-id} /discovery-job-results -
/job-instances /{job-id} /exec-rpc-job-results -
/job-instances /{job-id} /reboot-devices-job-results -
/job-instances /{job-id} /resync-devices-job-results -
/job-instances /{job-id} /rsa-key-transfer-job-results -
/reactivate-devices-from-rma -
/reboot-devices -
/resolve-key-conflict -
/resync-devices -
/stop-syslog-events -
/stop-syslog-events /{id} -
/upload-keys
/api/space/device-management/change-device-credentials
The following operations are supported on this resource:
POST /change-device-credentials | Version 4 |
This API is used to change login credentials information for a large number of devices. The change can either be keybased on credential based.In case of keybased, the SSH public/private key is generated on Junos Space. The keys get configured on the devices from Junos Space.
Sample Usage
This API makes an asynchronous method call; so, you can optionally specify queue and schedule parameters:
POST /change-device-credentials?queue=<queue>&schedule=<schedule>
Note: The queue URL denoted by <queue> must have been created already.
-
Parameters:
Name Type URI Type Description Required queue Queue URL Query A fully qualified queue URL, where job progress notifications will be sent (See Asynchronous API Usage) N schedule cron-like-expression Query Schedule this API in the future, by specifying a cron-like-expression (See Job Scheduling) N
-
Content-Type Headers:
application/vnd.net.juniper.space.device-management.change-credentials-request+xml;version=4;charset=UTF-8
application/vnd.net.juniper.space.device-management.change-credentials-request+json;version=4;charset=UTF-8 -
Accept Headers:
application/vnd.net.juniper.space.device-management.change-credentials-request+xml;version=4
application/vnd.net.juniper.space.device-management.change-credentials-request+json;version=4
<change-credentials>
<devices>
<device
href="/api/space/device-management/devices/3047456"></device>
</devices>
<user-name>root</user-name>
<change-to>KEY</change-to>
<change-on-device>false</change-on-device>
</change-credentials>
<task href="/api/space/job-management/jobs/3244036">
<id>3244036</id>
</task>
{
"change-credentials":{
"devices":{
"device":[
{
"@href":
"/api/space/device-management/devices/3047456"
}
]
},
"user-name":"root",
"change-to":"KEY",
"change-on-device":"false"
}
}
{
"task":{
"@href":"/api/space/job-management/jobs/3244036",
"id":3244036
}
}
Access Control
The following capabilities are required to access this API: ChangeCredential
POST /change-device-credentials | Version 5 |
This API is used to change login credentials information for a large number of devices.
Note: Please make sure device "user" used in the request has admin privileges.
For any KEY/CREDENTIAL to KEY based change, the "change-on-device" flag must always be true.
Sample Usage
This API makes an asynchronous method call; so, you can optionally specify queue and schedule parameters:
POST /change-device-credentials?queue=<queue>&schedule=<schedule>
Note: The queue URL denoted by <queue> must have been created already.
-
Parameters:
Name Type URI Type Description Required queue Queue URL Query A fully qualified queue URL, where job progress notifications will be sent (See Asynchronous API Usage) N schedule cron-like-expression Query Schedule this API in the future, by specifying a cron-like-expression (See Job Scheduling) N
-
Content-Type Headers:
application/vnd.net.juniper.space.device-management.change-credentials-request+xml;version=5;charset=UTF-8
application/vnd.net.juniper.space.device-management.change-credentials-request+json;version=5;charset=UTF-8 -
Accept Headers:
application/vnd.net.juniper.space.job-management.task+xml;version=1
application/vnd.net.juniper.space.job-management.task+json;version=1
<change-credentials>
<devices>
<device
href="/api/space/device-management/devices/3047456"></device>
</devices>
<user-name>root</user-name>
<password>123admin</password>
<change-to>CREDENTIAL</change-to>
<change-on-device>false</change-on-device>
<re-authenticate-device>false</re-authenticate-device>
</change-credentials>
<task href="/api/space/job-management/jobs/3244036">
<id>3244036</id>
</task>
{
"change-credentials":{
"devices":{
"device":[{"@href":
"/api/space/device-management/devices/3047456"}]
},
"user-name":"root",
"password":"123admin",
"change-to":"CREDENTIAL",
"change-on-device":"false",
"re-authenticate-device":"false"
}
}
{
"task":{
"@href":"/api/space/job-management/jobs/3244036",
"id":3244036
}
}
Access Control
The following capabilities are required to access this API: ChangeCredential