REST Resources
-
/ -
/acknowledge-device-fingerprint -
/change-device-credentials -
/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} /validate-cli-configlet -
/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-syslog-events -
/stop-syslog-events -
/stop-syslog-events /{id}
/api/space/device-management/change-device-credentials
The following operations are supported on this resource:
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<change-credentials>
<devices>
<device
href=/api/space/device-management/devices/3047456"></device>
</devices>
<userName>super</userName>
<password>test</password>
<changeTo>credential</changeTo>
<changeOnDevice>false</changeOnDevice>
<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"}]
}
"userName":"super",
"password":"test",
"changeTo":"credential",
"changeOnDevice":"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
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<change-credentials>
<devices>
<device
href=/api/space/device-management/devices/3047456"></device>
</devices>
<userName>super</userName>
<password>test</password>
<changeTo>credential</changeTo>
<changeOnDevice>false</changeOnDevice>
</change-credentials>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<change-credentials>
<devices>
<device
href=/api/space/device-management/devices/3047456"></device>
</devices>
<userName>super</userName>
<changeTo>key</changeTo>
<changeOnDevice>false</changeOnDevice>
</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"}]
}
"userName":"super",
"password":"test",
"changeTo":"credential",
"changeOnDevice":"false",
}
}
{
"change-credentials":{
"devices":{
"device":[{"@href":
"/api/space/device-management/devices/3047456"}]
}
"userName":"super",
"changeTo":"key",
"changeOnDevice":"false",
}
}
{
"task":{
"@href":"/api/space/job-management/jobs/3244036",
"id":3244036
}
Access Control
The following capabilities are required to access this API: ChangeCredential