Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Prestaging Device Management RESTful Web Services

 

The following operations can be performed using the Connectivity Services Director Prestaging Devices Management RESTful Web Services.

Discover Device Roles

This request is used to discover the roles of devices.

URI

api/space/nsas/prestage-devices/manage-roles/

discover-roles

HTTP Method

POST

Consumes

application/vnd.net.juniper.space.manage-roles.

discover-roles.status+xml

Produces

Discovers the roles of devices.

Output

Sample XML Output

Get All Prestage Devices

This request is used to retrieve all prestaged devices.

URI

api/space/nsas/prestage-devices/manage-roles/

devices

HTTP Method

GET

Consumes

application/vnd.net.juniper.space.manage-

roles.devices+xml

Produces

Retrieves all the prestaged devices.

Output

Sample XML Output

Get All Prestage Devices with Pagination, Search, and Filter

This request is used to retrieve all prestaged device details with paging behavior applied on the output, and with the devices sorted and segregated depending on the search criteria.

URI

api/space/nsas/prestage-devices/manage-roles/

devices?sortorder=desc&filteredby=name::space

HTTP Method

GET

Consumes

application/vnd.net.juniper.space.manage-roles.

devices+xml;version=2

Produces

Retrieves all the prestaged devices.

Output

Sample XML Output

Get Prestage Devices By Device ID

This request is used to retrieve a prestaged device based on the device ID.

URI

api/space/nsas/prestage-devices/manage-roles/

devices/{id}

HTTP Method

GET

Consumes

application/vnd.net.juniper.space.manage-role.device+xml

Produces

Retrieves the prestaged device based on the device ID.

Output

Sample XML Output

Assign Roles to Devices With User Input

This request is used to assign roles to devices with user input.

URI

api/space/nsas/prestage-devices/manage-roles/

assign-roles-all

HTTP Method

POST

Content-Type

application/vnd.net.juniper.space.manage-roles.

assign-roles.status+xml

Consumes

application/vnd.net.juniper.space.manage-roles.

Devices+xml

Produces

Assigns roles to all the devices without manual intervention.

Output

Sample XML Output

Assign Roles to All Devices Without User Input

This request is used to assign roles to all devices without user input.

URI

api/space/nsas/prestage-devices/manage-roles/

assign-roles-all

HTTP Method

POST

Consumes

application/vnd.net.juniper.space.manage-roles.

assign-roles.status+xml

Produces

Assigns roles to all the devices without manual intervention.

Output

Sample XML Output

Assign a UNI Role to a PE Device (Version 2)

This request is used to assign a user-to-network interface (UNI) role to a PE device, which is already added and present in the database, in version 2 format.

Note

This API version is only maintained for backward compatibility with Connectivity Services Director Release 1.0R2 and earlier, and we recommend that you use the version 1 of this API in Connectivity Services Director Release 2.0 and later.

URI

/api/space/nsas/pe-devices/<pe-device-id>/

peunis

HTTP Method

POST

Content-Type

application/vnd.juniper.api.space.nsas.

add-peun-is-request+xml;version=2;charset=UTF-8

Consumes

application/vnd.juniper.api.space.nsas.

add-peun-is-request+xml;version=2

Produces

Assigns a UNI role to a PE device.

Input

Sample XML Input

Delete a UNI from an N-PE Device (Version 2)

This request is used to delete a previously configured UNI from a network provider edge (N-PE) device in version 2 format.

Note

This API version is only maintained for backward compatibility with Connectivity Services Director Release 1.0R2 and earlier, and we recommend that you use the version 1 of this API in Connectivity Services Director Release 2.0 and later.

URI

/api/space/nsas/pe-devices/<pe-device-id>/

peunis

HTTP Method

DELETE

Content-Type

application/vnd.juniper.api.space.nsas.

delete-peun-is-request+xml;version=2;charset=UTF-8

Consumes

application/vnd.juniper.api.space.nsas.

delete-peun-is-request+xml;version=2

Produces

Deletes a UNI from an N-PE device.

Input

Sample XML Input

Get All UNIs of an N-PE Device (Version 1)

This request is used to obtain all the configured UNIs of a network provider edge (N-PE) device in version 1 format.

Note

