IP Service Orders Management RESTful Web Services
The following operations can be performed using the Connectivity Services Director IP (L3VPN) Service Orders Management RESTful Web Services.
Get an IP Service Order with XPath Tags By Order ID
This request is used to retrieve the details of a particular hub-and-spoke IP service order with XPath attributes, based on the service order ID.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management.service-order+xml |
Produces | Collects the details of a specific IP service order configured with XPath tags. |
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder key="1081419" uri="/api/space/nsas/l3vpn/service-management/service-orders/1081419" href="/api/space/nsas/l3vpn/service-management/service-orders/1081419"> <Common> <Name>testSO_l3vpnFM</Name> <Identity>1081419</Identity> <State>Validated</State> <CreatedDate>2015-02-23T17:41:49.000+05:30</CreatedDate> <LastUpdatedDate>2015-02-23T17:41:48.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>l3vpn</ServiceType> <EnableMVPN>false</EnableMVPN> <EnableMCLAG>false</EnableMCLAG> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA key="524388" uri="/api/space/nsas/device-roles/pe-devices/524388" href="/api/space/nsas/device-roles/pe-devices/524388"> <DeviceName>junos-space1</DeviceName> <DeviceID>524388</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/3</InterfaceName> <InterfaceIndex>520</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <RoutingProtocol>OSPF</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <UnitID>1</UnitID> <VlanId>1</VlanId> <InterfaceIP>10.0.77.1/30</InterfaceIP> <RouteDistinguisher>65501:5455876</RouteDistinguisher> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate href="/api/space/nsas/eline-ptp/service-management/service-templates/6357015" uri="/api/space/nsas/eline-ptp/service-management/service-templates/6357015" key="6357015"> <ID>6357015</ID> <ConfigParams> <Name>Description</Name> <DataType>String</DataType> <Description>Text description of interface</Description> <OperatorVisibility>Editable</OperatorVisibility> <Value>DemoDescription</Value> <SetofValues/> <Xpath>/configuration/cp1/interface/description</Xpath> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> <Validation/> </ConfigParams> </ServiceTemplate> <ServiceTemplate href="/api/space/nsas/elan-vpls/service-management/service-templates/66317" uri="/api/space/nsas/elan-vpls/service-management/service-templates/66317" key="66317"> <ID>66317</ID> <ConfigParams> <Name>Name</Name> <Value>testname123</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="524352" uri="/api/space/nsas/device-roles/pe-devices/524352" href="/api/space/nsas/device-roles/pe-devices/524352"> <DeviceName>junos-space2</DeviceName> <DeviceID>524352</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <InterfaceIndex>522</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <RoutingProtocol>OSPF</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <UnitID>2</UnitID> <VlanId>2</VlanId> <InterfaceIP>10.0.77.5/30</InterfaceIP> <RouteDistinguisher>65501:5455877</RouteDistinguisher> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate href="/api/space/nsas/eline-ptp/service-management/service-templates/6357015" uri="/api/space/nsas/eline-ptp/service-management/service-templates/6357015" key="6357015"> <ID>6357015</ID> <ConfigParams> <Name>Description</Name> <DataType>String</DataType> <Description>Text description of interface</Description> <OperatorVisibility>Editable</OperatorVisibility> <Value>DemoDescription</Value> <SetofValues/> <Xpath>/configuration/cp1/interface/description</Xpath> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> <Validation/> </ConfigParams> </ServiceTemplate> <ServiceTemplate href="/api/space/nsas/elan-vpls/service-management/service-templates/66317" uri="/api/space/nsas/elan-vpls/service-management/service-templates/66317" key="66317"> <ID>66317</ID> <ConfigParams> <Name>Name</Name> <Value>testname123</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> <RouteTarget>65501:1</RouteTarget> <VRFTabelLabel>true</VRFTabelLabel> </ServiceOrderParameter> <Reference> <Customer uri="/api/space/nsas/customer-management/customers/524288" href="/api/space/nsas/customer-management/customers/524288" key="524288"/> <ServiceDefinition> <ServiceDefinitionID uri="/api/space/nsas/l3vpn/service-management/service-definitions/1081369" href="/api/space/nsas/l3vpn/service-management/service-definitions/1081369" key="1081369"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Get an IP Service Order with MC-LAG By Order ID
This request is used to retrieve the details of a particular hub-and-spoke IP service order with MC-LAG, based on the service order ID.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management.service-order+xml |
Produces | Collects the details of a specific IP service order configured with MC-LAG. |
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder key="3211503" uri="/api/space/nsas/l3vpn/service-management/service-orders/3211503" href="/api/space/nsas/l3vpn/service-management/service-orders/3211503"> <Common> <Name>L3VPN_SO_API_Test_02</Name> <Identity>3211503</Identity> <State>Validated</State> <Comments>sreret</Comments> <CreatedDate>2015-01-02T17:27:04.000+05:30</CreatedDate> <LastUpdatedDate>2015-01-02T17:27:04.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>l3vpn</ServiceType> <EnableMVPN>false</EnableMVPN> <EnableMCLAG>true</EnableMCLAG> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA key="557127" uri="/api/space/nsas/device-roles/pe-devices/557127" href="/api/space/nsas/device-roles/pe-devices/557127"> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>557127</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>irb</InterfaceName> <InterfaceIndex>507</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <RoutingProtocol>OSPF</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <UnitID>13</UnitID> <VlanId>7</VlanId> <InterfaceIP>10.2.4.8</InterfaceIP> <RouteDistinguisher>69:2147467291</RouteDistinguisher> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> <MCLAGinterface>ae2</MCLAGinterface> <MCLAGDescription>erwer</MCLAGDescription> <VRRPSettings> <VRRPGroupname>50</VRRPGroupname> <VRRPIPaddressPool>10.3.3.1/29</VRRPIPaddressPool> </VRRPSettings> </ServiceEndpointConfiguration> <ServiceTemplates/> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="557292" uri="/api/space/nsas/device-roles/pe-devices/557292" href="/api/space/nsas/device-roles/pe-devices/557292"> <DeviceName>junos-mx80-1-space</DeviceName> <DeviceID>557292</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>irb</InterfaceName> <InterfaceIndex>507</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <UNIDescription>gfhgth</UNIDescription> <RoutingProtocol>OSPF</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <UnitID>7</UnitID> <VlanId>7</VlanId> <InterfaceIP>10.7.2.8</InterfaceIP> <RouteDistinguisher>69:2147467293</RouteDistinguisher> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> <MCLAGinterface>em0</MCLAGinterface> <MCLAGDescription>trtyrt</MCLAGDescription> <VRRPSettings> <VRRPGroupname>40</VRRPGroupname> <VRRPIPaddressPool>10.1.1.1/29</VRRPIPaddressPool> </VRRPSettings> </ServiceEndpointConfiguration> <ServiceTemplates/> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> <RouteTarget>69:1454096398</RouteTarget> <VRFTabelLabel>true</VRFTabelLabel> </ServiceOrderParameter> <Reference> <Customer uri="/api/space/nsas/customer-management/customers/558401" href="/api/space/nsas/customer-management/customers/558401" key="558401"/> <ServiceDefinition> <ServiceDefinitionID uri="/api/space/nsas/l3vpn/service-management/service-definitions/884828" href="/api/space/nsas/l3vpn/service-management/service-definitions/884828" key="884828"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Create an IP Service Order with MC-LAG
This request is used to create a hub-and-spoke IP service order with MC-LAG.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Creates an IP service order with MC-LAG. |
Input
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN_SO_API_Test_02</Name> <Comments>sreret</Comments> </Common> <ServiceType>l3vpn</ServiceType> <EnableMVPN>false</EnableMVPN> <EnableMCLAG>true</EnableMCLAG> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA key="557127" uri="/api/space/nsas/device-roles/pe-devices/557127" href="/api/space/nsas/device-roles/pe-devices/557127"> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>557127</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>irb</InterfaceName> <InterfaceIndex>507</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP>10.2.4.8</InterfaceIP> <RouteDistinguisher>69:2147467266</RouteDistinguisher> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> <MCLAGinterface>ae2</MCLAGinterface> <MCLAGDescription>erwer</MCLAGDescription> <ActiveLink>true</ActiveLink> <VRRPSettings> <AutopickVRRPIP>false</AutopickVRRPIP> <VRRPGroupname>50</VRRPGroupname> <VRRPIPaddress>10.3.3.1/29</VRRPIPaddress> </VRRPSettings> </ServiceEndpointConfiguration> <ServiceTemplates/> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="557292" uri="/api/space/nsas/device-roles/pe-devices/557292" href="/api/space/nsas/device-roles/pe-devices/557292"> <DeviceName>junos-mx80-1-space</DeviceName> <DeviceID>557292</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>irb</InterfaceName> <InterfaceIndex>507</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <UNIDescription>gfhgth</UNIDescription> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP>10.7.2.8</InterfaceIP> <RouteDistinguisher>69:2147467273</RouteDistinguisher> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> <MCLAGinterface>em0</MCLAGinterface> <MCLAGDescription>trtyrt</MCLAGDescription> <ActiveLink>true</ActiveLink> <VRRPSettings> <AutopickVRRPIP>false</AutopickVRRPIP> <VRRPGroupname>40</VRRPGroupname> <VRRPIPaddress>10.1.1.1/29</VRRPIPaddress> </VRRPSettings> </ServiceEndpointConfiguration> <ServiceTemplates/> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> </ServiceOrderParameter> <Reference> <Customer key="558401"/> <ServiceDefinition> <ServiceDefinitionID key="884828"/> </ServiceDefinition> <Service key="884866"/> </Reference> </ServiceOrder> </ServiceResource> </Data>
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>3211503</Value> </Identity> <Job> <ID>819329</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>The Service Order Created Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Modify an IP Service Order with MC-LAG
This request is used to modify a saved IP service order.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. For the various options in creating ServiceOrder the options must be specified in the Action Element inside OperationSpecificData. The following values can be entered:
|
Produces | Modifies an IP service order. |
Input
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN_SO_API_ModifySO_01</Name> <Comments>sreret</Comments> </Common> <ServiceType>l3vpn</ServiceType> <EnableMVPN>false</EnableMVPN> <EnableMCLAG>true</EnableMCLAG> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA key="557127" uri="/api/space/nsas/device-roles/pe-devices/557127" href="/api/space/nsas/device-roles/pe-devices/557127"> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>557127</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>irb</InterfaceName> <InterfaceIndex>507</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP>10.2.4.8</InterfaceIP> <RouteDistinguisher>69:2147467266</RouteDistinguisher> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> <MCLAGinterface>ae2</MCLAGinterface> <MCLAGDescription>erwer</MCLAGDescription> <ActiveLink>true</ActiveLink> <VRRPSettings> <AutopickVRRPIP>false</AutopickVRRPIP> <VRRPGroupname>40</VRRPGroupname> <VRRPIPaddress>10.3.3.1/29</VRRPIPaddress> </VRRPSettings> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="557292" uri="/api/space/nsas/device-roles/pe-devices/557292" href="/api/space/nsas/device-roles/pe-devices/557292"> <DeviceName>junos-mx80-1-space</DeviceName> <DeviceID>557292</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>irb</InterfaceName> <InterfaceIndex>507</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <UNIDescription>gfhgth</UNIDescription> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP>10.7.2.8</InterfaceIP> <RouteDistinguisher>69:2147467273</RouteDistinguisher> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> <MCLAGinterface>em0</MCLAGinterface> <MCLAGDescription>trtyrt</MCLAGDescription> <ActiveLink>true</ActiveLink> <VRRPSettings> <AutopickVRRPIP>false</AutopickVRRPIP> <VRRPGroupname>40</VRRPGroupname> <VRRPIPaddress>10.1.1.1/29</VRRPIPaddress> </VRRPSettings> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> </ServiceOrderParameter> <Reference> <Customer key="558401"/> <ServiceDefinition> <ServiceDefinitionID key="884828"/> </ServiceDefinition> <Service key="884866"/> </Reference> </ServiceOrder> </ServiceResource> </Data>
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>3440655</Value> </Identity> <Job> <ID>884739</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>The Service Order Modified Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Get a Full-Mesh IP Service Order with Static Routing Protocol by Order ID
This request is used to retrieve the details of a particular hub-and-spoke IP service order with static routing protocol, based on the service order ID.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific IP service order configured with static routing protocol. |
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder key="426079" uri="/api/space/nsas/l3vpn/service-management/service-orders/426079" href="/api/space/nsas/l3vpn/service-management/service-orders/426079"> <Common> <Name>L3VPN_FM_STATIC_SO</Name> <Identity>426079</Identity> <State>Completed</State> <Comments>ertert</Comments> <CreatedDate>2015-01-21T11:52:52.000+05:30</CreatedDate> <LastUpdatedDate>2015-01-21T11:53:29.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>l3vpn</ServiceType> <EnableMVPN>false</EnableMVPN> <EnableMCLAG>false</EnableMCLAG> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA key="557168" uri="/api/space/nsas/device-roles/pe-devices/557168" href="/api/space/nsas/device-roles/pe-devices/557168"> <DeviceName>junos-space1</DeviceName> <DeviceID>557168</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <InterfaceIndex>522</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMSTATICEndPointConfigParameterOrderType"> <UNIDescription>retretre</UNIDescription> <RoutingProtocol>Static</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <UnitID>3</UnitID> <VlanId>3</VlanId> <InterfaceIP>10.2.3.6</InterfaceIP> <RouteDistinguisher>69:2147467264</RouteDistinguisher> <StaticRoutingProtocolDetails> <DestinationPrefix>10.2.4.1/32</DestinationPrefix> <NextHop>10.2.4.5</NextHop> </StaticRoutingProtocolDetails> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="557143" uri="/api/space/nsas/device-roles/pe-devices/557143" href="/api/space/nsas/device-roles/pe-devices/557143"> <DeviceName>junos-space2</DeviceName> <DeviceID>557143</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <InterfaceIndex>522</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMSTATICEndPointConfigParameterOrderType"> <UNIDescription>rtyrt</UNIDescription> <RoutingProtocol>Static</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <UnitID>2</UnitID> <VlanId>2</VlanId> <InterfaceIP>10.2.3.5</InterfaceIP> <RouteDistinguisher>69:2147467268</RouteDistinguisher> <StaticRoutingProtocolDetails> <DestinationPrefix>10.2.3.6/32</DestinationPrefix> <NextHop>10.2.3.6</NextHop> </StaticRoutingProtocolDetails> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="557290" uri="/api/space/nsas/device-roles/pe-devices/557290" href="/api/space/nsas/device-roles/pe-devices/557290"> <DeviceName>junos-space3</DeviceName> <DeviceID>557290</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/6</InterfaceName> <InterfaceIndex>523</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMSTATICEndPointConfigParameterOrderType"> <UNIDescription>rtyrty</UNIDescription> <RoutingProtocol>Static</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <UnitID>2</UnitID> <VlanId>2</VlanId> <InterfaceIP>10.2.3.4</InterfaceIP> <RouteDistinguisher>65501:5455873</RouteDistinguisher> <StaticRoutingProtocolDetails> <DestinationPrefix>10.2.3.9/32</DestinationPrefix> <NextHop>10.2.8.4</NextHop> </StaticRoutingProtocolDetails> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> <RouteTarget>69:1454096384</RouteTarget> </ServiceOrderParameter> <Reference> <Customer uri="/api/space/nsas/customer-management/customers/557305" href="/api/space/nsas/customer-management/customers/557305" key="557305" /> <ServiceDefinition> <ServiceDefinitionID uri="/api/space/nsas/l3vpn/service-management/service-definitions/426056" href="/api/space/nsas/l3vpn/service-management/service-definitions/426056" key="426056" /> </ServiceDefinition> <Service uri="/api/space/nsas/l3vpn/service-management/services/426095" href="/api/space/nsas/l3vpn/service-management/services/426095" key="426095" /> </Reference> </ServiceOrder> </ServiceResource> </Data>
Create a Full-Mesh IP Service Order with Static Routing Protocol
This request is used to create a hub-and-spoke IP service order with static routing protocol.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Creates an IP service order with static routing protocol. |
Input
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN_FM_STATIC_SO_API_04</Name> <Comments>ertert</Comments> </Common> <ServiceType>l3vpn</ServiceType> <EnableMVPN>false</EnableMVPN> <EnableMCLAG>false</EnableMCLAG> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA key="557168" uri="/api/space/nsas/device-roles/pe-devices/557168" href="/api/space/nsas/device-roles/pe-devices/557168"> <DeviceName>junos-space1</DeviceName> <DeviceID>557168</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <InterfaceIndex>522</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMSTATICEndPointConfigParameterOrderType"> <UNIDescription>retretre</UNIDescription> <RoutingProtocol>Static</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP>10.2.3.6</InterfaceIP> <RouteDistinguisher>69:2147467264</RouteDistinguisher> <StaticRoutingProtocolDetails> <DestinationPrefix>10.2.3.6/32</DestinationPrefix> <NextHop>10.5.7.6</NextHop> </StaticRoutingProtocolDetails> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="557143" uri="/api/space/nsas/device-roles/pe-devices/557143" href="/api/space/nsas/device-roles/pe-devices/557143"> <DeviceName>junos-space2</DeviceName> <DeviceID>557143</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <InterfaceIndex>522</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMSTATICEndPointConfigParameterOrderType"> <UNIDescription>rtyrt</UNIDescription> <RoutingProtocol>Static</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP>10.2.3.5</InterfaceIP> <RouteDistinguisher>69:2147467268</RouteDistinguisher> <StaticRoutingProtocolDetails> <DestinationPrefix>10.2.3.6/32</DestinationPrefix> <NextHop>10.2.3.6</NextHop> </StaticRoutingProtocolDetails> </ServiceEndpointConfiguration> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="557290" uri="/api/space/nsas/device-roles/pe-devices/557290" href="/api/space/nsas/device-roles/pe-devices/557290"> <DeviceName>junos-space3</DeviceName> <DeviceID>557290</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/6</InterfaceName> <InterfaceIndex>523</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMSTATICEndPointConfigParameterOrderType"> <UNIDescription>rtyrty</UNIDescription> <RoutingProtocol>Static</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP>10.2.3.4</InterfaceIP> <RouteDistinguisher>65501:5455873</RouteDistinguisher> <StaticRoutingProtocolDetails> <DestinationPrefix>10.2.3.9/32</DestinationPrefix> <NextHop>10.2.8.4</NextHop> </StaticRoutingProtocolDetails> </ServiceEndpointConfiguration> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> </ServiceOrderParameter> <Reference> <Customer key="557305"/> <ServiceDefinition> <ServiceDefinitionID key="426056"/> </ServiceDefinition> <Service key="426095" /> </Reference> </ServiceOrder> </ServiceResource> </Data>
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>720981</Value> </Identity> <Job> <ID>294918</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>The Service Order Created Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Modify a Full-Mesh IP Service Order with Static Routing Routing Protocol
This request is used to modify a saved IP service order with static routing protocol.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Modifies an IP service order. |
Input
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN_FM_STATIC_Modify_SO_API_01</Name> <Comments>ertert</Comments> </Common> <ServiceType>l3vpn</ServiceType> <EnableMVPN>false</EnableMVPN> <EnableMCLAG>false</EnableMCLAG> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA key="557168" uri="/api/space/nsas/device-roles/pe-devices/557168" href="/api/space/nsas/device-roles/pe-devices/557168"> <DeviceName>junos-space1</DeviceName> <DeviceID>557168</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <InterfaceIndex>522</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMSTATICEndPointConfigParameterOrderType"> <UNIDescription>retretre</UNIDescription> <RoutingProtocol>Static</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP>10.2.3.6</InterfaceIP> <RouteDistinguisher>69:2147467264</RouteDistinguisher> <VlanID>15</VlanID> <StaticRoutingProtocolDetails> <DestinationPrefix>11.11.11.7/32</DestinationPrefix> <NextHop>10.10.10.10</NextHop> </StaticRoutingProtocolDetails> </ServiceEndpointConfiguration> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="557143" uri="/api/space/nsas/device-roles/pe-devices/557143" href="/api/space/nsas/device-roles/pe-devices/557143"> <DeviceName>junos-space2</DeviceName> <DeviceID>557143</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <InterfaceIndex>522</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMSTATICEndPointConfigParameterOrderType"> <UNIDescription>rtyrt</UNIDescription> <RoutingProtocol>Static</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP>10.2.3.5</InterfaceIP> <RouteDistinguisher>69:2147467268</RouteDistinguisher> <StaticRoutingProtocolDetails> <DestinationPrefix>10.2.3.6/32</DestinationPrefix> <NextHop>10.2.3.6</NextHop> </StaticRoutingProtocolDetails> </ServiceEndpointConfiguration> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="557290" uri="/api/space/nsas/device-roles/pe-devices/557290" href="/api/space/nsas/device-roles/pe-devices/557290"> <DeviceName>junos-space3</DeviceName> <DeviceID>557290</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/6</InterfaceName> <InterfaceIndex>523</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMSTATICEndPointConfigParameterOrderType"> <UNIDescription>rtyrty</UNIDescription> <RoutingProtocol>Static</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP>10.2.3.4</InterfaceIP> <AutoPickVlanID>true</AutoPickVlanID> <RouteDistinguisher>65501:5455873</RouteDistinguisher> <StaticRoutingProtocolDetails> <DestinationPrefix>10.2.3.9/32</DestinationPrefix> <NextHop>10.2.8.4</NextHop> </StaticRoutingProtocolDetails> </ServiceEndpointConfiguration> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> </ServiceOrderParameter> <Reference> <Customer key="557305"/> <ServiceDefinition> <ServiceDefinitionID key="426056"/> </ServiceDefinition> <Service key="426095" /> </Reference> </ServiceOrder> </ServiceResource> </Data>
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>983095</Value> </Identity> <Job> <ID>393246</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>The Service Order Modified Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Get a Hub-and-Spoke IP Service Order with Static Routing Protocol by Order ID
This request is used to retrieve the details of a particular hub-and-spoke IP service order with static routing protocol, based on the service order ID.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific IP service order configured with static routing protocol. |
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder key="721158" uri="/api/space/nsas/l3vpn/service-management/service-orders/721158" href="/api/space/nsas/l3vpn/service-management/service-orders/721158"> <Common> <Name>L3VPN_HupSpoke_SO</Name> <Identity>721158</Identity> <State>Validated</State> <Comments>fdgfdgd</Comments> <CreatedDate>2015-01-21T17:10:57.000+05:30</CreatedDate> <LastUpdatedDate>2015-01-21T17:10:57.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>l3vpn</ServiceType> <EnableMVPN>false</EnableMVPN> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA key="557168" uri="/api/space/nsas/device-roles/pe-devices/557168" href="/api/space/nsas/device-roles/pe-devices/557168"> <DeviceName>junos-space1</DeviceName> <DeviceID>557168</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/6</InterfaceName> <InterfaceIndex>523</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSSTATICEndPointConfigParameterOrderType"> <UNIDescription>rewtr</UNIDescription> <RoutingProtocol>Static</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <UnitID>2</UnitID> <VlanId>2</VlanId> <InterfaceIP>10.2.3.4</InterfaceIP> <Hub>false</Hub> <SpokeRouteDistinguisher>69:2147467288</SpokeRouteDistinguisher> <StaticRoutingProtocolDetails> <DestinationPrefix>10.2.4.7/32</DestinationPrefix> <NextHop>10.2.1.3</NextHop> </StaticRoutingProtocolDetails> </ServiceEndpointConfiguration> <ServiceTemplates/> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="557143" uri="/api/space/nsas/device-roles/pe-devices/557143" href="/api/space/nsas/device-roles/pe-devices/557143"> <DeviceName>junos-space2</DeviceName> <DeviceID>557143</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <InterfaceIndex>522</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSSTATICEndPointConfigParameterOrderType"> <UNIDescription>dtgdfg</UNIDescription> <RoutingProtocol>Static</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <UnitID>8</UnitID> <VlanId>8</VlanId> <InterfaceIP>10.6.9.1</InterfaceIP> <Hub>false</Hub> <SpokeRouteDistinguisher>69:2147467290</SpokeRouteDistinguisher> <StaticRoutingProtocolDetails> <DestinationPrefix>10.2.9.1/32</DestinationPrefix> <NextHop>10.2.3.6</NextHop> </StaticRoutingProtocolDetails> </ServiceEndpointConfiguration> <ServiceTemplates/> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="557290" uri="/api/space/nsas/device-roles/pe-devices/557290" href="/api/space/nsas/device-roles/pe-devices/557290"> <DeviceName>junos-space3</DeviceName> <DeviceID>557290</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/2/1</InterfaceName> <InterfaceIndex>526</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSSTATICEndPointConfigParameterOrderType"> <UNIDescription>werwer</UNIDescription> <RoutingProtocol>Static</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <UnitID>1</UnitID> <VlanId>1</VlanId> <InterfaceIP>10.2.9.4</InterfaceIP> <Hub>true</Hub> <HubRouteDistinguisher>65501:5455881</HubRouteDistinguisher> <StaticRoutingProtocolDetails> <DestinationPrefix>10.3.9.7/32</DestinationPrefix> <NextHop>10.2.9.8</NextHop> </StaticRoutingProtocolDetails> </ServiceEndpointConfiguration> <ServiceTemplates/> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> <HubRouteTarget>69:1454096391</HubRouteTarget> <SpokeRouteTarget>69:1454096392</SpokeRouteTarget> </ServiceOrderParameter> <Reference> <Customer uri="/api/space/nsas/customer-management/customers/557305" href="/api/space/nsas/customer-management/customers/557305" key="557305"/> <ServiceDefinition> <ServiceDefinitionID uri="/api/space/nsas/l3vpn/service-management/service-definitions/721135" href="/api/space/nsas/l3vpn/service-management/service-definitions/721135" key="721135"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Create a Hub-and-Spoke IP Service Order with Static Routing Protocol
This request is used to create a hub-and-spoke IP service order with static routing protocol.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Creates an IP service order with static routing protocol. |
Input
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN_HupSpoke_SO_API</Name> <Comments>fdgfdgd</Comments> </Common> <ServiceType>l3vpn</ServiceType> <EnableMVPN>false</EnableMVPN> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA key="557168" uri="/api/space/nsas/device-roles/pe-devices/557168" href="/api/space/nsas/device-roles/pe-devices/557168"> <DeviceName>junos-space1</DeviceName> <DeviceID>557168</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/6</InterfaceName> <InterfaceIndex>523</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSSTATICEndPointConfigParameterOrderType"> <UNIDescription>rewtr</UNIDescription> <RoutingProtocol>Static</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP>10.2.3.4</InterfaceIP> <Hub>false</Hub> <SpokeRouteDistinguisher>69:2147467288</SpokeRouteDistinguisher> <StaticRoutingProtocolDetails> <DestinationPrefix>10.2.4.7/32</DestinationPrefix> <NextHop>10.2.1.3</NextHop> </StaticRoutingProtocolDetails> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="557143" uri="/api/space/nsas/device-roles/pe-devices/557143" href="/api/space/nsas/device-roles/pe-devices/557143"> <DeviceName>junos-space2</DeviceName> <DeviceID>557143</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <InterfaceIndex>522</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSSTATICEndPointConfigParameterOrderType"> <UNIDescription>dtgdfg</UNIDescription> <RoutingProtocol>Static</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP>10.6.9.1</InterfaceIP> <Hub>false</Hub> <SpokeRouteDistinguisher>69:2147467290</SpokeRouteDistinguisher> <StaticRoutingProtocolDetails> <DestinationPrefix>10.2.9.1/32</DestinationPrefix> <NextHop>10.2.3.6</NextHop> </StaticRoutingProtocolDetails> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="557290" uri="/api/space/nsas/device-roles/pe-devices/557290" href="/api/space/nsas/device-roles/pe-devices/557290"> <DeviceName>junos-space3</DeviceName> <DeviceID>557290</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/2/1</InterfaceName> <InterfaceIndex>526</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSSTATICEndPointConfigParameterOrderType"> <UNIDescription>werwer</UNIDescription> <RoutingProtocol>Static</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP>10.2.9.4</InterfaceIP> <Hub>true</Hub> <HubRouteDistinguisher>65501:5455881</HubRouteDistinguisher> <StaticRoutingProtocolDetails> <DestinationPrefix>10.3.9.7/32</DestinationPrefix> <NextHop>10.2.9.8</NextHop> </StaticRoutingProtocolDetails> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> </ServiceOrderParameter> <Reference> <Customer key="557305" /> <ServiceDefinition> <ServiceDefinitionID key="721135" /> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>1310720</Value> </Identity> <Job> <ID>425987</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>The Service Order Created Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Modify a Hub-and-Spoke IP Service Order with Static Routing Routing Protocol
This request is used to modify a saved IP service order with static routing protocol.
URI | /api/space/nsas/l3vpn/service-management/service-orders/<serviceOrderId> |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Modifies an IP service order. |
Input
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN_HupSpoke_ModifySO_API</Name> <Comments>fdgfdgd</Comments> </Common> <ServiceType>l3vpn</ServiceType> <EnableMVPN>false</EnableMVPN> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA key="557168" uri="/api/space/nsas/device-roles/pe-devices/557168" href="/api/space/nsas/device-roles/pe-devices/557168"> <DeviceName>junos-space1</DeviceName> <DeviceID>557168</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/6</InterfaceName> <InterfaceIndex>523</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSSTATICEndPointConfigParameterOrderType"> <UNIDescription>rewtr</UNIDescription> <RoutingProtocol>Static</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP>10.2.3.4</InterfaceIP> <Hub>false</Hub> <SpokeRouteDistinguisher>69:2147467288</SpokeRouteDistinguisher> <StaticRoutingProtocolDetails> <DestinationPrefix>12.12.12.12/32</DestinationPrefix> <NextHop>10.2.1.3</NextHop> </StaticRoutingProtocolDetails> </ServiceEndpointConfiguration> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="557143" uri="/api/space/nsas/device-roles/pe-devices/557143" href="/api/space/nsas/device-roles/pe-devices/557143"> <DeviceName>junos-space2</DeviceName> <DeviceID>557143</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <InterfaceIndex>522</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSSTATICEndPointConfigParameterOrderType"> <UNIDescription>dtgdfg</UNIDescription> <RoutingProtocol>Static</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP>10.6.9.1</InterfaceIP> <Hub>false</Hub> <SpokeRouteDistinguisher>69:2147467290</SpokeRouteDistinguisher> <StaticRoutingProtocolDetails> <DestinationPrefix>10.2.9.1/32</DestinationPrefix> <NextHop>10.2.3.6</NextHop> </StaticRoutingProtocolDetails> </ServiceEndpointConfiguration> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="557290" uri="/api/space/nsas/device-roles/pe-devices/557290" href="/api/space/nsas/device-roles/pe-devices/557290"> <DeviceName>junos-space3</DeviceName> <DeviceID>557290</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/2/1</InterfaceName> <InterfaceIndex>526</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSSTATICEndPointConfigParameterOrderType"> <UNIDescription>werwer</UNIDescription> <RoutingProtocol>Static</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP>10.2.9.4</InterfaceIP> <Hub>true</Hub> <HubRouteDistinguisher>65501:5455881</HubRouteDistinguisher> <StaticRoutingProtocolDetails> <DestinationPrefix>10.3.9.7/32</DestinationPrefix> <NextHop>10.2.9.8</NextHop> </StaticRoutingProtocolDetails> </ServiceEndpointConfiguration> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> </ServiceOrderParameter> <Reference> <Customer key="557305" /> <ServiceDefinition> <ServiceDefinitionID key="721135" /> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>1310736</Value> </Identity> <Job> <ID>425988</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>The Service Order Modified Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Get a Hub-and-Spoke IP Service Order with Loopback Service By Order ID
This request is used to retrieve the details of a particular hub-and-spoke IP service order with loopback service, based on the service order ID.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific hub-and-spoke IP LDP service order configured with a loopback service. |
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data> <ServiceResource> <ServiceOrder href="/api/space/nsas/l3vpn/service-management/service-orders/852002" uri="/api/space/nsas/l3vpn/service-management/service-orders/852002" key="852002"> <Common> <Name>test-loop</Name> <Identity>852002</Identity> <State>Completed</State> <Comments>test</Comments> <CreatedDate>2013-05-25T16:26:55.000+05:30</CreatedDate> <LastUpdatedDate>2013-05-25T16:27:47.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>l3vpn</ServiceType> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/819337" uri="/api/space/nsas/device-roles/pe-devices/819337" key="819337"> <DeviceName>jaipur</DeviceName> <DeviceID>819337</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/3</InterfaceName> <ServiceEndpointConfiguration xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <RoutingProtocol>OSPF</RoutingProtocol> <EthernetOption>Vlan</EthernetOption> <VlanId>8</VlanId> <UnitID>0</UnitID> <InterfaceIP>10.0.77.1</InterfaceIP> <Hub>true</Hub> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/819337" uri="/api/space/nsas/device-roles/pe-devices/819337" key="819337"> <DeviceName>jaipur</DeviceName> <DeviceID>819337</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>lo0</InterfaceName> <ServiceEndpointConfiguration xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <RoutingProtocol>OSPF</RoutingProtocol> <EthernetOption>Vlan</EthernetOption> <VlanId>0</VlanId> <UnitID>0</UnitID> <InterfaceIP>10.0.77.5</InterfaceIP> <Hub>false</Hub> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xsi:type="L3VPNConfigParameterOrderType"> <VRFTabelLabel>true</VRFTabelLabel> <HubRouteTarget>100:5619718</HubRouteTarget> <SpokeRouteTarget>100:5619719</SpokeRouteTarget> <HubRouteDistinguisher>100:47349766</HubRouteDistinguisher> </ServiceOrderParameter> <Reference> <Customer key="819382" href="/api/space/nsas/customer-management/customers/819382" uri="/api/space/nsas/customer-management/customers/819382" /> <ServiceDefinition> <ServiceDefinitionID key="393244" href="/api/space/nsas/l3vpn/service-management/service-definitions/393244" uri="/api/space/nsas/l3vpn/service-management/service-definitions/393244" /> </ServiceDefinition> <Service key="852015" href="/api/space/nsas/l3vpn/service-management/services/852015" uri="/api/space/nsas/l3vpn/service-management/services/852015" /> </Reference> </ServiceOrder> </ServiceResource> </Data>
Create a Hub-and-Spoke IP Service Order with Loopback Service
This request is used to create a hub-and-spoke IP service order with loopback service.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Creates a hub-and-spoke IP service order with loopback service. |
Input
Sample XML Input
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>gd123455345</Name> <Comments>dgdgdfg</Comments> </Common> <ServiceType>l3vpn</ServiceType> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/589845" uri="/api/space/nsas/device-roles/pe-devices/589845" key="589845"> <DeviceName>embassy</DeviceName> <DeviceID>589845</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>xe-0/0/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <Hub>true</Hub> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/589845" uri="/api/space/nsas/device-roles/pe-devices/589845" key="589845"> <DeviceName>embassy</DeviceName> <DeviceID>589845</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>lo0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <UnitID>23</UnitID> <Hub>false</Hub> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <Reference> <Customer key="589863" href="/api/space/nsas/customer-management/customers/589863" uri="/api/space/nsas/customer-management/customers/589863" /> <ServiceDefinition> <ServiceDefinitionID key="360476" href="/api/space/nsas/l3vpn/service-management/service-definitions/360476" uri="/api/space/nsas/l3vpn/service-management/service-definitions/360476" /> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType"> <Action>SaveAndDeployNow</Action> </CustomAction> </Data>
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>1507439</Value> </Identity> <Job> <ID>622660</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>Service Order Created Successfully and Deployment is in Progress. Please check the status using the JOB ID. </Message> </Status> </Data>
Get a Full-Mesh IP Service Order with Loopback Service By Order ID
This request is used to retrieve the details of a particular full-mesh IP service order with loopback service, based on the service order ID.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific full-mesh IP LDP service order configured with a loopback service. |
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data> <ServiceResource> <ServiceOrder href="/api/space/nsas/l3vpn/service-management/service-orders/852133" uri="/api/space/nsas/l3vpn/service-management/service-orders/852133" key="852133"> <Common> <Name>hghthg</Name> <Identity>852133</Identity> <State>Completed</State> <Comments>htfh</Comments> <CreatedDate>2013-05-25T17:22:26.000+05:30</CreatedDate> <LastUpdatedDate>2013-05-25T17:22:47.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>l3vpn</ServiceType> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/819337" uri="/api/space/nsas/device-roles/pe-devices/819337" key="819337"> <DeviceName>jaipur</DeviceName> <DeviceID>819337</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/3</InterfaceName> <ServiceEndpointConfiguration xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <RoutingProtocol>OSPF</RoutingProtocol> <EthernetOption>Vlan</EthernetOption> <VlanId>15</VlanId> <UnitID>0</UnitID> <InterfaceIP>10.0.88.33</InterfaceIP> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/819337" uri="/api/space/nsas/device-roles/pe-devices/819337" key="819337"> <DeviceName>jaipur</DeviceName> <DeviceID>819337</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>lo0</InterfaceName> <ServiceEndpointConfiguration xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <RoutingProtocol>OSPF</RoutingProtocol> <EthernetOption>Vlan</EthernetOption> <VlanId>0</VlanId> <UnitID>0</UnitID> <InterfaceIP>10.0.88.49</InterfaceIP> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xsi:type="L3VPNConfigParameterOrderType"> <RouteTarget>100:5619723</RouteTarget> <RouteDistinguisher>100:47349772</RouteDistinguisher> <VRFTabelLabel>true</VRFTabelLabel> </ServiceOrderParameter> <Reference> <Customer key="819382" href="/api/space/nsas/customer-management/customers/819382" uri="/api/space/nsas/customer-management/customers/819382" /> <ServiceDefinition> <ServiceDefinitionID key="852073" href="/api/space/nsas/l3vpn/service-management/service-definitions/852073" uri="/api/space/nsas/l3vpn/service-management/service-definitions/852073" /> </ServiceDefinition> <Service key="852146" href="/api/space/nsas/l3vpn/service-management/services/852146" uri="/api/space/nsas/l3vpn/service-management/services/852146" /> </Reference> </ServiceOrder> </ServiceResource> </Data>
Create a Full-Mesh IP Service Order with Loopback Service
This request is used to create a full-mesh IP service order with loopback service.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Creates an IP service order with loopback service. |
Input
Sample XML Input
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>hrdgred786786</Name> <Comments>trst</Comments> </Common> <ServiceType>l3vpn</ServiceType> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/589845" uri="/api/space/nsas/device-roles/pe-devices/589845" key="589845"> <DeviceName>embassy</DeviceName> <DeviceID>589845</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>xe-0/0/1</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/589845" uri="/api/space/nsas/device-roles/pe-devices/589845" key="589845"> <DeviceName>embassy</DeviceName> <DeviceID>589845</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>lo0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <Reference> <Customer key="589863" href="/api/space/nsas/customer-management/customers/589863" uri="/api/space/nsas/customer-management/customers/589863" /> <ServiceDefinition> <ServiceDefinitionID key="360462" href="/api/space/nsas/l3vpn/service-management/service-definitions/360462" uri="/api/space/nsas/l3vpn/service-management/service-definitions/360462" /> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType"> <Action>SaveAndDeployNow</Action> </CustomAction> </Data>
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>1507439</Value> </Identity> <Job> <ID>622660</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>Service Order Created Successfully and Deployment is in Progress. Please check the status using the JOB ID. </Message> </Status> </Data>
Get an IP Service Order with Stitching Point By Order ID
This request is used to retrieve the details of a particular IP service order with stitching point, based on the service order ID.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific IP LDP service order configured with a stitching point. |
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <Service key="786462" uri="/api/space/nsas/l3vpn/service-management/services/786462" href="/api/space/nsas/l3vpn/service-management/services/786462"> <Common> <Name>L3VPN-BGP-Static_SO_SPAPI</Name> <Identity>786462</Identity> <State>Deployed</State> <CreatedDate>2015-01-08T16:44:54.000+05:30</CreatedDate> <LastUpdatedDate>2015-01-08T17:17:31.000+05:30</LastUpdatedDate> </Common> <ServiceType>L3VPN</ServiceType> <EnableMVPN>false</EnableMVPN> <EnableMCLAG>false</EnableMCLAG> <AuditFlag> <FunctionalAudit>Up</FunctionalAudit> <FaultStatus>None</FaultStatus> <SLAStatus>None</SLAStatus> </AuditFlag> <ServiceEndPointGroup> <DeviceInfo> <NA key="524377" uri="/api/space/nsas/device-roles/pe-devices/524377" href="/api/space/nsas/device-roles/pe-devices/524377"> <DeviceName>junos-space1</DeviceName> <DeviceID>524377</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/3</InterfaceName> <InterfaceIndex>520</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterServiceType"> <RoutingProtocol>BGP</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <UnitID>9</UnitID> <VlanId>9</VlanId> <InterfaceIP>10.0.88.5</InterfaceIP> <RouteDistinguisher>69:2147467265</RouteDistinguisher> <PeerAS>7</PeerAS> <NeighborIP>10.0.88.6</NeighborIP> </ServiceEndpointConfiguration> <ServiceTemplates/> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="524302" uri="/api/space/nsas/device-roles/pe-devices/524302" href="/api/space/nsas/device-roles/pe-devices/524302"> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>524302</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterServiceType"/> </ServiceEndPoint> <EnableStitchingPoint>true</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="524349" uri="/api/space/nsas/device-roles/pe-devices/524349" href="/api/space/nsas/device-roles/pe-devices/524349"> <DeviceName>junos-space2</DeviceName> <DeviceID>524349</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterServiceType"/> </ServiceEndPoint> <EnableStitchingPoint>true</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterServiceType"> <RouteTarget>69:1454096385</RouteTarget> <VRFTabelLabel>Enabled</VRFTabelLabel> <ASOverride>true</ASOverride> <MaximumPrefixes>0</MaximumPrefixes> </ServiceParameters> <Reference> <ServiceOrder uri="/api/space/nsas/l3vpn/service-management/service-orders/786451" href="/api/space/nsas/l3vpn/service-management/service-orders/786451" key="786451"/> <ServiceDefinition> <ServiceDefinitionID uri="/api/space/nsas/l3vpn/service-management/service-definitions/425984" href="/api/space/nsas/l3vpn/service-management/service-definitions/425984" key="425984"/> </ServiceDefinition> <Customer uri="/api/space/nsas/customer-management/customers/524492" href="/api/space/nsas/customer-management/customers/524492" key="524492"/> </Reference> </Service> </ServiceResource> </Data>
Create an IP Service Order with Stitching Point
This request is used to create an IP service order with stitching point.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Creates an IP service order with stitching point. |
Input (Full-Mesh IP with BGP)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN-BGP-Static_SO_SPAPI</Name> <Comments>BGP_FullMesh</Comments> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>524377</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>false</AutoPickVlanID> <VlanId>9</VlanId> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <PeerAS>7</PeerAS> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <EnableStitchingPoint>true</EnableStitchingPoint> <DeviceInfo> <NA> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>524302</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> </ServiceEndPoint> </ServiceEndPointGroup> <Reference> <Customer key="524492"/> <ServiceDefinition> <ServiceDefinitionID key="425984"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Input (Full-Mesh IP with OSPF)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN_OSPF_SP_API</Name> </Common> <ServiceType>l3vpn</ServiceType> <EnableMVPN>false</EnableMVPN> <EnableMCLAG>false</EnableMCLAG> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>524377</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <AutoPickUnitID>false</AutoPickUnitID> <UnitID>400</UnitID> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates/> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <EnableStitchingPoint>true</EnableStitchingPoint> <DeviceInfo> <NA> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>524302</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <ServiceTemplates/> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> <OSPFDomainID>2.2.2.2</OSPFDomainID> </ServiceOrderParameter> <Reference> <Customer key="524492"/> <ServiceDefinition> <ServiceDefinitionID key="426002"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType"> <Action>SaveAndDeployNow</Action> </CustomAction> </Data>
Input (Hub-and-Spoke IP with BGP)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN_BGPHS_SO_API</Name> <Comments>afdsf</Comments> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>524377</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSBGPEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <Hub>true</Hub> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <PeerAS>23</PeerAS> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <EnableStitchingPoint>true</EnableStitchingPoint> <DeviceInfo> <NA> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>524302</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> </ServiceEndPoint> </ServiceEndPointGroup> <Reference> <Customer key="524492"/> <ServiceDefinition> <ServiceDefinitionID key="426038"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType"> <Action>SaveAndDeployNow</Action> </CustomAction> </Data>
Input (Hub-and-Spoke IP with OSPF)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN_OSPFHS_SO_API</Name> <Comments>dgdgdfg</Comments> </Common> <ServiceType>l3vpn</ServiceType> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>524377</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <Hub>true</Hub> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <EnableStitchingPoint>true</EnableStitchingPoint> <DeviceInfo> <NA> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>524302</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <Reference> <Customer key="524492"/> <ServiceDefinition> <ServiceDefinitionID key="426020"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType"> <Action>SaveAndDeployNow</Action> </CustomAction> </Data>
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>3211503</Value> </Identity> <Job> <ID>819329</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>The Service Order Created Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Modify an IP Service Order with Stitching Point
This request is used to modify an IP service order with stitching point.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Modifies an IP service order with stitching point. |
Input (Full-Mesh IP with BGP)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN-BGP-Static_ModifySO_SPAPI</Name> <Comments>BGP_FullMesh</Comments> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>524377</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>false</AutoPickVlanID> <VlanId>9</VlanId> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <PeerAS>7</PeerAS> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <EnableStitchingPoint>true</EnableStitchingPoint> <DeviceInfo> <NA> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>524302</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> </ServiceEndPoint> </ServiceEndPointGroup> </ServiceOrder> </ServiceResource> </Data>
Input (Full-Mesh IP with OSPF)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN_OSPF_ModifySOSP_API</Name> </Common> <ServiceType>l3vpn</ServiceType> <EnableMVPN>false</EnableMVPN> <EnableMCLAG>false</EnableMCLAG> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>524377</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <AutoPickUnitID>false</AutoPickUnitID> <UnitID>400</UnitID> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates/> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <EnableStitchingPoint>true</EnableStitchingPoint> <DeviceInfo> <NA> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>524302</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <ServiceTemplates/> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> <OSPFDomainID>2.2.2.2</OSPFDomainID> </ServiceOrderParameter> </ServiceOrder> </ServiceResource> </Data>
Input (Hub-and-Spoke IP with BGP)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN_BGPHS_ModifySO_API</Name> <Comments>afdsf</Comments> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>524377</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSBGPEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <Hub>true</Hub> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <PeerAS>23</PeerAS> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <EnableStitchingPoint>true</EnableStitchingPoint> <DeviceInfo> <NA> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>524302</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> </ServiceEndPoint> </ServiceEndPointGroup> </ServiceOrder> </ServiceResource> </Data>
Input (Hub-and-Spoke IP with OSPF)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN_OSPFHS_ModifySO_API</Name> <Comments>dgdgdfg</Comments> </Common> <ServiceType>l3vpn</ServiceType> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>524377</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <Hub>true</Hub> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <EnableStitchingPoint>true</EnableStitchingPoint> <DeviceInfo> <NA> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>524302</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> </ServiceOrder> </ServiceResource> </Data>
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>3211503</Value> </Identity> <Job> <ID>819329</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>The Service Order Created Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Create an IP Service Order with Loopback Interfaces
This request is used to create an IP service order with loopback interfaces.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Creates an IP service order with loopback interfaces. |
Input (Full-Mesh IP with BGP)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>l3vpnBGPAPI_235</Name> </Common> <ServiceType>l3vpn</ServiceType> <EnableMVPN>false</EnableMVPN> <EnableMCLAG>false</EnableMCLAG> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>7536753</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <EthernetOption>Dot1Q</EthernetOption> <AutoPickUnitID>false</AutoPickUnitID> <UnitID>235</UnitID> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <PeerAS>1</PeerAS> </ServiceEndpointConfiguration> <ServiceTemplates/> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <EnableLoopback>true</EnableLoopback> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>7536753</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>lo0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <EthernetOption>Dot1Q</EthernetOption> <UnitID>235</UnitID> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <PeerAS>1</PeerAS> </ServiceEndpointConfiguration> <ServiceTemplates/> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> <ASOverride>true</ASOverride> </ServiceOrderParameter> <Reference> <Customer key="4128768"/> <ServiceDefinition> <ServiceDefinitionID key="425984"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType"> <Action>SaveAndDeployNow</Action> </CustomAction> </Data>
Input (Full-Mesh IP with OSPF)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>testOSPF_API</Name> </Common> <ServiceType>l3vpn</ServiceType> <EnableMVPN>false</EnableMVPN> <EnableMCLAG>false</EnableMCLAG> <Action>Provisioning</Action> <ServiceEndPointGroup> <EnableLoopback>true</EnableLoopback> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>7536753</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>lo0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <UnitID>400</UnitID> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates/> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>7536753</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <AutoPickUnitID>false</AutoPickUnitID> <UnitID>400</UnitID> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates/> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> <OSPFDomainID>2.2.2.2</OSPFDomainID> </ServiceOrderParameter> <Reference> <Customer key="4128768"/> <ServiceDefinition> <ServiceDefinitionID key="426002"/> </ServiceDefinition> <Service/> </Reference> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType"> <Action>SaveAndDeployNow</Action> </CustomAction> </Data>
Input (Hub-and-Spoke IP with BGP)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPNHSBGPService_API1</Name> <Comments>afdsf</Comments> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>7536753</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSBGPEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <Hub>true</Hub> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <PeerAS>23</PeerAS> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <EnableLoopback>true</EnableLoopback> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>7536753</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>lo0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSBGPEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <Hub>false</Hub> <AutoPickVlanID>true</AutoPickVlanID> <UnitID>36</UnitID> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <PeerAS>23</PeerAS> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <Reference> <Customer key="4128768" /> <ServiceDefinition> <ServiceDefinitionID key="426038" /> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType"> <Action>SaveAndDeployNow</Action> </CustomAction> </Data>
Input (Hub-and-Spoke IP with OSPF)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>SO_11_1_hubSpoke_4</Name> <Comments>dgdgdfg</Comments> </Common> <ServiceType>l3vpn</ServiceType> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>7536753</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <Hub>true</Hub> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <EnableLoopback>true</EnableLoopback> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>7536753</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>lo0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <UnitID>26</UnitID> <Hub>false</Hub> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <Reference> <Customer key="4128768"/> <ServiceDefinition> <ServiceDefinitionID key="426020"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType"> <Action>SaveAndDeployNow</Action> </CustomAction> </Data>
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>3211503</Value> </Identity> <Job> <ID>819329</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>The Service Order Created Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Modify an IP Service Order with Loopback Interfaces
This request is used to modify an IP service order with loopback interfaces.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Modifies an IP service order with loopback interfaces. |
Input (Full-Mesh IP with BGP)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN-BGP-Static_ModifySO_SPAPI</Name> <Comments>BGP_FullMesh</Comments> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>524377</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>false</AutoPickVlanID> <VlanId>9</VlanId> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <PeerAS>7</PeerAS> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <EnableLoopback>true</EnableLoopback> <DeviceInfo> <NA> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>524302</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>lo0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>false</AutoPickVlanID> <VlanId>9</VlanId> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <PeerAS>7</PeerAS> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> </ServiceOrder> </ServiceResource> </Data>
Input (Full-Mesh IP with OSPF)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN_OSPF_ModifySOSP_API</Name> </Common> <ServiceType>l3vpn</ServiceType> <EnableMVPN>false</EnableMVPN> <EnableMCLAG>false</EnableMCLAG> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>524377</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <AutoPickUnitID>false</AutoPickUnitID> <UnitID>400</UnitID> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates/> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <EnableLoopback>true</EnableLoopback> <DeviceInfo> <NA> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>524302</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>lo0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>false</AutoPickVlanID> <VlanId>9</VlanId> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <PeerAS>7</PeerAS> </ServiceEndpointConfiguration> <ServiceTemplates/> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> <OSPFDomainID>2.2.2.2</OSPFDomainID> </ServiceOrderParameter> </ServiceOrder> </ServiceResource> </Data>
Input (Hub-and-Spoke IP with BGP)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN_BGPHS_ModifySO_API</Name> <Comments>afdsf</Comments> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>524377</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSBGPEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <Hub>true</Hub> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <PeerAS>23</PeerAS> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <EnableLoopback>true</EnableLoopback> <DeviceInfo> <NA> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>524302</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>lo0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>false</AutoPickVlanID> <VlanId>9</VlanId> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <PeerAS>7</PeerAS> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> </ServiceOrder> </ServiceResource> </Data>
Input (Hub-and-Spoke IP with OSPF)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN_OSPFHS_ModifySO_API</Name> <Comments>dgdgdfg</Comments> </Common> <ServiceType>l3vpn</ServiceType> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>524377</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <Hub>true</Hub> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <EnableLoopback>true</EnableLoopback> <DeviceInfo> <NA> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>524302</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>lo0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>false</AutoPickVlanID> <VlanId>9</VlanId> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <PeerAS>7</PeerAS> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> </ServiceOrder> </ServiceResource> </Data>
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>3211503</Value> </Identity> <Job> <ID>819329</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>The Service Order Created Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Get E-Line Service Orders with Pseudowire Stitching for an IP By Order ID
This request is used to retrieve a configured IP service orders stitched to an IP, based on the service order ID.
URI | /api/space/nsas/eline-ptp/service-management/service-orders/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management.service-order+xml |
Produces | Collects a specific configured E-Line service order stitched to an L3VPN. |
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder href="/api/space/nsas/eline-ptp/service-management/service-orders/1376436" uri="/api/space/nsas/eline-ptp/service-management/service-orders/1376436" key="1376436"> <Common> <Name>nnibst</Name> <Identity>1376436</Identity> <State>Completed</State> <CreatedDate>2013-03-13T17:51:57.000+05:30</CreatedDate> <LastUpdatedDate>2013-03-13T17:57:14.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <Signaling>LDP</Signaling> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/1409926" uri="/api/space/nsas/device-roles/pe-devices/1409926" key="1409926"> <DeviceName>exora</DeviceName> <DeviceID>1409926</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>lt-1/2/0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineLDPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <TrafficType>DOT1Q Transport single vlan</TrafficType> <PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation> <LogicalEncapsulation>vlan-ccc</LogicalEncapsulation> <UNIDescription>N/A</UNIDescription> <OuterTPID>None</OuterTPID> <VlanId>512</VlanId> <MTU>1522</MTU> <Bandwidth unit="Kbps">0</Bandwidth> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> <PWStitching> <L3RoutingInstName>nib</L3RoutingInstName> <IPAddressPool>10.0.99.21/30</IPAddressPool> <PeerUnitName>4096</PeerUnitName> </PWStitching> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/1409884" uri="/api/space/nsas/device-roles/pe-devices/1409884" key="1409884"> <DeviceName>kochin</DeviceName> <DeviceID>1409884</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/9</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineLDPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <TrafficType>DOT1Q Transport single vlan</TrafficType> <PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation> <LogicalEncapsulation>vlan-ccc</LogicalEncapsulation> <UNIDescription>N/A</UNIDescription> <OuterTPID>None</OuterTPID> <VlanId>513</VlanId> <MTU>1522</MTU> <Bandwidth unit="Kbps">0</Bandwidth> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterOrderType"> <MTU>1522</MTU> <VCID>2147467284</VCID> </ServiceOrderParameter> <Reference> <Customer key="557188" href="/api/space/nsas/customer-management/customers/557188" uri="/api/space/nsas/customer-management/customers/557188" /> <ServiceDefinition> <ServiceDefinitionID key="295167" href="/api/space/nsas/eline-ptp/service-management/service-definitions/295167" uri="/api/space/nsas/eline-ptp/service-management/service-definitions/295167" /> </ServiceDefinition> <Service key="1376445" href="/api/space/nsas/eline-ptp/service-management/services/1376445" uri="/api/space/nsas/eline-ptp/service-management/services/1376445" /> </Reference> </ServiceOrder> </ServiceResource> </Data>
Create an IP Service Order with Pseudowire Stitching
This request is used to create an IP service order with pseudowire stitching.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Creates an IP service order with stitching point. |
Input
Sample XML Input
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>Stitch-PTP3</Name> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <Signaling>LDP</Signaling> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-m10-1-space</DeviceName> <DeviceID>2195593</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>lt-1/0/0</InterfaceName> </ServiceEndPoint> <PWStitching> <AutopickIntfIp>true</AutopickIntfIp> <L3RoutingInstName>FMOSPF-L3VPN</L3RoutingInstName> <IPBlockSize>30</IPBlockSize> <IPAddressPool>10.0.99.0/24</IPAddressPool> <PeerUnitName>4096</PeerUnitName> </PWStitching> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>jaipur</DeviceName> <DeviceID>2195618</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/3</InterfaceName> </ServiceEndPoint> </ServiceEndPointGroup> <Reference> <Customer key="1081493" /> <ServiceDefinition> <ServiceDefinitionID key="950272" /> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType"> <Action>SaveAndDeployNow</Action> </CustomAction> </Data>
Input (With Redundancy)
Sample XML Input
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>Stitch-PTP3</Name> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <Signaling>LDP</Signaling> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-m10-1-space</DeviceName> <DeviceID>2195593</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>lt-1/0/0</InterfaceName> </ServiceEndPoint> <BackUpSettings> <Enable>true</Enable> <DeviceInfo> <NA> <DeviceName>junos-mx480-space</DeviceName> <DeviceID>5341242</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-5/0/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineLDPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <MTU>1522</MTU> <Bandwidth unit="Mbps">10</Bandwidth> <RevertTime>55</RevertTime> <SwitchOverDelay>11</SwitchOverDelay> </ServiceEndpointConfiguration> </ServiceEndPoint> </BackUpSettings> <PWStitching> <AutopickIntfIp>true</AutopickIntfIp> <L3RoutingInstName>FMOSPF-L3VPN</L3RoutingInstName> <IPBlockSize>30</IPBlockSize> <IPAddressPool>10.0.99.0/24</IPAddressPool> <PeerUnitName>4096</PeerUnitName> </PWStitching> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>jaipur</DeviceName> <DeviceID>2195618</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/3</InterfaceName> </ServiceEndPoint> </ServiceEndPointGroup> <Reference> <Customer key="1081493" /> <ServiceDefinition> <ServiceDefinitionID key="950272" /> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType"> <Action>SaveAndDeployNow</Action> </CustomAction> </Data>
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>6553609</Value> </Identity> <Job> <ID>1998898</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>Service Order Created Successfully and Deployment is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Get an IP Service Order with VRF Route Label By Order ID
This request is used to retrieve the details of a particular IP service order with VRF route label, based on the service order ID.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific IP LDP service order configured with VRF route label. |
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPNAPI</Name> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>embassy</DeviceName> <DeviceID>721075</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/0/9</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <RoutingProtocol>OSPF</RoutingProtocol> <EthernetOption>Vlan</EthernetOption> <UnitID>0</UnitID> <InterfaceIP>10.0.77.1</InterfaceIP> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> <RouteTarget>100:7</RouteTarget> <RouteDistinguisher>100:34</RouteDistinguisher> <VRFTabelLabel>Enable</VRFTabelLabel> </ServiceOrderParameter> <Reference> <Customer key="720896"/> <ServiceDefinition> <ServiceDefinitionID key="1441826"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Create an IP Service Order with VRF Route Label
This request is used to create an IP service order with VRF route label.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Creates an IP service order with VRF route label. |
Input
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPNFMOSPFService_API6</Name> <Comments></Comments> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>kochin</DeviceName> <DeviceID>393340</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/1/6</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <IPPool>Global</IPPool> <IPAddressPool>10.0.99.0/24</IPAddressPool> <AutoPickVlanId>true</AutoPickVlanId> <UnitID>12</UnitID> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> <RouteTarget>10:4465465</RouteTarget> <RouteDistinguisher>10:4465</RouteDistinguisher> <VRFTabelLabel>Enable</VRFTabelLabel> </ServiceOrderParameter> <Reference> <Customer key="393216" /> <ServiceDefinition> <ServiceDefinitionID key="1638400" /> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>1638453</Value> </Identity> <Job> <ID>524317</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>The Service Order Created Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Get an IP Service Order with Manual Route Target By Order ID
This request is used to retrieve the details of a particular IP service order with manual route target based on the service order ID.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific IP service order with manual route target. |
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder href="/api/space/nsas/l3vpn/service-management/service-orders/1605699" uri="/api/space/nsas/l3vpn/service-management/service-orders/1605699" key="1605699"> <Common> <Name>RDRTManual</Name> <Identity>1605699</Identity> <State>Completed</State> <Comments> </Comments> <CreatedDate>2012-12-16T19:56:30.000+05:30</CreatedDate> <LastUpdatedDate>2012-12-16T19:56:54.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>l3vpn</ServiceType> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/721075" uri="/api/space/nsas/device-roles/pe-devices/721075" key="721075"> <DeviceName>embassy</DeviceName> <DeviceID>721075</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/0/9</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <RoutingProtocol>OSPF</RoutingProtocol> <EthernetOption>Vlan</EthernetOption> <VlanId>3</VlanId> <UnitID>0</UnitID> <InterfaceIP>10.0.77.5</InterfaceIP> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> <RouteTarget>10:2</RouteTarget> <RouteDistinguisher>10:2</RouteDistinguisher> <VRFTabelLabel>Enabled</VRFTabelLabel> </ServiceOrderParameter> <Reference> <Customer key="720896" href="/api/space/nsas/customer-management/customers/720896" uri="/api/space/nsas/customer-management/customers/720896"/> <ServiceDefinition> <ServiceDefinitionID key="1605682" href="/api/space/nsas/l3vpn/service-management/service-definitions/1605682" uri="/api/space/nsas/l3vpn/service-management/service-definitions/1605682"/> </ServiceDefinition> <Service key="1605706" href="/api/space/nsas/l3vpn/service-management/services/1605706" uri="/api/space/nsas/l3vpn/service-management/services/1605706"/> </Reference> </ServiceOrder> </ServiceResource> </Data>
Create an IP Service Order with Manual Route Target
This request is used to create an IP service order configured with manual route target.
URI | /api/space/nsas/l3vpn/service-management/service-orders/redundancy |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Creates an IP service order with manual route target. |
Input
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPNFMOSPFService_API6</Name> <Comments></Comments> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>kochin</DeviceName> <DeviceID>393340</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/1/6</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <IPPool>Global</IPPool> <IPAddressPool>10.0.99.0/24</IPAddressPool> <AutoPickVlanId>true</AutoPickVlanId> <UnitID>12</UnitID> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> <RouteTarget>10:4465465</RouteTarget> <RouteDistinguisher>10:4465</RouteDistinguisher> <VRFTabelLabel>Enable</VRFTabelLabel> </ServiceOrderParameter> <Reference> <Customer key="393216" /> <ServiceDefinition> <ServiceDefinitionID key="1638400" /> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>1638453</Value> </Identity> <Job> <ID>524317</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>The Service Order Created Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Get All IP Service Orders
This request is used to retrieve all the configured IP service orders.
URI | /api/space/nsas/l3vpn/service-management/service-orders |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects all the configured IP service orders. |
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource size="2"> <ServiceOrder href="/api/space/nsas/l3vpn/service-management/service-orders/983419" uri="/api/space/nsas/l3vpn/service-management/service-orders/983419" key="983419"> <Common> <Name>L3VPNHSOSPFService0017</Name> <Identity>983419</Identity> <State>Completed</State> <CreatedDate>2012-09-08T15:09:35.000+05:30</CreatedDate> <LastUpdatedDate>2012-09-08T15:10:05.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <Action>Modification</Action> <Reference> <Customer key="557278" href="/api/space/nsas/customer-management/customers/557278" uri="/api/space/nsas/customer-management/customers/557278" /> <ServiceDefinition> <ServiceDefinitionID key="360474" href="/api/space/nsas/l3vpn/service-management/service-definitions/360474" uri="/api/space/nsas/l3vpn/service-management/service-definitions/360474" /> </ServiceDefinition> <Service key="983303" href="/api/space/nsas/l3vpn/service-management/services/983303" uri="/api/space/nsas/l3vpn/service-management/services/983303" /> </Reference> </ServiceOrder> <ServiceOrder href="/api/space/nsas/l3vpn/service-management/service-orders/983367" uri="/api/space/nsas/l3vpn/service-management/service-orders/983367" key="983367"> <Common> <Name>L3VPNHSOSPFService0016</Name> <Identity>983367</Identity> <State>Completed</State> <CreatedDate>2012-09-08T14:44:31.000+05:30</CreatedDate> <LastUpdatedDate>2012-09-08T14:44:59.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <Action>Modification</Action> <Reference> <Customer key="557278" href="/api/space/nsas/customer-management/customers/557278" uri="/api/space/nsas/customer-management/customers/557278" /> <ServiceDefinition> <ServiceDefinitionID key="360474" href="/api/space/nsas/l3vpn/service-management/service-definitions/360474" uri="/api/space/nsas/l3vpn/service-management/service-definitions/360474" /> </ServiceDefinition> <Service key="983303" href="/api/space/nsas/l3vpn/service-management/services/983303" uri="/api/space/nsas/l3vpn/service-management/services/983303" /> </Reference> </ServiceOrder> </ServiceResource> </Data>
Get All IP Service Orders By Customer ID or Name
This request is used to retrieve all the configured IP service orders based on customer name or customer ID.
URI | /api/space/nsas/l3vpn/service-management/service-orders /api/space/nsas/l3vpn/service-management/service-orders |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects all the configured IP service orders based on the customer name or ID. |
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource size="2"> <ServiceOrder href="/api/space/nsas/l3vpn/service-management/service-orders/983419" uri="/api/space/nsas/l3vpn/service-management/service-orders/983419" key="983419"> <Common> <Name>L3VPNHSOSPFService0017</Name> <Identity>983419</Identity> <State>Completed</State> <CreatedDate>2012-09-08T15:09:35.000+05:30</CreatedDate> <LastUpdatedDate>2012-09-08T15:10:05.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <Action>Modification</Action> <Reference> <Customer key="557278" href="/api/space/nsas/customer-management/customers/557278" uri="/api/space/nsas/customer-management/customers/557278" /> <ServiceDefinition> <ServiceDefinitionID key="360474" href="/api/space/nsas/l3vpn/service-management/service-definitions/360474" uri="/api/space/nsas/l3vpn/service-management/service-definitions/360474" /> </ServiceDefinition> <Service key="983303" href="/api/space/nsas/l3vpn/service-management/services/983303" uri="/api/space/nsas/l3vpn/service-management/services/983303" /> </Reference> </ServiceOrder> <ServiceOrder href="/api/space/nsas/l3vpn/service-management/service-orders/983367" uri="/api/space/nsas/l3vpn/service-management/service-orders/983367" key="983367"> <Common> <Name>L3VPNHSOSPFService0016</Name> <Identity>983367</Identity> <State>Completed</State> <CreatedDate>2012-09-08T14:44:31.000+05:30</CreatedDate> <LastUpdatedDate>2012-09-08T14:44:59.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <Action>Modification</Action> <Reference> <Customer key="557278" href="/api/space/nsas/customer-management/customers/557278" uri="/api/space/nsas/customer-management/customers/557278" /> <ServiceDefinition> <ServiceDefinitionID key="360474" href="/api/space/nsas/l3vpn/service-management/service-definitions/360474" uri="/api/space/nsas/l3vpn/service-management/service-definitions/360474" /> </ServiceDefinition> <Service key="983303" href="/api/space/nsas/l3vpn/service-management/services/983303" uri="/api/space/nsas/l3vpn/service-management/services/983303" /> </Reference> </ServiceOrder> </ServiceResource> </Data>
Get All IP Service Orders with Pagination, Search, and Filter
This request is used to retrieve all the configured IP service orders with pagination, and to filter the results based on the search criteria
URI | /api/space/nsas/l3vpn/service-management/service-orders |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects all the configured IP service orders with pagination applied, and with a filtered result-set that matches the search criteria |
For service orders, you can sort with “sortedby=CreatedDate” and “sortedby=State”.
For Start and Limit attributes, you can provide integer values based on your requirement to sort and filter the API output. Sortorder can be “asc” and “desc”. The SortedBy attribute differs based on the APIs. For service orders, the SortedBy option can be “CtreatedDate”, “State”. For services, the SortedBy option can be “Name”, “LastModifiedDate”. The FilteredBy attribute differs based on the APIs. For service orders, the FilteredBy option can be “Name” and “State”. For services, the FilteredBy option can be “Name”.
If you enter “paging=(starteq 2, limit eq 3)”, which is not a single integer value, the display is according to index of records. In this case, it shows from the first indexed record to the third indexed record. If you enter "start=2&limit=3", it starts from the second record and displays the next three records in all.
You can specify multiple key:value pairs with the FilteredBy attribute. For example, to get service orders, you can use Get ServiceOrders with Name and State as “filteredby=Name::L3VPN@@State::Invalid”. Similarly, to get service orders, you can use with Name OR state “filteredby=Name::L3VPN!! State::Invalid”.
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource size="2"> <ServiceOrder href="/api/space/nsas/l3vpn/service-management/service-orders/983419" uri="/api/space/nsas/l3vpn/service-management/service-orders/983419" key="983419"> <Common> <Name>L3VPNHSOSPFService0017</Name> <Identity>983419</Identity> <State>Completed</State> <CreatedDate>2012-09-08T15:09:35.000+05:30</CreatedDate> <LastUpdatedDate>2012-09-08T15:10:05.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <Action>Modification</Action> <Reference> <Customer key="557278" href="/api/space/nsas/customer-management/customers/557278" uri="/api/space/nsas/customer-management/customers/557278" /> <ServiceDefinition> <ServiceDefinitionID key="360474" href="/api/space/nsas/l3vpn/service-management/service-definitions/360474" uri="/api/space/nsas/l3vpn/service-management/service-definitions/360474" /> </ServiceDefinition> <Service key="983303" href="/api/space/nsas/l3vpn/service-management/services/983303" uri="/api/space/nsas/l3vpn/service-management/services/983303" /> </Reference> </ServiceOrder> <ServiceOrder href="/api/space/nsas/l3vpn/service-management/service-orders/983367" uri="/api/space/nsas/l3vpn/service-management/service-orders/983367" key="983367"> <Common> <Name>L3VPNHSOSPFService0016</Name> <Identity>983367</Identity> <State>Completed</State> <CreatedDate>2012-09-08T14:44:31.000+05:30</CreatedDate> <LastUpdatedDate>2012-09-08T14:44:59.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <Action>Modification</Action> <Reference> <Customer key="557278" href="/api/space/nsas/customer-management/customers/557278" uri="/api/space/nsas/customer-management/customers/557278" /> <ServiceDefinition> <ServiceDefinitionID key="360474" href="/api/space/nsas/l3vpn/service-management/service-definitions/360474" uri="/api/space/nsas/l3vpn/service-management/service-definitions/360474" /> </ServiceDefinition> <Service key="983303" href="/api/space/nsas/l3vpn/service-management/services/983303" uri="/api/space/nsas/l3vpn/service-management/services/983303" /> </Reference> </ServiceOrder> </ServiceResource> </Data>
Get an IP Service Order By Order ID
This request is used to retrieve the details of a particular IP service order based on the service order ID.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific IP service order. |
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder href="/api/space/nsas/l3vpn/service-management/service-orders/983419" uri="/api/space/nsas/l3vpn/service-management/service-orders/983419" key="983419"> <Common> <Name>L3VPNHSOSPFService0017</Name> <Identity>983419</Identity> <State>Completed</State> <Comments></Comments> <CreatedDate>2012-09-08T15:09:35.000+05:30</CreatedDate> <LastUpdatedDate>2012-09-08T15:10:05.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <Action>Modification</Action> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/557219" uri="/api/space/nsas/device-roles/pe-devices/557219" key="557219"> <DeviceName>junos-m10-2-space</DeviceName> <DeviceID>557219</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/3/0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <RoutingProtocol>OSPF</RoutingProtocol> <EthernetOption>Vlan</EthernetOption> <VlanId>695</VlanId> <UnitID>0</UnitID> <InterfaceIP>10.0.77.9</InterfaceIP> <Hub>false</Hub> <OSPFAreaId>0.3.0.4</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/557109" uri="/api/space/nsas/device-roles/pe-devices/557109" key="557109"> <DeviceName>exora</DeviceName> <DeviceID>557109</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/1</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <RoutingProtocol>OSPF</RoutingProtocol> <EthernetOption>Vlan</EthernetOption> <VlanId>695</VlanId> <UnitID>0</UnitID> <InterfaceIP>10.0.88.21</InterfaceIP> <Hub>false</Hub> <OSPFAreaId>0.2.0.3</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> <VRFTabelLabel>Enabled</VRFTabelLabel> <HubRouteTarget>100:6</HubRouteTarget> <SpokeRouteTarget>100:7</SpokeRouteTarget> </ServiceOrderParameter> <Reference> <Customer key="557278" href="/api/space/nsas/customer-management/customers/557278" uri="/api/space/nsas/customer-management/customers/557278" /> <ServiceDefinition> <ServiceDefinitionID key="360474" href="/api/space/nsas/l3vpn/service-management/service-definitions/360474" uri="/api/space/nsas/l3vpn/service-management/service-definitions/360474" /> </ServiceDefinition> <Service key="983303" href="/api/space/nsas/l3vpn/service-management/services/983303" uri="/api/space/nsas/l3vpn/service-management/services/983303" /> </Reference> </ServiceOrder> </ServiceResource> </Data>
Get an IP Service Order By Order ID (Version 2)
This request is used to retrieve the details of a particular IP service order based on the service order ID.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific IP LDP service order. |
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder key="1278025" uri="/api/space/nsas/l3vpn/service-management/service-orders/1278025" href="/api/space/nsas/l3vpn/service-management/service-orders/1278025"> <Common> <Name>L3UnitTestAPI</Name> <Identity>1278025</Identity> <State>Validated</State> <CreatedDate>2014-07-09T11:06:18.000+05:30</CreatedDate> <LastUpdatedDate>2014-07-09T11:06:18.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>l3vpn</ServiceType> <EnableMVPN>false</EnableMVPN> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA key="786447" uri="/api/space/nsas/device-roles/pe-devices/786447" href="/api/space/nsas/device-roles/pe-devices/786447"> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>786447</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/9</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <UNIDescription>A-End</UNIDescription> <RoutingProtocol>BGP</RoutingProtocol> <EthernetOption>DOT1Q</EthernetOption> <UnitID>17</UnitID> <VlanId>1</VlanId> <InterfaceIP>10.0.88.1</InterfaceIP> <RouteDistinguisher>69:2147467282</RouteDistinguisher> <PeerAS>1</PeerAS> <NeighborIP>10.0.88.2</NeighborIP> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="786568" uri="/api/space/nsas/device-roles/pe-devices/786568" href="/api/space/nsas/device-roles/pe-devices/786568"> <DeviceName>junos-mx80-1-space</DeviceName> <DeviceID>786568</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/1/0</InterfaceName> <InterfaceIndex>522</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <UNIDescription>Z-End</UNIDescription> <RoutingProtocol>BGP</RoutingProtocol> <EthernetOption>QinQ</EthernetOption> <UnitID>19</UnitID> <VlanId>1</VlanId> <InterfaceIP>10.0.99.1</InterfaceIP> <CustomerVlanType>Transport single vlan</CustomerVlanType> <CustomerVlan>56</CustomerVlan> <OuterTPID>0x88a8</OuterTPID> <InnerTPID>0x88a8</InnerTPID> <RouteDistinguisher>69:2147467293</RouteDistinguisher> <PeerAS>1</PeerAS> <NeighborIP>10.0.99.2</NeighborIP> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> <RouteTarget>69:1454096400</RouteTarget> <VRFTabelLabel>true</VRFTabelLabel> <ASOverride>true</ASOverride> <MaximumPrefixes>0</MaximumPrefixes> </ServiceOrderParameter> <Reference> <Customer uri="/api/space/nsas/customer-management/customers/557118" href="/api/space/nsas/customer-management/customers/557118" key="557118" /> <ServiceDefinition> <ServiceDefinitionID uri="/api/space/nsas/l3vpn/service-management/service-definitions/425984" href="/api/space/nsas/l3vpn/service-management/service-definitions/425984" key="425984" /> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Create an IP Service Order (Version 1)
This request is used to create an IP service order.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. Creating a service order with Ethernet option ?Flexible UNI? requires a service template to be associated for providing VlanID input. The sample with service template is listed separately under the header Service Template. For the various options in creating ServiceOrder the options must be specified in the Action Element inside OperationSpecificData. The following values can be entered:
|
Produces | Creates an IP service order. |
Input (Full-Mesh BGP)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPNFMBGPService_API6</Name> <Comments>test</Comments> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>mx801</DeviceName> <DeviceID>753805</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName> ge-1/2/9 </InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <InterfaceIP AutoPick="false">10.0.77.90</InterfaceIP> <IPBlockSize>32</IPBlockSize> <PeerAS>23</PeerAS> <NeighborIP>10.0.77.75</NeighborIP> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>753850</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/2/9</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <PeerAS>23</PeerAS> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> <ASOverride>true</ASOverride> <MaximumPrefixes>56</MaximumPrefixes> </ServiceOrderParameter> <Reference> <Customer key="754039" /> <ServiceDefinition> <ServiceDefinitionID key="688128" /> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType"> <Action>Save</Action> </CustomAction> </Data>
Input (Full-Mesh OSPF)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPNFMOSPFService_API3</Name> <Comments>afdsf</Comments> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>kochin</DeviceName> <DeviceID>557101</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/2</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>Flexible UNI</EthernetOption> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.99.0/24</IPAddressPool> <IPBlockSize>32</IPBlockSize> <UnitID>12</UnitID> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>557247</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/1</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <OSPFAreaId>1.1.1.2</OSPFAreaId> <OSPFVersion>Ver 3</OSPFVersion> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <Reference> <Customer key="557262" /> <ServiceDefinition> <ServiceDefinitionID key="360461" /> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType"> <Action>SaveAndDeployNow</Action> </CustomAction> </Data>
Input (Hub-and-Spoke BGP)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPNFMBGPService_API6</Name> <Comments>test</Comments> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>mx801</DeviceName> <DeviceID>753805</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName> ge-1/2/9 </InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <InterfaceIP AutoPick="false">10.0.77.90</InterfaceIP> <IPBlockSize>32</IPBlockSize> <PeerAS>23</PeerAS> <NeighborIP>10.0.77.75</NeighborIP> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>753850</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/2/9</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <PeerAS>23</PeerAS> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> <ASOverride>true</ASOverride> <MaximumPrefixes>56</MaximumPrefixes> </ServiceOrderParameter> <Reference> <Customer key="754039" /> <ServiceDefinition> <ServiceDefinitionID key="688128" /> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType"> <Action>Save</Action> </CustomAction> </Data>
Input (Hub-and-Spoke OSPF)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPNHSOSPFService_API6</Name> <Comments>afdsf</Comments> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>kochin</DeviceName> <DeviceID>1475014</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>fe-0/1/2</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <EthernetOption>Flexible UNI</EthernetOption> <Hub>true</Hub> <InterfaceIP AutoPick="false">10.0.88.93</InterfaceIP> <IPBlockSize>32</IPBlockSize> <UnitID>12</UnitID> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>1474976</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>fe-0/1/1</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <Hub>false</Hub> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <OSPFAreaId>1.1.1.1</OSPFAreaId> <OSPFVersion>Ver 3</OSPFVersion> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <Reference> <Customer key="1474923" /> <ServiceDefinition> <ServiceDefinitionID key="1409050" /> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType"> <Action>SaveAndDeployNow</Action> </CustomAction> </Data>
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>1507439</Value> </Identity> <Job> <ID>622660</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>Service Order Created Successfully and Deployment is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Create an IP Service Order (Version 2)
This request is used to create an IP service order.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. For the various options in creating ServiceOrder the options must be specified in the Action Element inside OperationSpecificData. The following values can be entered:
|
Produces | Creates an IP service order. |
Input
Sample XML Input
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3UnitTestAPI</Name> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA key="786447" uri="/api/space/nsas/device-roles/pe-devices/786447" href="/api/space/nsas/device-roles/pe-devices/786447"> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>786447</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/9</InterfaceName> <InterfaceIndex>525</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <UNIDescription>A-End</UNIDescription> <EthernetOption>Dot1Q</EthernetOption> <AutoPickUnitID>false</AutoPickUnitID> <UnitID>17</UnitID> <AutoPickVlanID>false</AutoPickVlanID> <VlanId>11</VlanId> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.99.0/24</IPAddressPool> <PeerAS>1</PeerAS> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="786568" uri="/api/space/nsas/device-roles/pe-devices/786568" href="/api/space/nsas/device-roles/pe-devices/786568"> <DeviceName>junos-mx80-1-space</DeviceName> <DeviceID>786568</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/1/0</InterfaceName> <InterfaceIndex>522</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <UNIDescription>B-End</UNIDescription> <EthernetOption>QinQ</EthernetOption> <AutoPickUnitID>false</AutoPickUnitID> <UnitID>19</UnitID> <AutoPickVlanID>false</AutoPickVlanID> <VlanId>13</VlanId> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.99.0/24</IPAddressPool> <CustomerVlanType>Transport single vlan</CustomerVlanType> <CustomerVlan>56</CustomerVlan> <OuterTPID>0x88a8</OuterTPID> <InnerTPID>0x9100</InnerTPID> <PeerAS>1</PeerAS> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> <ASOverride>true</ASOverride> <MaximumPrefixes>1</MaximumPrefixes> </ServiceOrderParameter> <Reference> <Customer uri="/api/space/nsas/customer-management/customers/557118" href="/api/space/nsas/customer-management/customers/557118" key="557118" /> <ServiceDefinition> <ServiceDefinitionID uri="/api/space/nsas/l3vpn/service-management/service-definitions/425984" href="/api/space/nsas/l3vpn/service-management/service-definitions/425984" key="425984" /> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>393698</Value> </Identity> <Job> <ID>131165</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>The Service Order Created Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Deploy, Validate, and Partially-Delete an IP Service Order
This request is used to deploy, validate, or partially delete a previously created IP service order.
URI | api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service-management.service-order+xml |
Consumes | application/vnd.net.juniper.space.service-management. The options must be specified in the Action Element inside OperationSpecificData. The various options are as follows:
|
Produces | Deploys, validates or, partially-deletes a previously created IP service order. |
Input
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType"> <Action>DeployNow</Action> <ScheduledDateTime>2012-04-09T19:07:18.000+05:30</ScheduledDateTime> </CustomAction> </Data>
Output
Sample XML Output
Delete an IP Service Order
This request is used to delete a previously configured IP service order.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | DELETE |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Deletes an IP service order. |
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>6553600</Value> </Identity> <Code>200</Code> <Message>Service order Deleted Successfully.</Message> </Status> </Data>
View the Pending Configuration of an IP Service Order
This request is used to view the details of an IP service order that are pending to be applied to a device.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Displays the configuration details of a service order pending to be applied to a device. |
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <PendingOrderConfiguration> <PendingOrderConfigDeviceEnd> <DeviceName>embassy</DeviceName> <Configuration> <configuration> <routing-options> <auto-export/> </routing-options> <interfaces> <interface> <name>ge-1/0/1</name> <flexible-vlan-tagging/> <unit> <name>1</name> <vlan-id>1</vlan-id> <family> <inet> <address> <name>10.0.88.1/30</name> </address> </inet> <inet6/> </family> </unit> </interface> </interfaces> <policy-options> <policy-statement> <name>l3_test_spoke_bgp2ospf_pol</name> <term> <name>a</name> <from> <protocol>bgp</protocol> </from> <then> <accept/> </then> </term> <term> <name>b</name> <then> <reject/> </then> </term> </policy-statement> <policy-statement> <name>l3_test_spoke_hs1_export_pol</name> <term> <name>a</name> <from> <protocol>ospf</protocol> <protocol>direct</protocol> </from> <then> <community> <add/> <community-name>l3_test_spoke_hs1_spoke_export_comm</community-name> </community> <accept/> </then> </term> <term> <name>b</name> <then> <reject/> </then> </term> </policy-statement> <policy-statement> <name>l3_test_spoke_hs1_import_pol</name> <term> <name>a</name> <from> <protocol>bgp</protocol> <protocol>ospf</protocol> <protocol>direct</protocol> <community>l3_test_spoke_hs1_spoke_import_comm</community> </from> <then> <accept/> </then> </term> <term> <name>b</name> <then> <reject/> </then> </term> </policy-statement> <community operation="replace"> <name>l3_test_spoke_hs1_spoke_export_comm</name> <members>target:100:4</members> </community> <community operation="replace"> <name>l3_test_spoke_hs1_spoke_import_comm</name> <members>target:100:2</members> </community> </policy-options> <routing-instances> <instance> <name>l3_test_spoke</name> <instance-type>vrf</instance-type> <interface operation="replace"> <name>ge-1/0/1.1</name> </interface> <route-distinguisher> <rd-type>100:4</rd-type> </route-distinguisher> <vrf-import operation="replace">l3_test_spoke_hs1_import_pol</vrf-import> <vrf-export operation="replace">l3_test_spoke_hs1_export_pol</vrf-export> <vrf-table-label/> <protocols> <ospf> <area> <name>0.0.0.0</name> <interface> <name>ge-1/0/1.1</name> </interface> </area> <export>l3_test_spoke_bgp2ospf_pol</export> </ospf> </protocols> </instance> </routing-instances> </configuration> </Configuration> </PendingOrderConfigDeviceEnd> <PendingOrderConfigDeviceEnd> <DeviceName>jaipur</DeviceName> <Configuration> <configuration> <routing-options> <auto-export/> </routing-options> <interfaces> <interface> <name>ge-0/1/1</name> <flexible-vlan-tagging/> <unit> <name>1</name> <vlan-id>1</vlan-id> <family> <inet> <address> <name>10.0.99.1/30</name> </address> </inet> <inet6/> </family> </unit> </interface> </interfaces> <policy-options> <policy-statement> <name>l3_test_hub_bgp2ospf_pol</name> <term> <name>a</name> <from> <protocol>bgp</protocol> </from> <then> <accept/> </then> </term> <term> <name>b</name> <then> <reject/> </then> </term> </policy-statement> <policy-statement> <name>l3_test_hub_hs1_export_pol</name> <term> <name>a</name> <from> <protocol>ospf</protocol> <protocol>direct</protocol> </from> <then> <community> <add/> <community-name>l3_test_hub_hs1_hub_export_comm</community-name> </community> <accept/> </then> </term> <term> <name>b</name> <then> <reject/> </then> </term> </policy-statement> <policy-statement> <name>l3_test_hub_hs1_import_pol</name> <term> <name>a</name> <from> <protocol>bgp</protocol> <protocol>ospf</protocol> <protocol>direct</protocol> <community>l3_test_hub_hs1_hub_import_comm</community> </from> <then> <accept/> </then> </term> <term> <name>b</name> <then> <reject/> </then> </term> </policy-statement> <community operation="replace"> <name>l3_test_hub_hs1_hub_export_comm</name> <members>target:100:2</members> </community> <community operation="replace"> <name>l3_test_hub_hs1_hub_import_comm</name> <members>target:100:4</members> </community> </policy-options> <routing-instances> <instance> <name>l3_test_hub</name> <instance-type>vrf</instance-type> <interface operation="replace"> <name>ge-0/1/1.1</name> </interface> <route-distinguisher> <rd-type>100:8</rd-type> </route-distinguisher> <vrf-import operation="replace">l3_test_hub_hs1_import_pol</vrf-import> <vrf-export operation="replace">l3_test_hub_hs1_export_pol</vrf-export> <vrf-table-label/> <protocols> <ospf> <area> <name>0.0.0.0</name> <interface> <name>ge-0/1/1.1</name> </interface> </area> <export>l3_test_hub_bgp2ospf_pol</export> </ospf> </protocols> </instance> </routing-instances> </configuration> </Configuration> </PendingOrderConfigDeviceEnd> </PendingOrderConfiguration> </Data>
Modify a Saved IP Service Order
This request is used to modify a saved IP service order.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. For the various options in creating ServiceOrder the options must be specified in the Action Element inside OperationSpecificData. The following values can be entered:
|
Produces | Modifies a saved IP service order. |
Input (Full-Mesh OSPF)
Sample XML Input
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN-OSPF-Static_FM_SO_API</Name> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/589950" uri="/api/space/nsas/device-roles/pe-devices/589950" key="589950"> <DeviceName>embassy</DeviceName> <DeviceID>1146882</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/0/8</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>Port</EthernetOption> <InterfaceIP AutoPick="false">10.0.88.65</InterfaceIP> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/589832" uri="/api/space/nsas/device-roles/pe-devices/589832" key="589832"> <DeviceName>exora</DeviceName> <DeviceID>589938</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="false">10.0.88.69</InterfaceIP> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType"> <Action>SaveAndDeployNow</Action> </CustomAction> </Data>
Input (Full-Mesh BGP)
Sample XML Input
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN-BGP-Static_FM_SO_API</Name> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>kochin</DeviceName> <DeviceID>589832</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>false</AutoPickVlanID> <VlanId>9</VlanId> <InterfaceIP AutoPick="false">10.0.77.33</InterfaceIP> <PeerAS>7</PeerAS> <NeighborIP>10.0.77.34</NeighborIP> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>exora</DeviceName> <DeviceID>589938</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="false">10.0.99.1</InterfaceIP> <PeerAS>9</PeerAS> <NeighborIP>10.0.99.2</NeighborIP> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> </ServiceOrder> </ServiceResource> </Data>
Input (Hub-and-Spoke OSPF)
Sample XML Input
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN-OSPF-Static_HS_SO_API</Name> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/589950" uri="/api/space/nsas/device-roles/pe-devices/589950" key="589950"> <DeviceName>embassy</DeviceName> <DeviceID>1146882</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/0/7</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>false</AutoPickVlanID> <VlanId>5</VlanId> <InterfaceIP AutoPick="false">10.0.88.57</InterfaceIP> <Hub>true</Hub> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/589832" uri="/api/space/nsas/device-roles/pe-devices/589832" key="589832"> <DeviceName>exora</DeviceName> <DeviceID>589938</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>false</AutoPickVlanID> <VlanId>6</VlanId> <InterfaceIP AutoPick="false">10.0.88.61</InterfaceIP> <Hub>false</Hub> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType"> <Action>SaveAndDeployNow</Action> </CustomAction> </Data>
Input (Hub-and-Spoke BGP)
Sample XML Input
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN-BGP-Static_HS_SO_API</Name> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>jaipur</DeviceName> <DeviceID>589950</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/2</InterfaceName> <InterfaceIndex>506</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSBGPEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="false">10.0.88.73</InterfaceIP> <Hub>false</Hub> <PeerAS>9</PeerAS> <NeighborIP>10.0.88.74</NeighborIP> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>exora</DeviceName> <DeviceID>589938</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/3</InterfaceName> <InterfaceIndex>520</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSBGPEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="false">10.0.88.77</InterfaceIP> <Hub>true</Hub> <PeerAS>5</PeerAS> <NeighborIP>10.0.88.78</NeighborIP> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType"> <Action>SaveAndDeployNow</Action> </CustomAction> </Data>
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>1507439</Value> </Identity> <Job> <ID>622660</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>Service Order Created Successfully and Deployment is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Get IP Service Order Details with Normalization, Unit ID, and Burst Size Calculation By Order ID
This request is used to retrieve the details of a particular IP service order with burst size calculation based on the service order ID.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific IP service order with normalization, unit ID, and burst size calculation. |
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder key="1278025" uri="/api/space/nsas/l3vpn/service-management/service-orders/1278025" href="/api/space/nsas/l3vpn/service-management/service-orders/1278025"> <Common> <Name>L3UnitTestAPI</Name> <Identity>1278025</Identity> <State>Validated</State> <CreatedDate>2014-07-09T11:06:18.000+05:30</CreatedDate> <LastUpdatedDate>2014-07-09T11:06:18.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>l3vpn</ServiceType> <EnableMVPN>false</EnableMVPN> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA key="786447" uri="/api/space/nsas/device-roles/pe-devices/786447" href="/api/space/nsas/device-roles/pe-devices/786447"> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>786447</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/9</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <UNIDescription>A-End</UNIDescription> <RoutingProtocol>BGP</RoutingProtocol> <EthernetOption>DOT1Q</EthernetOption> <UnitID>17</UnitID> <VlanId>1</VlanId> <InterfaceIP>10.0.88.1</InterfaceIP> <RouteDistinguisher>69:2147467282</RouteDistinguisher> <PeerAS>1</PeerAS> <NeighborIP>10.0.88.2</NeighborIP> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="786568" uri="/api/space/nsas/device-roles/pe-devices/786568" href="/api/space/nsas/device-roles/pe-devices/786568"> <DeviceName>junos-mx80-1-space</DeviceName> <DeviceID>786568</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/1/0</InterfaceName> <InterfaceIndex>522</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <UNIDescription>Z-End</UNIDescription> <RoutingProtocol>BGP</RoutingProtocol> <EthernetOption>QinQ</EthernetOption> <UnitID>19</UnitID> <VlanId>1</VlanId> <InterfaceIP>10.0.99.1</InterfaceIP> <CustomerVlanType>Transport single vlan</CustomerVlanType> <CustomerVlan>56</CustomerVlan> <OuterTPID>0x88a8</OuterTPID> <InnerTPID>0x88a8</InnerTPID> <RouteDistinguisher>69:2147467293</RouteDistinguisher> <PeerAS>1</PeerAS> <NeighborIP>10.0.99.2</NeighborIP> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> <RouteTarget>69:1454096400</RouteTarget> <VRFTabelLabel>true</VRFTabelLabel> <ASOverride>true</ASOverride> <MaximumPrefixes>0</MaximumPrefixes> </ServiceOrderParameter> <Reference> <Customer uri="/api/space/nsas/customer-management/customers/557118" href="/api/space/nsas/customer-management/customers/557118" key="557118" /> <ServiceDefinition> <ServiceDefinitionID uri="/api/space/nsas/l3vpn/service-management/service-definitions/425984" href="/api/space/nsas/l3vpn/service-management/service-definitions/425984" key="425984" /> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Create an IP Service Order with Normalization and Burst Size Calculation
This request is used to create an IP service order with normalization and burst-size calculation.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Creates an IP service order with normalization and burst-size calculation. |
Input
Sample XML Input
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3UnitTestAPI</Name> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA key="786447" uri="/api/space/nsas/device-roles/pe-devices/786447" href="/api/space/nsas/device-roles/pe-devices/786447"> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>786447</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/9</InterfaceName> <InterfaceIndex>525</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <UNIDescription>A-End</UNIDescription> <EthernetOption>Dot1Q</EthernetOption> <AutoPickUnitID>false</AutoPickUnitID> <UnitID>17</UnitID> <AutoPickVlanID>false</AutoPickVlanID> <VlanId>11</VlanId> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.99.0/24</IPAddressPool> <PeerAS>1</PeerAS> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="786568" uri="/api/space/nsas/device-roles/pe-devices/786568" href="/api/space/nsas/device-roles/pe-devices/786568"> <DeviceName>junos-mx80-1-space</DeviceName> <DeviceID>786568</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/1/0</InterfaceName> <InterfaceIndex>522</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMBGPEndPointConfigParameterOrderType"> <UNIDescription>B-End</UNIDescription> <EthernetOption>QinQ</EthernetOption> <AutoPickUnitID>false</AutoPickUnitID> <UnitID>19</UnitID> <AutoPickVlanID>false</AutoPickVlanID> <VlanId>13</VlanId> <InterfaceIP AutoPick="true" /> <IPAddressPool>10.0.99.0/24</IPAddressPool> <CustomerVlanType>Transport single vlan</CustomerVlanType> <CustomerVlan>56</CustomerVlan> <OuterTPID>0x88a8</OuterTPID> <InnerTPID>0x9100</InnerTPID> <PeerAS>1</PeerAS> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> <ASOverride>true</ASOverride> <MaximumPrefixes>1</MaximumPrefixes> </ServiceOrderParameter> <Reference> <Customer uri="/api/space/nsas/customer-management/customers/557118" href="/api/space/nsas/customer-management/customers/557118" key="557118" /> <ServiceDefinition> <ServiceDefinitionID uri="/api/space/nsas/l3vpn/service-management/service-definitions/425984" href="/api/space/nsas/l3vpn/service-management/service-definitions/425984" key="425984" /> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>393698</Value> </Identity> <Job> <ID>131165</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>The Service Order Created Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Get an IP Service Order with Default Service Template By Order ID
This request is used to retrieve the details of a particular IP service order with default service template, based on the service order ID.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management.service-order+xml |
Produces | Collects the details of a specific IP service order with default service template. |
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder key="1081419" uri="/api/space/nsas/l3vpn/service-management/service-orders/1081419" href="/api/space/nsas/l3vpn/service-management/service-orders/1081419"> <Common> <Name>testSO_l3vpnFM</Name> <Identity>1081419</Identity> <State>Validated</State> <CreatedDate>2015-02-23T17:41:49.000+05:30</CreatedDate> <LastUpdatedDate>2015-02-23T17:41:48.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>l3vpn</ServiceType> <EnableMVPN>false</EnableMVPN> <EnableMCLAG>false</EnableMCLAG> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA key="524388" uri="/api/space/nsas/device-roles/pe-devices/524388" href="/api/space/nsas/device-roles/pe-devices/524388"> <DeviceName>junos-space1</DeviceName> <DeviceID>524388</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/3</InterfaceName> <InterfaceIndex>520</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <RoutingProtocol>OSPF</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <UnitID>1</UnitID> <VlanId>1</VlanId> <InterfaceIP>10.0.77.1/30</InterfaceIP> <RouteDistinguisher>65501:5455876</RouteDistinguisher> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate href="/api/space/nsas/l3vpn/service-management/service-templates/950272" uri="/api/space/nsas/l3vpn/service-management/service-templates/950272" key="950272"> <ID>950272</ID> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="524352" uri="/api/space/nsas/device-roles/pe-devices/524352" href="/api/space/nsas/device-roles/pe-devices/524352"> <DeviceName>junos-space2</DeviceName> <DeviceID>524352</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <InterfaceIndex>522</InterfaceIndex> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <RoutingProtocol>OSPF</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <UnitID>2</UnitID> <VlanId>2</VlanId> <InterfaceIP>10.0.77.5/30</InterfaceIP> <RouteDistinguisher>65501:5455877</RouteDistinguisher> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate href="/api/space/nsas/l3vpn/service-management/service-templates/950272" uri="/api/space/nsas/l3vpn/service-management/service-templates/950272" key="950272"> <ID>950272</ID> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> <RouteTarget>65501:1</RouteTarget> <VRFTabelLabel>true</VRFTabelLabel> </ServiceOrderParameter> <Reference> <Customer uri="/api/space/nsas/customer-management/customers/524288" href="/api/space/nsas/customer-management/customers/524288" key="524288"/> <ServiceDefinition> <ServiceDefinitionID uri="/api/space/nsas/l3vpn/service-management/service-definitions/1081369" href="/api/space/nsas/l3vpn/service-management/service-definitions/1081369" key="1081369"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Create an IP Service Order with Default Service Template
This request is used to create an IP service order configured with default service template.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Creates an IP service order configured with default service template. |
The XPath tag in a service template attribute is optional and we recommend that you use this tag.
Input (Full-Mesh IP)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>test_l3vpnFM_2defTemp_API</Name> </Common> <ServiceType>l3vpn</ServiceType> <EnableMVPN>false</EnableMVPN> <EnableMCLAG>false</EnableMCLAG> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>524393</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>66317</ID> <ConfigParams> <Name>Name</Name> <Value>testname123</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space2</DeviceName> <DeviceID>524357</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>66317</ID> <ConfigParams> <Name>Name</Name> <Value>testname123</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> </ServiceOrderParameter> <Reference> <Customer key="524288"/> <ServiceDefinition> <ServiceDefinitionID key="917552"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Sample XML Input (With XPath)
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>test_l3vpnFM_2defTemp_API</Name> </Common> <ServiceType>l3vpn</ServiceType> <EnableMVPN>false</EnableMVPN> <EnableMCLAG>false</EnableMCLAG> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>524393</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>6357015</ID> <ConfigParams> <Name>Description</Name> <Value>DemoDescription</Value> <Xpath>/configuration/cp1/interface/description</Xpath> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> <ServiceTemplate> <ID>66317</ID> <ConfigParams> <Name>Name</Name> <Value>testname123</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space2</DeviceName> <DeviceID>524357</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>66317</ID> <ConfigParams> <Name>Name</Name> <Value>testname123</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> </ServiceOrderParameter> <Reference> <Customer key="524288"/> <ServiceDefinition> <ServiceDefinitionID key="917552"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Input (Hub-and-Spoke IP)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>SO_11_1_hubSpoke_4</Name> <Comments>dgdgdfg</Comments> </Common> <ServiceType>l3vpn</ServiceType> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>7536753</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <Hub>true</Hub> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>66317</ID> <ConfigParams> <Name>Name</Name> <Value>testname123</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>7536753</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <UnitID>26</UnitID> <Hub>false</Hub> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>66317</ID> <ConfigParams> <Name>Name</Name> <Value>testname123</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> </ServiceEndPointGroup> <Reference> <Customer key="4128768"/> <ServiceDefinition> <ServiceDefinitionID key="426020"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType"> <Action>SaveAndDeployNow</Action> </CustomAction> </Data>
Sample XML Input (With XPath)
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>SO_11_1_hubSpoke_4</Name> <Comments>dgdgdfg</Comments> </Common> <ServiceType>l3vpn</ServiceType> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>7536753</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <Hub>true</Hub> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>6357015</ID> <ConfigParams> <Name>Description</Name> <Value>DemoDescription</Value> <Xpath>/configuration/cp1/interface/description</Xpath> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> <ServiceTemplate> <ID>66317</ID> <ConfigParams> <Name>Name</Name> <Value>testname123</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>7536753</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <UnitID>26</UnitID> <Hub>false</Hub> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>6357015</ID> <ConfigParams> <Name>Description</Name> <Value>DemoDescription</Value> <Xpath>/configuration/cp1/interface/description</Xpath> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> <ServiceTemplate> <ID>66317</ID> <ConfigParams> <Name>Name</Name> <Value>testname123</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> </ServiceEndPointGroup> <Reference> <Customer key="4128768"/> <ServiceDefinition> <ServiceDefinitionID key="426020"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType"> <Action>SaveAndDeployNow</Action> </CustomAction> </Data>
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>SO_11_1_hubSpoke_4</Name> <Comments>dgdgdfg</Comments> </Common> <ServiceType>l3vpn</ServiceType> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>7536753</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <Hub>true</Hub> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>66317</ID> <ConfigParams> <Name>Name</Name> <Value>testname123</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>7536753</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <UnitID>26</UnitID> <Hub>false</Hub> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>66317</ID> <ConfigParams> <Name>Name</Name> <Value>testname123</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> </ServiceEndPointGroup> <Reference> <Customer key="4128768"/> <ServiceDefinition> <ServiceDefinitionID key="426020"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType"> <Action>SaveAndDeployNow</Action> </CustomAction> </Data>
Modify an IP Service Order with Default Service Template
This request is used to modify an IP service order configured with default service template.
URI | /api/space/nsas/l3vpn/service-management/service-orders/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Modifies an IP service order configured with default service template. |
The XPath tag in a service template attribute is optional and we recommend that you use this tag.
Input (Full-Mesh IP)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>test_l3vpnFM_2defTemp_API_M3</Name> </Common> <ServiceType>l3vpn</ServiceType> <EnableMVPN>false</EnableMVPN> <EnableMCLAG>false</EnableMCLAG> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>524393</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>66341</ID> <ConfigParams> <Name>3</Name> <Value>None</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> <ConfigParams> <Name>Inner</Name> <Value>None</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space2</DeviceName> <DeviceID>524357</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>66341</ID> <ConfigParams> <Name>3</Name> <Value>None</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> <ConfigParams> <Name>Inner</Name> <Value>None</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> </ServiceOrderParameter> <Reference> <Customer key="524288"/> <ServiceDefinition> <ServiceDefinitionID key="917552"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Sample XML Input (With XPath)
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>test_l3vpnFM_2defTemp_API_M3</Name> </Common> <ServiceType>l3vpn</ServiceType> <EnableMVPN>false</EnableMVPN> <EnableMCLAG>false</EnableMCLAG> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>524393</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>6357015</ID> <ConfigParams> <Name>Description</Name> <Value>DemoDescription</Value> <Xpath>/configuration/cp1/interface/description</Xpath> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space2</DeviceName> <DeviceID>524357</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType"> <EthernetOption>Dot1Q</EthernetOption> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>66341</ID> <ConfigParams> <Name>3</Name> <Value>None</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> <ConfigParams> <Name>Inner</Name> <Value>None</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNConfigParameterOrderType"> </ServiceOrderParameter> <Reference> <Customer key="524288"/> <ServiceDefinition> <ServiceDefinitionID key="917552"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Input (Hub-and-Spoke IP)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN_OSPFHS_ModifySO_API</Name> <Comments>dgdgdfg</Comments> </Common> <ServiceType>l3vpn</ServiceType> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>524377</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <Hub>true</Hub> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>66341</ID> <ConfigParams> <Name>3</Name> <Value>None</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> <ConfigParams> <Name>Inner</Name> <Value>None</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <EnableLoopback>true</EnableLoopback> <DeviceInfo> <NA> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>524302</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <Hub>true</Hub> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>66341</ID> <ConfigParams> <Name>3</Name> <Value>None</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> <ConfigParams> <Name>Inner</Name> <Value>None</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> </ServiceEndPointGroup> </ServiceOrder> </ServiceResource> </Data>
Sample XML Input (With XPath)
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>L3VPN_OSPFHS_ModifySO_API</Name> <Comments>dgdgdfg</Comments> </Common> <ServiceType>l3vpn</ServiceType> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>524377</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <Hub>true</Hub> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>6357015</ID> <ConfigParams> <Name>Description</Name> <Value>DemoDescription</Value> <Xpath>/configuration/cp1/interface/description</Xpath> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <EnableLoopback>true</EnableLoopback> <DeviceInfo> <NA> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>524302</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNHSOSPFEndPointConfigParameterOrderType"> <EthernetOption>VLAN</EthernetOption> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick="true"/> <IPAddressPool>10.0.88.0/24</IPAddressPool> <Hub>true</Hub> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>66341</ID> <ConfigParams> <Name>3</Name> <Value>None</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> <ConfigParams> <Name>Inner</Name> <Value>None</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> </ServiceEndPointGroup> </ServiceOrder> </ServiceResource> </Data>
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>459190</Value> </Identity> <Job> <ID>196671</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>The Service Order Modified Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Get Job Details By Job ID for an IP Service Order
This request is used to obtain the details of a specific job, based on its unique identifier.
URI | /api/space/nsas/l3vpn/service- |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service- |
Produces | Retrieves the details of a particular job. |
Mandatory Parameters | jobID |
Output
Sample JSONOutput
{ "Data": { "JobDetailsType": { "jobDetailType": [ { "nodeName": "960R1_EN_Alok_re", "statusMessage": "Endpoint cannot be provisoned since validation failed for other devices.", "jobStatus": "INVALID", "serviceName": "Test2Devices" }, ] } } }
Create an IP Service Order to Create an LSP
This request is used to create an IP service order for creating an LSP.
URL | /api/space/nsas/csd/service-order |
HTTP Method | POST |
Sample URL | https://192.0.2.10:8443/api/space/nsas/csd/service-order |
Accept Header | application/xml |
Content Type | application/xml |
Input
Sample XML Input
""<?xml version=""1.0"" encoding=""UTF-8""?> <Data xmlns=""services.schema.networkapi.jmp.juniper.net""> <ServiceResource> <ServiceOrder> <Reference> <Customer key=""1"" /> <ServiceDefinition> <ServiceDefinitionID key=""65537"" /> </ServiceDefinition> <Service key=""undefined"" /> </Reference> <Common> <Name>L3VPN_CreateLSP</Name> <CustomerName>Juniper</CustomerName> <CreatedBy>super</CreatedBy> </Common> <LspServiceDefinition> <ServiceDefinitionID key=""8"" /> </LspServiceDefinition> <LSPPattern key=""1"" /> <ServiceOrderParameter xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""L3VPNConfigParameterOrderType""> <RouteTarget AutoPick=""true"">true</RouteTarget> <OSPFVersion>Ver 2</OSPFVersion> <VRFTabelLabel>true</VRFTabelLabel> <AutoExportRoutes>true</AutoExportRoutes> </ServiceOrderParameter> <ServiceEndPointGroup> <DonotApplyDefaultTemplatesOfSD>true</DonotApplyDefaultTemplatesOfSD> <DeviceInfo> <NA> <DeviceName>SG2re</DeviceName> <DeviceID>2</DeviceID> </NA> </DeviceInfo> <EnableStitchingPoint>false</EnableStitchingPoint> <ServiceEndPoint> <InterfaceName>ge-0/0/5</InterfaceName> <InterfaceStatus>up</InterfaceStatus> <InterfaceID>26</InterfaceID> <ServiceEndpointConfiguration xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""L3VPNFMOSPFEndPointConfigParameterOrderType""> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> <EthernetOption>Dot1Q</EthernetOption> <AutoPickUnitID>true</AutoPickUnitID> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick=""true"" /> <IPAddressPool>10.0.77.0/24</IPAddressPool> <IPBlockSize>30</IPBlockSize> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DonotApplyDefaultTemplatesOfSD>true</DonotApplyDefaultTemplatesOfSD> <DeviceInfo> <NA> <DeviceName>SG3re</DeviceName> <DeviceID>1</DeviceID> </NA> </DeviceInfo> <EnableStitchingPoint>false</EnableStitchingPoint> <ServiceEndPoint> <InterfaceName>ge-0/0/6</InterfaceName> <InterfaceStatus>up</InterfaceStatus> <InterfaceID>4</InterfaceID> <ServiceEndpointConfiguration xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""L3VPNFMOSPFEndPointConfigParameterOrderType""> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> <EthernetOption>Dot1Q</EthernetOption> <AutoPickUnitID>true</AutoPickUnitID> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick=""true"" /> <IPAddressPool>10.0.88.0/24</IPAddressPool> <IPBlockSize>30</IPBlockSize> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""ServiceOrderCustomActionType""> <Action>SaveAndValidate</Action> </CustomAction> </Data>" "
Output
Sample XML Output
""<?xml version=""1.0"" encoding=""UTF-8""?> <Data xmlns=""services.schema.networkapi.jmp.juniper.net""> <Status> <Identity> <Type>ServiceOrder</Type> <Value>163840</Value> </Identity> <Job> <ID>917513</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>The Service Order Created Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>" "
Get an IP Service Order to Create an LSP
This request is used to retrieve an IP service order to create an LSP.
URL | /api/space/nsas/l3vpn/service-management/service-orders/paging/<orderID> |
HTTP Method | GET |
Sample URL | https://192.0.2.10:8443/api/space/nsas/l3vpn/service-management/service-orders/paging/163840 |
Accept | application/vnd.net.juniper.space.service-management.service-order+xml;version=2; |
Content Type | application/vnd.net.juniper.space.service-management.service-order+xml;version=2;charset=UTF-8; |
Input
Not Applicable
Output
Sample XML Output
""<?xml version=""1.0"" encoding=""UTF-8""?> <Data xmlns=""services.schema.networkapi.jmp.juniper.net""> <ServiceResource> <ServiceOrder key=""163840"" uri=""/api/space/nsas/l3vpn/service-management/service-orders/163840"" href=""/api/space/nsas/l3vpn/service-management/service-orders/163840""> <Common> <Name>L3VPN_CreateLSP</Name> <Identity>163840</Identity> <State>Validated</State> <ScheduledState>Validated</ScheduledState> <CreatedDate>2018-06-20T21:03:32.000+05:30</CreatedDate> <LastUpdatedDate>2018-06-20T21:03:32.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>l3vpn</ServiceType> <JobIdsList>917513</JobIdsList> <EnableMVPN>false</EnableMVPN> <EnableMCLAG>false</EnableMCLAG> <LSPPattern href=""/api/space/nsas/lsp-pattern/service-management/service-patterns/1"" uri=""/api/space/nsas/lsp-pattern/service-management/service-patterns/1"" key=""1""> <PatternName>Default LSP Pattern</PatternName> <PatternID>1</PatternID> </LSPPattern> <Action>Provisioning</Action> <endpointcount>2</endpointcount> <ServiceEndPointGroup> <DeviceInfo> <NA key=""2"" uri=""/api/space/nsas/device-roles/pe-devices/2"" href=""/api/space/nsas/device-roles/pe-devices/2""> <DeviceName>SG2re</DeviceName> <DeviceID>2</DeviceID> </NA> </DeviceInfo> <ServicePolicyBean /> <ServiceEndPoint> <InterfaceName>ge-0/0/5</InterfaceName> <InterfaceId>26</InterfaceId> <ServiceEndpointConfiguration xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""L3VPNFMOSPFEndPointConfigParameterOrderType""> <RoutingProtocol>OSPF</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <UnitID>3</UnitID> <VlanId>3</VlanId> <InterfaceIP>10.0.77.13/30</InterfaceIP> <MTU>0</MTU> <RouteDistinguisher>100:10</RouteDistinguisher> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates /> <ServiceEndpointID>0</ServiceEndpointID> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key=""1"" uri=""/api/space/nsas/device-roles/pe-devices/1"" href=""/api/space/nsas/device-roles/pe-devices/1""> <DeviceName>SG3re</DeviceName> <DeviceID>1</DeviceID> </NA> </DeviceInfo> <ServicePolicyBean /> <ServiceEndPoint> <InterfaceName>ge-0/0/6</InterfaceName> <InterfaceId>4</InterfaceId> <ServiceEndpointConfiguration xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""L3VPNFMOSPFEndPointConfigParameterOrderType""> <RoutingProtocol>OSPF</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <UnitID>2</UnitID> <VlanId>2</VlanId> <InterfaceIP>10.0.88.5/30</InterfaceIP> <MTU>0</MTU> <RouteDistinguisher>100:11</RouteDistinguisher> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates /> <ServiceEndpointID>0</ServiceEndpointID> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""L3VPNConfigParameterOrderType""> <RouteTarget>100:8</RouteTarget> <RouteDistinguisher /> <VRFTabelLabel>true</VRFTabelLabel> <ExportDirectRoutes>true</ExportDirectRoutes> <AutoExportRoutes>true</AutoExportRoutes> <PolicyBasedRT>true</PolicyBasedRT> </ServiceOrderParameter> <Reference> <Customer uri=""/api/space/nsas/customer-management/customers/1"" href=""/api/space/nsas/customer-management/customers/1"" key=""1""> <CustomerName>Juniper</CustomerName> </Customer> <ServiceDefinition> <ServiceDefinitionID uri=""/api/space/nsas/l3vpn/service-management/service-definitions/65537"" href=""/api/space/nsas/l3vpn/service-management/service-definitions/65537"" key=""65537""> <ServiceDefinitionName>L3VPN-OSPF-Static</ServiceDefinitionName> </ServiceDefinitionID> </ServiceDefinition> <Service uri=""/api/space/nsas/l3vpn/service-management/services/131072"" href=""/api/space/nsas/l3vpn/service-management/services/131072"" key=""131072"" /> </Reference> <LspServiceDefinition> <ServiceDefinitionID uri=""/api/space/nsas/rsvp-lsp/service-management/service-definitions/8"" href=""/api/space/nsas/rsvp-lsp/service-management/service-definitions/8"" key=""8""> <ServiceDefinitionName>FullMesh LSP with Node Link Protection</ServiceDefinitionName> </ServiceDefinitionID> </LspServiceDefinition> <LspId>131072</LspId> </ServiceOrder> </ServiceResource> </Data>" "
Create an IP Service Order to Associate an LSP
This request is used to create an IP service order for associating it with an LSP.
URL | /api/space/nsas/csd/service-order |
HTTP Method | POST |
Sample URL | https://192.0.2.10:8443/api/space/nsas/csd/service-order |
Accept Header | application/xml |
Content Type | application/xml |
Input
""<?xml version=""1.0"" encoding=""UTF-8""?> <Data xmlns=""services.schema.networkapi.jmp.juniper.net""> <ServiceResource> <ServiceOrder> <Reference> <Customer key=""1"" /> <ServiceDefinition> <ServiceDefinitionID key=""65537"" /> </ServiceDefinition> <Service key=""undefined"" /> </Reference> <Common> <Name>IP_AssociateLSP</Name> <CustomerName>Juniper</CustomerName> <CreatedBy>super</CreatedBy> </Common> <ServiceOrderParameter xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""L3VPNConfigParameterOrderType""> <RouteTarget AutoPick=""true"">true</RouteTarget> <OSPFVersion>Ver 2</OSPFVersion> <VRFTabelLabel>true</VRFTabelLabel> <AutoExportRoutes>true</AutoExportRoutes> </ServiceOrderParameter> <ServiceEndPointGroup> <DonotApplyDefaultTemplatesOfSD>true</DonotApplyDefaultTemplatesOfSD> <DeviceInfo> <NA> <DeviceName>SG2re</DeviceName> <DeviceID>2</DeviceID> </NA> </DeviceInfo> <EnableStitchingPoint>false</EnableStitchingPoint> <ServiceEndPoint> <InterfaceName>ge-0/0/5</InterfaceName> <InterfaceStatus>up</InterfaceStatus> <InterfaceID>26</InterfaceID> <ServiceEndpointConfiguration xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""L3VPNFMOSPFEndPointConfigParameterOrderType""> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> <EthernetOption>Dot1Q</EthernetOption> <AutoPickUnitID>true</AutoPickUnitID> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick=""true"" /> <IPAddressPool>10.0.77.0/24</IPAddressPool> <IPBlockSize>30</IPBlockSize> <LSPRegex>$Name_to_$EgressAddress</LSPRegex> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DonotApplyDefaultTemplatesOfSD>true</DonotApplyDefaultTemplatesOfSD> <DeviceInfo> <NA> <DeviceName>SG3re</DeviceName> <DeviceID>1</DeviceID> </NA> </DeviceInfo> <EnableStitchingPoint>false</EnableStitchingPoint> <ServiceEndPoint> <InterfaceName>ge-0/0/6</InterfaceName> <InterfaceStatus>up</InterfaceStatus> <InterfaceID>4</InterfaceID> <ServiceEndpointConfiguration xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""L3VPNFMOSPFEndPointConfigParameterOrderType""> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> <EthernetOption>Dot1Q</EthernetOption> <AutoPickUnitID>true</AutoPickUnitID> <AutoPickVlanID>true</AutoPickVlanID> <InterfaceIP AutoPick=""true"" /> <IPAddressPool>10.0.77.0/24</IPAddressPool> <IPBlockSize>30</IPBlockSize> <LSPRegex>$Name_to_$EgressAddress</LSPRegex> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""ServiceOrderCustomActionType""> <Action>SaveAndValidate</Action> </CustomAction> </Data>" "
Output
Sample XML Output
"<?xml version=""1.0"" encoding=""UTF-8""?> <Data xmlns=""services.schema.networkapi.jmp.juniper.net""> <Status> <Identity> <Type>ServiceOrder</Type> <Value>163841</Value> </Identity> <Job> <ID>917516</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>The Service Order Created Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>" "
Get an IP Service Order to Associate an LSP
This request is used to retrieve an IP service order for associating it with an LSP.
URL | /api/space/nsas/l3vpn/service-management/service-orders/paging/<orderID> |
HTTP Method | GET |
Sample URL | https://192.0.2.10:8443/api/space/nsas/l3vpn/service-management/service-orders/paging/163840 |
Accept | application/vnd.net.juniper.space.service-management.service-order+xml;version=2; |
Content Type | application/vnd.net.juniper.space.service-management.service-order+xml;version=2;charset=UTF-8; |
Input
Not Applicable
Output
Sample XML Output
""<?xml version=""1.0"" encoding=""UTF-8""?> <Data xmlns=""services.schema.networkapi.jmp.juniper.net""> <ServiceResource> <ServiceOrder key=""163841"" uri=""/api/space/nsas/l3vpn/service-management/service-orders/163841"" href=""/api/space/nsas/l3vpn/service-management/service-orders/163841""> <Common> <Name>IP_AssociateLSP</Name> <Identity>163841</Identity> <State>Validated</State> <ScheduledState>Validated</ScheduledState> <CreatedDate>2018-06-20T21:33:04.000+05:30</CreatedDate> <LastUpdatedDate>2018-06-20T21:33:03.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>l3vpn</ServiceType> <JobIdsList>917516</JobIdsList> <EnableMVPN>false</EnableMVPN> <EnableMCLAG>false</EnableMCLAG> <Action>Provisioning</Action> <endpointcount>2</endpointcount> <ServiceEndPointGroup> <DeviceInfo> <NA key=""2"" uri=""/api/space/nsas/device-roles/pe-devices/2"" href=""/api/space/nsas/device-roles/pe-devices/2""> <DeviceName>SG2re</DeviceName> <DeviceID>2</DeviceID> </NA> </DeviceInfo> <ServicePolicyBean /> <ServiceEndPoint> <InterfaceName>ge-0/0/5</InterfaceName> <InterfaceId>26</InterfaceId> <ServiceEndpointConfiguration xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""L3VPNFMOSPFEndPointConfigParameterOrderType""> <RoutingProtocol>OSPF</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <UnitID>4</UnitID> <VlanId>4</VlanId> <InterfaceIP>10.0.77.17/30</InterfaceIP> <MTU>0</MTU> <LSPRegex>$Name_to_$EgressAddress</LSPRegex> <RouteDistinguisher>100:12</RouteDistinguisher> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates /> <ServiceEndpointID>0</ServiceEndpointID> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key=""1"" uri=""/api/space/nsas/device-roles/pe-devices/1"" href=""/api/space/nsas/device-roles/pe-devices/1""> <DeviceName>SG3re</DeviceName> <DeviceID>1</DeviceID> </NA> </DeviceInfo> <ServicePolicyBean /> <ServiceEndPoint> <InterfaceName>ge-0/0/6</InterfaceName> <InterfaceId>4</InterfaceId> <ServiceEndpointConfiguration xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""L3VPNFMOSPFEndPointConfigParameterOrderType""> <RoutingProtocol>OSPF</RoutingProtocol> <EthernetOption>Dot1Q</EthernetOption> <UnitID>3</UnitID> <VlanId>3</VlanId> <InterfaceIP>10.0.77.21/30</InterfaceIP> <MTU>0</MTU> <LSPRegex>$Name_to_$EgressAddress</LSPRegex> <RouteDistinguisher>100:13</RouteDistinguisher> <OSPFAreaId>0.0.0.0</OSPFAreaId> <OSPFVersion>Ver 2</OSPFVersion> </ServiceEndpointConfiguration> <ServiceTemplates /> <ServiceEndpointID>0</ServiceEndpointID> </ServiceEndPoint> <EnableLoopback>false</EnableLoopback> <EnableStitchingPoint>false</EnableStitchingPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""L3VPNConfigParameterOrderType""> <RouteTarget>100:9</RouteTarget> <RouteDistinguisher /> <VRFTabelLabel>true</VRFTabelLabel> <ExportDirectRoutes>true</ExportDirectRoutes> <AutoExportRoutes>true</AutoExportRoutes> <PolicyBasedRT>true</PolicyBasedRT> </ServiceOrderParameter> <Reference> <Customer uri=""/api/space/nsas/customer-management/customers/1"" href=""/api/space/nsas/customer-management/customers/1"" key=""1""> <CustomerName>Juniper</CustomerName> </Customer> <ServiceDefinition> <ServiceDefinitionID uri=""/api/space/nsas/l3vpn/service-management/service-definitions/65537"" href=""/api/space/nsas/l3vpn/service-management/service-definitions/65537"" key=""65537""> <ServiceDefinitionName>L3VPN-OSPF-Static</ServiceDefinitionName> </ServiceDefinitionID> </ServiceDefinition> <Service uri=""/api/space/nsas/l3vpn/service-management/services/131073"" href=""/api/space/nsas/l3vpn/service-management/services/131073"" key=""131073"" /> </Reference> </ServiceOrder> </ServiceResource> </Data>" "