Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

PTP Service Definitions Management RESTful Web Services

 

The following operations can be performed using the Connectivity Services Director Precision Time Protocol (PTP) Service Definitions Management RESTful Web Services.

Get a PTP Service Definition By Service Definition ID

This request is used to retrieve the details of a particular PTP service definition, based on the service definition ID.

URI

/api/space/nsas/timing-ptp/service-management/

service-definitions/<serdef-id>

HTTP Method

GET

Consumes

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

service-definition+xml

Produces

Collects the details of a specific PTP service definition.

Output

Sample XML Output

Get All PTP Service Definitions

This request is used to retrieve all the configured PTP service definitions.

URI

/api/space/nsas/timing-ptp/service-management/

service-definitions/

HTTP Method

GET

Consumes

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

service-definitions+xml

Produces

Collects all the configured PTP service definitions.

Output

Sample XML Output

Create a PTP Service Definition

This request is used to create a PTP service definition.

URI

/api/space/nsas/timing-ptp/service-management/

service-definitions/

HTTP Method

POST

Content Type

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

service-definition+xml

Consumes

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

service-definition-status+xml

Produces

Creates a PTP service definition.

Input

Sample XML Input

Output

Sample XML Output

Publish and Unpublish a PTP Service Definition

This request is used to publish or unpublish a PTP service definition.

URI

api/space/nsas/timing-ptp/service-management/

service-definitions/

HTTP Method

POST

Content-Type

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

service-definition+xml

Consumes

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

service-definition-status+xml

Action types are Publish and Unpublish.

Produces

Publishes or unpublishes a PTP service definition.

Input (Publishing the Service Definition)

Sample XML Input

Output

Sample XML Output

Input (Unpublishing the Service Definition)

Sample XML Input

Output

Sample XML Output