This API version is only maintained for backward compatibility with Connectivity Services Director Release 1.0R2 and earlier, and we recommend that you use the version 2 of this API in Connectivity Services Director Release 2.0 and later.

URI

api/space/nsas/devices/<pe-device-id>/

peunis

HTTP Method

GET

Consumes

application/vnd.juniper.api.space.nsas.peunis+xml

Produces

Retrieves all UNIs configured on a network PE device.

Output

Sample XML Output

Assign a UNI Role to a PE Device (Version 1)

This request is used to assign a user-to-network interface (UNI) role to a PE device, which is already added and present in the database in version 1 format.

URI

/api/space/nsas/pe-devices/<pe-device-id>/

peunis

HTTP Method

POST

Content-Type

application/vnd.juniper.api.space.nsas.

add-peunis-request+xml;version=1;charset=UTF-8

Consumes

application/vnd.juniper.api.space.nsas.

add-peunis-request+xml;version=1

Produces

Assigns a UNI role to a PE device.

Input

Sample XML Input

Delete a UNI from an N-PE Device (Version 1)

This request is used to delete a previously configured UNI from a network provider edge (N-PE) device in version 1 format.

URI

/api/space/nsas/pe-devices/<pe-device-id>/

peunis

HTTP Method

DELETE

Content-Type

application/vnd.juniper.api.space.nsas.

delete-peunis-request+xml;version=1;charset=UTF-8

Consumes

application/vnd.juniper.api.space.nsas.

delete-peunis-request+xml;version=1

Produces

Deletes a UNI from an N-PE device.

Input

Sample XML Input

Get All UNIs of an N-PE Device (Version 2)

This request is used to obtain all the configured UNIs of a network provider edge (N-PE) device in version 2 format.

URI

api/space/nsas/pe-devices/<pe-device-id>/

peunis

HTTP Method

GET

Consumes

application/vnd.juniper.api.space.nsas.peunis+xml;

version=2;q=0.02

Produces

Retrieves all UNIs configured on a network PE device.

Output

Sample XML Output

Get All Prestaged Devices

This request is used to retrieve a list of prestaged devices.

New Parameters

api/space/nsas/pre-stage-devices

Description of the Changes

This API is used to retrieve a list of prestaged devices.

URI

api/space/nsas/pre-stage-devices

HTTP Method

GET

Consumes

application/vnd.juniper.api.space.nsas.pre-stage-

devices+xml;version=2

application/vnd.juniper.api.space.nsas.pre-stage-

devices+json;version=2

Produces

Retrieves a list of prestaged devices.

Output

Sample XML Output

Unassign Roles of Devices

This request is used to unassign the role of devices passed as a parameter. Multiple device IDs are concatenated with a | (pipe) character.

New Parameters

api/space/nsas/pe-unassign-role?data=<deviceids>

Description of the Changes

This API is used to unassign the role of a specific device.

URI

api/space/nsas//pe-unassign-role?data=<deviceids>

HTTP Method

POST

Consumes

application/vnd.juniper.api.space.nsas.pe-unassign-

roles+xml;version=2

application/vnd.juniper.api.space.nsas.pe-unassign-

roles+json;version=2"

Produces

Unassigns the roles of devices.

Output

Sample XML Output

Get Job Details By Job ID

This request is used to obtain the details of a specific job, based on its unique identifier.

New Parameters

"getJobDetailsForRequest”

Description of the Changes

This API is to display the job details as a device view. Previously, the job summary was shown when you double-clicked the link in a job ID. With this new REST API call, job details are filtered on the basis of each device.

HTTP Method

GET

URI

/api/space/nsas/elan-vpls/service-

management/service-orders/jobId

Consumes

application/vnd.net.juniper.space.service-

management.service-orders+json;version=2

Produces

Retrieves the details of a particular job.

Mandatory Parameters

jobID

Output

Sample JSONOutput

Get All Basic Services

This request is used to retrieve details of all the configured basic services..

New Parameters

api/space/nsas/basic-services

Description of the Changes

This API call is used to retrieve all the services.

URI

api/space/nsas/basic-services

HTTP Method

GET

Consumes

application/vnd.juniper.api.space.nsas.basic-

services+xml;version=2

Content Type

application/vnd.juniper.api.space.nsas.basic-

services+json;version=2

Produces

Retrieves all the basic services.

Output

Sample XML Output