Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

GRE Services Management RESTful Web Services

 

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

Get a Full-Mesh GRE Service By Service ID

This request is used to retrieve the details of a particular GRE service.

URI

api/space/nsas/gre/service-management/

services/<serviceId>

HTTP Method

GET

Consumes

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

services+xml

Produces

Collects the details of a specific GRE service.

Output

Sample XML Output

Get a Hub-and-Spoke GRE Service By Service ID

This request is used to retrieve the details of a particular GRE service.

URI

api/space/nsas/gre/service-management/

services/<serviceId>

HTTP Method

GET

Consumes

application/vnd.net.juniper.space.service-management.services+xml

Produces

Collects the details of a specific GRE service.

Output

Sample XML Output

Get All GRE Services

This request is used to retrieve all the configured GRE services.

URI

api/space/nsas/gre/service-management/services

HTTP Method

GET

Consumes

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

servicesxml

Produces

Collects all the configured GRE services.

Output

Sample XML Output

Modify a Full-Mesh GRE Service with Addition of a Tunnel

This request is used to modify a full-mesh GRE service with addition of a tunnel.

URI

api/space/nsas/gre/service-management/

services/{service-Id}/add-tunnels

HTTP Method

POST

Content-Type

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

management.

modify-service+xml;version=2;charset=UTF-8

Consumes

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

service-status+xml;version=2

Produces

Modifies a GRE service with addition of a tunnel.

Input

Sample XML Input

Modify a Hub-and-Spoke GRE Service with Addition of a Tunnel

This request is used to modify a hub-and-spoke GRE service with addition of a tunnel.

URI

api/space/nsas/gre/service-management/

services/{service-Id}/add-tunnels

HTTP Method

POST

Content-Type

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

management.

modify-service+xml;version=2;charset=UTF-8

Consumes

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

service-status+xml;version=2

Produces

Modifies a GRE service with addition of a tunnel.

Input

Sample XML Input

Modify a Full-Mesh GRE Service with Deletion of a Tunnel

This request is used to modify a full-mesh GRE service with deletion of a tunnel.

URI

api/space/nsas/gre/service-management/

services/{service-Id}/delete-tunnels

HTTP Method

POST

Content-Type

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

management.

modify-service+xml

Consumes

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

service-status+xml

Produces

Modifies a GRE service with deletion of a tunnel.

Input

Sample XML Input

Modify a Hub-and-Spoke GRE Service with Deletion of a Tunnel

This request is used to modify a hub-and-spoke GRE service with deletion of a tunnel.

URI

api/space/nsas/gre/service-management/

services/{service-Id}/delete-tunnels

HTTP Method

POST

Content-Type

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

management.modify-service+xml

Consumes

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

service-status+xml

Produces

Modifies a GRE service with deletion of a tunnel.

Input

Sample XML Input

Force-Deploy a GRE Service

This request is used to forcibly deploy a previously created GRE service.

URI

api/space/nsas/gre/service-management/

services/{serviceId}

HTTP Method

POST

Content-Type

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

modify-service+xml

Consumes

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

service-status+xml

The options must be specified in the Action Element inside OperationSpecificData. The various options are as follows:

  • DeployNow

  • DeployLater

Produces

Forcibly deploys a previously created GRE service.

Input

Sample XML Input

Decommission a GRE Service Immediately

This request is used to decommission a previously created GRE service immediately.

URI

api/space/nsas/gre/service-management/services/

{serviceId}

HTTP Method

DELETE

Content-Type

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

Produces

Decommissions a previously created GRE service immediately.

Input

Sample XML Input

Sample XML Output

Decommission a GRE Service Later

This request is used to decommission a previously created GRE service at a later time.

URI

api/space/nsas/gre/service-management/

services/{serviceId}

HTTP Method

DELETE

Content-Type

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

Produces

Decommissions a previously created GRE service at a later time.

Input

Sample XML Input

Output

Sample XML Output