E-Line BGP Service Orders Management RESTful Web Services
The following operations can be performed using the Connectivity Services Director E-Line BGP Service Orders Management RESTful Web Services.
Get an E-Line BGP Service Order with Manual Route Distinguisher and Route Target By Order ID
This request is used to retrieve the details of a particular Layer 2 Ethernet Private Line (EPL, also called E-Line) BGP service order based on the service order ID.
URI | api/space/nsas/eline-ptp/service-management/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service- |
Produces | Collects the details of a specific E-Line BGP 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/eline-ptp/service-management/service-orders/1998872" uri="/api/space/nsas/eline-ptp/servicemanagement/ service-orders/1998872" key="1998872"> <Common> <Name>P2P_Eline_BGP</Name> <Identity>1998872</Identity> <State>Invalid</State> <Comments> </Comments> <CreatedDate>2012-12-17T00:27:48.000+05:30</CreatedDate> <LastUpdatedDate>2012-12-17T00:27:48.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <Signaling>BGP</Signaling> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/720968" uri="/api/space/nsas/device-roles/pe-devices/720968" key="720968"> <DeviceName>jaipur</DeviceName> <DeviceID>720968</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>lt-0/1/0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <TrafficType>DOT1Q Transport single vlan</TrafficType> <PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation> <LogicalEncapsulation>vlan-ccc</LogicalEncapsulation> <UNIDescription>N/A</UNIDescription> <VlanId>513</VlanId> <MTU>1522</MTU> <Bandwidth unit="Kbps">0</Bandwidth> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/721104" uri="/api/space/nsas/device-roles/pe-devices/721104" key="721104"> <DeviceName>junos-space1</DeviceName> <DeviceID>721104</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <TrafficType>DOT1Q Transport single vlan</TrafficType> <PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation> <LogicalEncapsulation>vlan-ccc</LogicalEncapsulation> <UNIDescription>N/A</UNIDescription> <VlanId>512</VlanId> <MTU>1522</MTU> <Bandwidth unit="Kbps">0</Bandwidth> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterOrderType"> <RouteTarget>10:89</RouteTarget> <RouteDistinguisher>10:77</RouteDistinguisher> </ServiceOrderParameter> <Reference> <Customer key="720896" href="/api/space/nsas/customer-management/customers/720896" uri="/api/space/nsas/customermanagement/ customers/720896"/> <ServiceDefinition> <ServiceDefinitionID key="1703977" href="/api/space/nsas/service-management/service-definitions/1703977" uri="/api/space/nsas/service-management/service-definitions/1703977"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Get E-Line BGP Service Order Details with Burst Size Calculation By Order ID
This request is used to retrieve the details of a particular Layer 2 Ethernet Private Line (EPL, also called E-Line) BGP service order with burst size calculation based on the service order ID.
URI | api/space/nsas/eline-ptp/service-management/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service- |
Produces | Collects the details of a specific E-Line BGP service order with 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="917528" uri="/api/space/nsas/eline-ptp/service-management/service-orders/917528" href="/api/space/nsas/eline-ptp/service-management/service-orders/917528"> <Common> <Name>P2P_BGP_BurstSizeCal_SO</Name> <Identity>917528</Identity> <State>Completed</State> <Comments>werwerew</Comments> <CreatedDate>2014-09-26T19:00:31.000+05:30</CreatedDate> <LastUpdatedDate>2014-09-26T19:01:00.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <Signaling>BGP</Signaling> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA key="558232" uri="/api/space/nsas/device-roles/pe-devices/558232" href="/api/space/nsas/device-roles/pe-devices/558232"> <DeviceName>embassy</DeviceName> <DeviceID>558232</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/1/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <TrafficType>QINQ Transport single vlan</TrafficType> <PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation> <LogicalEncapsulation>vlan-ccc</LogicalEncapsulation> <UNIDescription>retret</UNIDescription> <OuterTPID>None</OuterTPID> <InnerTPID>None</InnerTPID> <UnitId>1</UnitId> <VlanId>512</VlanId> <CustomerVlanId>2</CustomerVlanId> <MTU>1522</MTU> <Bandwidth unit="Mbps">10</Bandwidth> </ServiceEndpointConfiguration> <ServiceTemplates/> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="557067" uri="/api/space/nsas/device-roles/pe-devices/557067" href="/api/space/nsas/device-roles/pe-devices/557067"> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>557067</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>lt-0/0/10</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <TrafficType>QINQ Transport single vlan</TrafficType> <PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation> <LogicalEncapsulation>vlan-ccc</LogicalEncapsulation> <UNIDescription>erterte</UNIDescription> <OuterTPID>None</OuterTPID> <InnerTPID>None</InnerTPID> <UnitId>512</UnitId> <VlanId>512</VlanId> <CustomerVlanId>2</CustomerVlanId> <MTU>1522</MTU> <Bandwidth unit="Mbps">10</Bandwidth> </ServiceEndpointConfiguration> <ServiceTemplates/> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterOrderType"> <RouteTarget>100:5</RouteTarget> <RouteDistinguisher>100:15</RouteDistinguisher> <VlanNormalization>Normalize to QinQ tags</VlanNormalization> <OuterVlanTagToStack>1</OuterVlanTagToStack> <InnerVlanTagToStack>1</InnerVlanTagToStack> <MTUFactor>35</MTUFactor> </ServiceOrderParameter> <Reference> <Customer uri="/api/space/nsas/customer-management/customers/558229" href="/api/space/nsas/customer-management/customers/558229" key="558229"/> <ServiceDefinition> <ServiceDefinitionID uri="/api/space/nsas/eline-ptp/service-management/service-definitions/917504" href="/api/space/nsas/eline-ptp/service-management/service-definitions/917504" key="917504"/> </ServiceDefinition> <Service uri="/api/space/nsas/eline-ptp/service-management/services/917541" href="/api/space/nsas/eline-ptp/service-management/services/917541" key="917541"/> </Reference> </ServiceOrder> </ServiceResource> </Data>
Get E-Line Service Order Details with Normalization Support By Order ID
This request is used to retrieve the details of a particular Layer 2 Ethernet Private Line (EPL, also called E-Line) service order configured with normalization of VLANs and logical interface unit-handling, based on the service order ID.
URI | api/space/nsas/eline-ptp/service-management/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific E-Line service order configured with normalization of VLANs and logical unit of interfaces. |
Output (VLAN Normalization: Normalize to Q-in-Q tags)
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/1998872" uri="/api/space/nsas/eline-ptp/servicemanagement/ service-orders/1998872" key="1998872"> <Common> <Name>P2P_Eline_BGP</Name> <Identity>1998872</Identity> <State>Invalid</State> <Comments> </Comments> <CreatedDate>2012-12-17T00:27:48.000+05:30</CreatedDate> <LastUpdatedDate>2012-12-17T00:27:48.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <Signaling>BGP</Signaling> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/720968" uri="/api/space/nsas/device-roles/pe-devices/720968" key="720968"> <DeviceName>jaipur</DeviceName> <DeviceID>720968</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>lt-0/1/0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <TrafficType>DOT1Q Transport single vlan</TrafficType> <PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation> <LogicalEncapsulation>vlan-ccc</LogicalEncapsulation> <UNIDescription>N/A</UNIDescription> <VlanId>513</VlanId> <UnitId>456</UnitId> <MTU>1522</MTU> <Bandwidth unit="Kbps">0</Bandwidth> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/721104" uri="/api/space/nsas/device-roles/pe-devices/721104" key="721104"> <DeviceName>junos-space1</DeviceName> <DeviceID>721104</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <TrafficType>DOT1Q Transport single vlan</TrafficType> <PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation> <LogicalEncapsulation>vlan-ccc</LogicalEncapsulation> <UNIDescription>N/A</UNIDescription> <UnitId>456</UnitId> <VlanId>512</VlanId> <MTU>1522</MTU> <Bandwidth unit="Kbps">0</Bandwidth> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterOrderType"> <VlanNormalization>Normalize to QinQ tags</VlanNormalization> <OuterVlanTagToStack>12</OuterVlanTagToStack> <InnerVlanTagToStack>13</InnerVlanTagToStack> </ServiceOrderParameter> <Reference> <Customer key="720896" href="/api/space/nsas/customer-management/customers/720896" uri="/api/space/nsas/customermanagement/ customers/720896"/> <ServiceDefinition> <ServiceDefinitionID key="1703977" href="/api/space/nsas/service-management/service-definitions/1703977" uri="/api/space/nsas/service-management/service-definitions/1703977"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Output (VLAN Normalization: Normalize to dot1Q tags)
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/1998872" uri="/api/space/nsas/eline-ptp/servicemanagement/ service-orders/1998872" key="1998872"> <Common> <Name>P2P_Eline_BGP</Name> <Identity>1998872</Identity> <State>Invalid</State> <Comments> </Comments> <CreatedDate>2012-12-17T00:27:48.000+05:30</CreatedDate> <LastUpdatedDate>2012-12-17T00:27:48.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <Signaling>BGP</Signaling> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/720968" uri="/api/space/nsas/device-roles/pe-devices/720968" key="720968"> <DeviceName>jaipur</DeviceName> <DeviceID>720968</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>lt-0/1/0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <TrafficType>DOT1Q Transport single vlan</TrafficType> <PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation> <LogicalEncapsulation>vlan-ccc</LogicalEncapsulation> <UNIDescription>N/A</UNIDescription> <VlanId>513</VlanId> <UnitId>456</UnitId> <MTU>1522</MTU> <Bandwidth unit="Kbps">0</Bandwidth> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/721104" uri="/api/space/nsas/device-roles/pe-devices/721104" key="721104"> <DeviceName>junos-space1</DeviceName> <DeviceID>721104</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/5</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <TrafficType>DOT1Q Transport single vlan</TrafficType> <PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation> <LogicalEncapsulation>vlan-ccc</LogicalEncapsulation> <UNIDescription>N/A</UNIDescription> <UnitId>456</UnitId> <VlanId>512</VlanId> <MTU>1522</MTU> <Bandwidth unit="Kbps">0</Bandwidth> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterOrderType"> <VlanNormalization>Normalize to Dot1q tag</VlanNormalization> <VlanTagToStack>1</VlanTagToStack> </ServiceOrderParameter> <Reference> <Customer key="720896" href="/api/space/nsas/customer-management/customers/720896" uri="/api/space/nsas/customermanagement/ customers/720896"/> <ServiceDefinition> <ServiceDefinitionID key="1703977" href="/api/space/nsas/service-management/service-definitions/1703977" uri="/api/space/nsas/service-management/service-definitions/1703977"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Get E-Line Service Order with BGP (Version 2)
This request is used to retrieve the details of a particular Layer 2 Ethernet Private Line (EPL, also called E-Line) service order configured with signaling as BGP.
URI | /api/space/nsas/eline-ptp/service-management/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific E-Line service order with BGP signaling. |
Output (VLAN Normalization: Normalize to Q-in-Q tags)
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>BGP_SO_Via_Test01</Name> <Comments>tyut</Comments> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <Signaling>BGP</Signaling> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA key="557096" uri="/api/space/nsas/device-roles/pe-devices/557096" href="/api/space/nsas/device-roles/pe-devices/557096"> <DeviceName>embassy</DeviceName> <DeviceID>557096</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/1/9</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <UNIDescription>tyut</UNIDescription> <UnitId>16</UnitId> <VlanId>2</VlanId> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="557096" uri="/api/space/nsas/device-roles/pe-devices/557096" href="/api/space/nsas/device-roles/pe-devices/557096"> <DeviceName>embassy</DeviceName> <DeviceID>557096</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/0/9</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <UNIDescription>tyutyu</UNIDescription> <UnitId>16</UnitId> <VlanId>3</VlanId> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterOrderType"> <OuterVlanTagToStack>12</OuterVlanTagToStack> <InnerVlanTagToStack>14</InnerVlanTagToStack> <MTUFactor>15</MTUFactor> </ServiceOrderParameter> <Reference> <Customer uri="/api/space/nsas/customer-management/customers/851968" href="/api/space/nsas/customer-management/customers/851968" key="851968"/> <ServiceDefinition> <ServiceDefinitionID uri="/api/space/nsas/eline-ptp/service-management/service-definitions/589824" href="/api/space/nsas/eline-ptp/service-management/service-definitions/589824" key="589824"/> </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>
Create an Ethernet, ATM, or TDM BGP Service Order
This request is used to create a BGP service order with Ethernet, ATM, or TDM interfaces.
URI | /api/space/nsas/eline-ptp/service-management/ |
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 a BGP service order with Ethernet, ATM, and TDM interfaces. |
Input (Ethernet 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>Ethernet-BGP-API</Name> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-mx80-1-space</DeviceName> <DeviceID>393286</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/1/5</InterfaceName> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>embassy</DeviceName> <DeviceID>393340</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/0/5</InterfaceName> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterOrderType"> <RouteTarget>100:6</RouteTarget> <RouteDistinguisher>100:27</RouteDistinguisher> </ServiceOrderParameter> <Reference> <Customer key="393216"/> <ServiceDefinition> <ServiceDefinitionID key="3506181"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Input (ATM 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>BGP_ATM_API</Name> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA > <DeviceName>junos-m10-1-space</DeviceName> <DeviceID>393269</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>at-1/1/0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPATMEndPointConfigParameterOrderType"> <VPI>2</VPI> <VCI>3</VCI> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA > <DeviceName>Unmanaged device</DeviceName> <DeviceID>0</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/2/3</InterfaceName> <LoopbackIP>30.1.2.4</LoopbackIP> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPATMConfigParameterOrderType"> <RouteTarget>10:13</RouteTarget> <RouteDistinguisher>10:76</RouteDistinguisher> </ServiceOrderParameter> <Reference> <Customer key="393216"/> <ServiceDefinition> <ServiceDefinitionID key="1441819"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Input (TDM 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> BGP_TDM_API </Name> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <Signaling>BGP</Signaling> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>393414</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>t1-0/0/2</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPTDMEndPointConfigParameterOrderType"> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>Unmanaged device</DeviceName> <DeviceID>0</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/0/9</InterfaceName> <LoopbackIP>30.1.2.7</LoopbackIP> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPTDMConfigParameterOrderType"> <RouteTarget>69:144410</RouteTarget> <RouteDistinguisher>69:1444</RouteDistinguisher> </ServiceOrderParameter> <Reference> <Customer key="393216"/> <ServiceDefinition> <ServiceDefinitionID key="3506205"/> </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>2424838</Value> </Identity> <Job> <ID>688205</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 E-Line BGP Service Order
This request is used to create an E-Line BGP service order.
URI | api/space/nsas/eline-ptp/service-management/service-orders/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management.service-order-status+xml;version=2 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 E-Line BGP service order. |
Input
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>P2P_BGP_Asymmetric_SO_API</Name> <Comments>dfdsfdsgsg</Comments> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <Signaling>BGP</Signaling> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA key="524504" uri="/api/space/nsas/device-roles/pe-devices/524504" href="/api/space/nsas/device-roles/pe-devices/524504"> <DeviceName>embassy</DeviceName> <DeviceID>524504</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/1/7</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <TrafficType>QINQ Transport single vlan</TrafficType> <EthernetOption>qinq</EthernetOption> <UNIDescription>rfergreg</UNIDescription> <CustomerVlanId>2</CustomerVlanId> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="524452" uri="/api/space/nsas/device-roles/pe-devices/524452" href="/api/space/nsas/device-roles/pe-devices/524452"> <DeviceName>junos-mx80-1-space</DeviceName> <DeviceID>524452</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/1/8</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <TrafficType>Transport using port</TrafficType> <EthernetOption>port-port</EthernetOption> <UNIDescription>dsfsdfs</UNIDescription> <CustomerVlanId>2</CustomerVlanId> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterOrderType"> <VlanNormalization>Normalize to Dot1q tag</VlanNormalization> <VlanTagToStack>1</VlanTagToStack> </ServiceOrderParameter> <Reference> <Customer key="524615"/> <ServiceDefinition> <ServiceDefinitionID key="458876"/> </ServiceDefinition> <Service key="458861"/> </Reference> </ServiceOrder> </ServiceResource> </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>
Create an E-Line BGP Service Order with Instance Type as evpn-vpws
This request is used to create an E-Line BGP service order with instance type as evpn-vpws.
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 |
Request
"<Data xmlns=""services.schema.networkapi.jmp.juniper.net""> <ServiceResource> <ServiceOrder> <Common> <Name>eline-vpws-demo</Name> <CustomerName>apple</CustomerName> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <Signaling>BGP</Signaling> <Action>Provisioning</Action> <ServiceEndPointGroup> <DonotApplyDefaultTemplatesOfSD>true</DonotApplyDefaultTemplatesOfSD> <DeviceInfo> <NA> <DeviceName>SG3re</DeviceName> <DeviceID>131076</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/3</InterfaceName> <InterfaceID>131199</InterfaceID> <ServiceEndpointConfiguration xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""PTPElineBGPEndPointConfigParameterOrderType""> <EndPointCategory>PTP</EndPointCategory> <AutoPickUnitId>true</AutoPickUnitId> <AutoPickVlanId>true</AutoPickVlanId> <MTU>1522</MTU> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DonotApplyDefaultTemplatesOfSD>true</DonotApplyDefaultTemplatesOfSD> <DeviceInfo> <NA> <DeviceName>SG4re</DeviceName> <DeviceID>131080</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/9</InterfaceName> <InterfaceID>131318</InterfaceID> <ServiceEndpointConfiguration xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""PTPElineBGPEndPointConfigParameterOrderType""> <EndPointCategory>PTP</EndPointCategory> <AutoPickUnitId>true</AutoPickUnitId> <AutoPickVlanId>true</AutoPickVlanId> <MTU>1522</MTU> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""PTPConfigParameterOrderType""> <MTUFactor>10</MTUFactor> <RouteTarget AutoPick=""false"">100:3761</RouteTarget> <RouteDistinguisher AutoPick=""false"">100:341</RouteDistinguisher> <VlanTagToStack>27</VlanTagToStack> </ServiceOrderParameter> <Reference> <Customer key=""1"" /> <ServiceDefinition> <ServiceDefinitionID key=""557056"" /> </ServiceDefinition> <Service key=""undefined"" /> </Reference> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""ServiceOrderCustomActionType""> <Action>SaveAndValidate</Action> </CustomAction> </Data>"
Response
"<?xml version=""1.0"" encoding=""UTF-8"" standalone=""yes""?> <Data xmlns=""services.schema.networkapi.jmp.juniper.net""> <Status> <Identity> <Type>ServiceOrder</Type> <Value>1114112</Value> </Identity> <Job> <ID>4685872</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 E-Line BGP Service Order with Manual Route Distinguisher and Route Target
This request is used to create an E-Line BGP service order with manually-configured route distiguisher and route target attributes.
URI | api/space/nsas/eline-ptp/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 E-Line BGP service order with manually-configured route distiguisher and route target attributes. |
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>BGP_ATM_API1</Name> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA > <DeviceName>junos-m10-1-space</DeviceName> <DeviceID>393269</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>at-1/1/0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPATMEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <UNIDescription>N/A</UNIDescription> <VPI>2</VPI> <VCI>3</VCI> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA > <DeviceName>Unmanaged device</DeviceName> <DeviceID>0</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>fdb</InterfaceName> <LoopbackIP>30.1.2.4</LoopbackIP> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPATMConfigParameterOrderType"> <RouteTarget>10:131</RouteTarget> <RouteDistinguisher>10:761</RouteDistinguisher> </ServiceOrderParameter> <Reference> <Customer key="393216"/> <ServiceDefinition> <ServiceDefinitionID key="1441819"/> </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>2588678</Value> </Identity> <Job> <ID>786440</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 E-Line BGP Service Order with Pseudowire Redundancy
This request is used to create an E-Line BGP service order configured with pseudowire redundancy.
URI | api/space/nsas/eline-ptp/service-management/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Creates an E-Line BGP service order with pseudowire redundancy. |
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>p2p_bgp_redundancy_so_API</Name> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>jaipur</DeviceName> <DeviceID>5341324</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/2</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <VlanId>221</VlanId> <Bandwidth unit="Mbps">10</Bandwidth> </ServiceEndpointConfiguration> </ServiceEndPoint> <BackUpSettings> <Enable>true</Enable> <DeviceInfo> <NA> <DeviceName>embassy</DeviceName> <DeviceID>9076741</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/0/6</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <MTU>1529</MTU> <Bandwidth unit="Mbps">44</Bandwidth> </ServiceEndpointConfiguration> </ServiceEndPoint> </BackUpSettings> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-m10-1-space</DeviceName> <DeviceID>5341207</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>lt-1/0/0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <VlanId>513</VlanId> <Bandwidth unit="Mbps">10</Bandwidth> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterOrderType"> <RouteTarget>100:114679</RouteTarget> <RouteDistinguisher>100:114679</RouteDistinguisher> </ServiceOrderParameter> <Reference> <Customer key="819263" href="/api/space/nsas/customer-management/customers/819263" uri="/api/space/nsas/customer-management/customers/819263" /> <ServiceDefinition> <ServiceDefinitionID key="9469999" href="/api/space/nsas/eline-ptp/service-management/service-definitions/9469999" uri="/api/space/nsas/eline-ptp/service-management/service-definitions/9469999" /> </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>9470033</Value> </Identity> <Job> <ID>3047763</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 E-Line BGP Service Order By Order ID
This request is used to retrieve the details of a particular E-Line BGP service order based on the service order ID.
URI | api/space/nsas/eline-ptp/service-management/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific E-Line BGP 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/eline-ptp/service-management/service-orders/9470033" uri="/api/space/nsas/eline-ptp/service-management/service-orders/9470033" key="9470033"> <Common> <Name>p2p_bgp_redundancy_so_API</Name> <Identity>9470033</Identity> <State>Invalid</State> <CreatedDate>2013-01-17T16:16:21.000+05:30</CreatedDate> <LastUpdatedDate>2013-01-17T16:16:20.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <Signaling>BGP</Signaling> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/5341324" uri="/api/space/nsas/device-roles/pe-devices/5341324" key="5341324"> <DeviceName>jaipur</DeviceName> <DeviceID>5341324</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/2</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <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>221</VlanId> <Bandwidth unit="Mbps">10</Bandwidth> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> <BackUpSettings> <Enable>true</Enable> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/9076741" uri="/api/space/nsas/device-roles/pe-devices/9076741" key="9076741"> <DeviceName>embassy</DeviceName> <DeviceID>9076741</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/0/6</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <MTU>1529</MTU> <Bandwidth unit="Mbps">44</Bandwidth> </ServiceEndpointConfiguration> </ServiceEndPoint> </BackUpSettings> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/5341207" uri="/api/space/nsas/device-roles/pe-devices/5341207" key="5341207"> <DeviceName>junos-m10-1-space</DeviceName> <DeviceID>5341207</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>lt-1/0/0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <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> <Bandwidth unit="Mbps">10</Bandwidth> </ServiceEndpointConfiguration> <ServiceTemplates /> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterOrderType"> <RouteTarget>100:114679</RouteTarget> <RouteDistinguisher>100:114679</RouteDistinguisher> </ServiceOrderParameter> <Reference> <Customer key="819263" href="/api/space/nsas/customer-management/customers/819263" uri="/api/space/nsas/customer-management/customers/819263" /> <ServiceDefinition> <ServiceDefinitionID key="9469999" href="/api/space/nsas/eline-ptp/service-management/service-definitions/9469999" uri="/api/space/nsas/eline-ptp/service-management/service-definitions/9469999" /> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Get All E-Line BGP Service Orders
This request is used to retrieve all the configured Layer 2 Ethernet Private Line (EPL, also called E-Line) BGP service orders.
URI | api/space/nsas/eline-ptp/service-management/service-orders |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management.service-orders+xml |
Produces | Collects all the configured E-Line BGP service orders. |
Output
Sample XML Output
Create an E-Line BGP Service Order with Static Pseudowire for E-Line
This request is used to create an E-Line BGP service order with static pseudowires forE-Line.
URI | api/space/nsas/eline-ptp/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 E-Line BGP service order with static pseudowires for E-Line. |
Input
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>P2P_BGP_E_SPW_SO_API_01</Name> <Comments>fdgdfgdf</Comments> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <Signaling>LDP</Signaling> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA key="524440" uri="/api/space/nsas/device-roles/pe-devices/524440" href="/api/space/nsas/device-roles/pe-devices/524440"> <DeviceName>embassy</DeviceName> <DeviceID>524440</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/0/7</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineLDPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <UNIDescription>hgfh</UNIDescription> <CustomerVlanId>1</CustomerVlanId> <OutgoingLabel>1000000</OutgoingLabel> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="524296" uri="/api/space/nsas/device-roles/pe-devices/524296" href="/api/space/nsas/device-roles/pe-devices/524296"> <DeviceName>junos-mx240-space</DeviceName> <DeviceID>524296</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>em0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineLDPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <UNIDescription>rtyrtutyu</UNIDescription> <CustomerVlanId>1</CustomerVlanId> <OutgoingLabel>1000000</OutgoingLabel> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterOrderType"> <VlanNormalization>Normalize to QinQ tags</VlanNormalization> <OuterVlanTagToStack>1</OuterVlanTagToStack> <InnerVlanTagToStack>1</InnerVlanTagToStack> </ServiceOrderParameter> <Reference> <Customer key="525406"/> <ServiceDefinition> <ServiceDefinitionID key="393589"/> </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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>393639</Value> </Identity> <Job> <ID>196637</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 E-Line Service Order with Instance Type as evpn-vpws
This request is used to retrieve all the configured Layer 2 Ethernet Private Line (EPL, also called E-Line) BGP service orders with instance type as evpn-vpws.
URL | /api/space/nsas/eline-ptp/service-management/service-orders/<id> |
HTTP Method | GET |
Sample URL | https://192.0.2.10:8443/api/space/nsas/eline-ptp/service-management/service-orders/1114112 |
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; |
Request
Not Applicable
Response
"<?xml version=""1.0"" encoding=""UTF-8"" standalone=""yes""?> <Data xmlns=""services.schema.networkapi.jmp.juniper.net""> <ServiceResource> <ServiceOrder key=""1114112"" uri=""/api/space/nsas/eline-ptp/service-management/service-orders/1114112"" href=""/api/space/nsas/eline-ptp/service-management/service-orders/1114112""> <Common> <Name>eline-vpws-demo</Name> <Identity>1114112</Identity> <State>Validated</State> <ScheduledState>Validated</ScheduledState> <CreatedDate>2018-06-19T20:29:29.000+05:30</CreatedDate> <LastUpdatedDate>2018-06-19T20:29:29.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> <InstanceType>evpn-vpws</InstanceType> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <JobIdsList>4685872</JobIdsList> <Signaling>BGP</Signaling> <Action>Provisioning</Action> <endpointcount>0</endpointcount> <ServiceEndPointGroup> <DeviceInfo> <NA key=""131076"" uri=""/api/space/nsas/device-roles/pe-devices/131076"" href=""/api/space/nsas/device-roles/pe-devices/131076""> <DeviceName>SG3re</DeviceName> <DeviceID>131076</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""PTPElineBGPEndPointConfigParameterOrderType""> <EndPointCategory>PTP</EndPointCategory> <TrafficType>DOT1Q Transport single vlan</TrafficType> <PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation> <LogicalEncapsulation>vlan-ccc</LogicalEncapsulation> <UNIDescription>N/A</UNIDescription> <OuterTPID>None</OuterTPID> <UnitId>8</UnitId> <VlanId>8</VlanId> <MTU>1522</MTU> <Bandwidth unit=""Kbps"">0</Bandwidth> </ServiceEndpointConfiguration> <ServiceTemplates /> <OppType>ADD</OppType> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key=""131080"" uri=""/api/space/nsas/device-roles/pe-devices/131080"" href=""/api/space/nsas/device-roles/pe-devices/131080""> <DeviceName>SG4re</DeviceName> <DeviceID>131080</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/9</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""PTPElineBGPEndPointConfigParameterOrderType""> <EndPointCategory>PTP</EndPointCategory> <TrafficType>DOT1Q Transport single vlan</TrafficType> <PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation> <LogicalEncapsulation>vlan-ccc</LogicalEncapsulation> <UNIDescription>N/A</UNIDescription> <OuterTPID>None</OuterTPID> <UnitId>2</UnitId> <VlanId>2</VlanId> <MTU>1522</MTU> <Bandwidth unit=""Kbps"">0</Bandwidth> </ServiceEndpointConfiguration> <ServiceTemplates /> <OppType>ADD</OppType> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""PTPConfigParameterOrderType""> <RouteTarget>100:3761</RouteTarget> <RouteDistinguisher>100:3416</RouteDistinguisher> <VlanNormalization>Normalize to Dot1q tag</VlanNormalization> <VlanTagToStack>27</VlanTagToStack> <MTUFactor>10</MTUFactor> </ServiceOrderParameter> <Reference> <Customer uri=""/api/space/nsas/customer-management/customers/1"" href=""/api/space/nsas/customer-management/customers/1"" key=""1""> <CustomerName>apple</CustomerName> </Customer> <ServiceDefinition> <ServiceDefinitionID uri=""/api/space/nsas/eline-ptp/service-management/service-definitions/557056"" href=""/api/space/nsas/eline-ptp/service-management/service-definitions/557056"" key=""557056""> <ServiceDefinitionName>eline-vpws-test</ServiceDefinitionName> </ServiceDefinitionID> </ServiceDefinition> <Service uri=""/api/space/nsas/eline-ptp/service-management/services/819200"" href=""/api/space/nsas/eline-ptp/service-management/services/819200"" key=""819200"" /> </Reference> </ServiceOrder> </ServiceResource> </Data>"
Deploy, Validate, and Partially-Delete an E-Line BGP Service Order
This request is used to deploy, validate, or partially delete a previously created E-Line BGP service order.
URI | api/space/nsas/eline-ptp/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 E-Line BGP 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
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceOrder</Type> <Value>6553600</Value> </Identity> <Job> <ID>1998905</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>The Service Order Deployment is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Delete an E-Line BGP Service Order
This request is used to delete a previously configured E-Line LDP service order.
URI | api/space/nsas/eline-ptp/service-management/ |
HTTP Method | DELETE |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Deletes an E-Line BGP 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 E-Line Service Order
This request is used to view the details of an E-Line service order that are pending to be applied to a device.
URI | api/space/nsas/eline-ptp/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>exora</DeviceName> <Configuration><configuration><interfaces><interface><name>ge- 0/1/1</name><flexible-vlan-tagging/><mtu>1522</mtu><encapsulation>flexible-ethernetservices& lt;/encapsulation><unit><name>24</name><encapsulation>vlan-ccc</encapsulation><vlan-idrange& gt;24-34</vlan-idrange& gt;</unit></interface></interfaces><protocols><l2circuit><neighbor><name>50.1.2.1</name ><interface><name>ge-0/1/1.24</name><virtual-circuit-id>2147467281</virtual-circuit-id><no-controlword/& gt;<mtu>1522</mtu><revert-time>5</revert-time><backupneighbor& gt;<name>30.1.2.7</name><virtual-circuit-id>2147467281</virtual-circuit-id><standby/></backupneighbor& gt;</interface></neighbor></l2circuit></protocols></configuration> </Configuration> </PendingOrderConfigDeviceEnd> <PendingOrderConfigDeviceEnd> <DeviceName>junos-space1</DeviceName> <Configuration><configuration><interfaces><interface><name>ge- 0/1/5</name><flexible-vlan-tagging/><mtu>1522</mtu><encapsulation>flexible-ethernetservices& lt;/encapsulation><unit><name>24</name><encapsulation>vlan-ccc</encapsulation><vlan-idrange& gt;24-34</vlan-idrange& gt;</unit></interface></interfaces><protocols><l2circuit><neighbor><name>50.1.2.3</name ><interface><name>ge-0/1/5.24</name><virtual-circuit-id>2147467281</virtual-circuit-id><no-controlword/& gt;<mtu>1522</mtu></interface></neighbor></l2circuit></protocols></configuration> </Configuration> </PendingOrderConfigDeviceEnd> <PendingOrderConfigDeviceEnd> <DeviceName>kochin</DeviceName> <Configuration><configuration><interfaces><interface><name>ge- 0/0/4</name><flexible-vlan-tagging/><mtu>1522</mtu><encapsulation>flexible-ethernetservices& lt;/encapsulation><unit><name>24</name><encapsulation>vlan-ccc</encapsulation><vlan-idrange& gt;24-34</vlan-idrange& gt;</unit></interface></interfaces><protocols><l2circuit><neighbor><name>50.1.2.3</name ><interface><name>ge-0/0/4.24</name><virtual-circuit-id>2147467281</virtual-circuit-id><no-controlword/& gt;<mtu>1522</mtu></interface></neighbor></l2circuit></protocols></configuration> </Configuration> </PendingOrderConfigDeviceEnd> </PendingOrderConfiguration> </Data>
Get an E-Line BGP Service Order with Tag Protocol ID By Order ID
This request is used to retrieve the details of a particular E-Line BGP service order with tag protocol configured based on the service order ID.
URI | api/space/nsas/eline-ptp/service-management/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific E-Line BGP service order with tag protocol ID. |
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/7405602" uri="/api/space/nsas/eline-ptp/service-management/service-orders/7405602" key="7405602"> <Common> <Name>TPID_P2P_BGP_SO</Name> <Identity>7405602</Identity> <State>Invalid</State> <CreatedDate>2012-12-26T12:40:52.000+05:30</CreatedDate> <LastUpdatedDate>2012-12-26T12:40:52.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <Signaling>BGP</Signaling> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/3997755" uri="/api/space/nsas/device-roles/pe-devices/3997755" key="3997755"> <DeviceName>jaipur</DeviceName> <DeviceID>3997755</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <TrafficType>QINQ Transport single vlan</TrafficType> <PhysicalEncapsulation>extended-vlan-ccc</PhysicalEncapsulation> <LogicalEncapsulation>extended-vlan-ccc</LogicalEncapsulation> <UNIDescription>N/A</UNIDescription> <OuterTPID>0x8100</OuterTPID> <InnerTPID>0x9100</InnerTPID> <VlanId>1600</VlanId> <CustomerVlanId>2000</CustomerVlanId> <MTU>1522</MTU> <Bandwidth unit="Kbps">0</Bandwidth> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/3997704" uri="/api/space/nsas/device-roles/pe-devices/3997704" key="3997704"> <DeviceName>kochin</DeviceName> <DeviceID>3997704</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/7</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <TrafficType>QINQ Transport single vlan</TrafficType> <PhysicalEncapsulation>extended-vlan-ccc</PhysicalEncapsulation> <LogicalEncapsulation>extended-vlan-ccc</LogicalEncapsulation> <UNIDescription>N/A</UNIDescription> <OuterTPID>0x8100</OuterTPID> <InnerTPID>0x9100</InnerTPID> <VlanId>1600</VlanId> <CustomerVlanId>2000</CustomerVlanId> <MTU>1522</MTU> <Bandwidth unit="Kbps">0</Bandwidth> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterOrderType"> <RouteTarget>100:6</RouteTarget> <RouteDistinguisher>100:8</RouteDistinguisher> </ServiceOrderParameter> <Reference> <Customer key="884834" href="/api/space/nsas/customer-management/customers/884834" uri="/api/space/nsas/customer-management/customers/884834" /> <ServiceDefinition> <ServiceDefinitionID key="7405568" href="/api/space/nsas/service-management/service-definitions/7405568" uri="/api/space/nsas/service-management/service-definitions/7405568" /> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Create an E-Line BGP Service Order with Tag Protocol ID
This request is used to create an E-Line BGP service order configured with tag protocol ID.
URI | api/space/nsas/eline-ptp/service-management/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management.service-order-status+xml |
Produces | Creates an E-Line BGP service order with tag protocol ID. |
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>TPID_P2P_BGP_SO</Name> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>jaipur</DeviceName> <DeviceID>3997755</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <OuterTPID>0x8100</OuterTPID> <InnerTPID>0x9100</InnerTPID> <VlanId>1600</VlanId> <CustomerVlanId>2000</CustomerVlanId> <MTU>1522</MTU> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>kochin</DeviceName> <DeviceID>3997704</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/7</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <OuterTPID>0x8100</OuterTPID> <InnerTPID>0x9100</InnerTPID> <VlanId>1600</VlanId> <CustomerVlanId>2000</CustomerVlanId> <MTU>1522</MTU> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterOrderType"> <RouteTarget>100:6</RouteTarget> <RouteDistinguisher>100:8</RouteDistinguisher> </ServiceOrderParameter> <Reference> <Customer key="884834" /> <ServiceDefinition> <ServiceDefinitionID key="7405568" /> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Modify a Saved E-Line Service Order with BGP
This request is used to modify a saved E-Line BGP service order.
URI | api/space/nsas/eline-ptp/service-management/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service- 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 E-Line BGP service order. |
Input (Ethernet - 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>BGP_P2P_API</Name> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/1146882" uri="/api/space/nsas/device-roles/pe-devices/1146882" key="1146882"> <DeviceName>embassy</DeviceName> <DeviceID>1146882</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/0/9</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <VlanId>15</VlanId> <MTU>1522</MTU> <Bandwidth unit="Mbps">30</Bandwidth> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/589950" uri="/api/space/nsas/device-roles/pe-devices/589950" key="589950"> <DeviceName>jaipur</DeviceName> <DeviceID>589950</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/3</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <VlanId>47</VlanId> <MTU>1522</MTU> <Bandwidth unit="Mbps">40</Bandwidth> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterOrderType"> <RouteTarget>100:7</RouteTarget> <RouteDistinguisher>100:47349775</RouteDistinguisher> <VlanNormalization>Swap</VlanNormalization> </ServiceOrderParameter> </ServiceOrder> </ServiceResource> </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 Modified Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Input (TDM–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>TDM_BGP_SO_API</Name> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/589954" uri="/api/space/nsas/device-roles/pe-devices/589954" key="589954"> <DeviceName>junos-space1</DeviceName> <DeviceID>589954</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>t1-0/0/13</InterfaceName> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/0" uri="/api/space/nsas/device-roles/pe-devices/0" key="0"> <DeviceName>UnmanagedDevice</DeviceName> <DeviceID>0</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>3/4/5</InterfaceName> <LoopbackIP>30.1.2.7</LoopbackIP> </ServiceEndPoint> </ServiceEndPointGroup> </ServiceOrder> </ServiceResource> </Data>
Output (TDM–BGP)
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 Modified Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Input (ATM–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>ATM_BGP_SO_API</Name> </Common> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/589954" uri="/api/space/nsas/device-roles/pe-devices/589954" key="589954"> <DeviceName>junos-space1</DeviceName> <DeviceID>589954</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>at-0/0/0</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPATMEndPointConfigParameterOrderType"> <VCI>17</VCI> <CellBundleSize>1</CellBundleSize> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA href="/api/space/nsas/device-roles/pe-devices/0" uri="/api/space/nsas/device-roles/pe-devices/0" key="0"> <DeviceName>UnmanagedDevice</DeviceName> <DeviceID>0</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>6/7/8</InterfaceName> <LoopbackIP>30.1.2.7</LoopbackIP> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPATMConfigParameterOrderType"> <VPI>16</VPI> <VCI>17</VCI> </ServiceOrderParameter> </ServiceOrder> </ServiceResource> </Data>
Output (ATM–BGP)
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 Modified Successfully and Validation is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Modify a Saved E-Line Service Order (Version 2)
This request is used to modify a saved E-Line service order.
URI | api/space/nsas/eline-ptp/service-management/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Modifies a saved E-Line service order. |
Input
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>BGP_Modify_SO_Via_Test02</Name> <Comments>tyut</Comments> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <Signaling>BGP</Signaling> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA key="557096" uri="/api/space/nsas/device-roles/pe-devices/557096" href="/api/space/nsas/device-roles/pe-devices/557096"> <DeviceName>embassy</DeviceName> <DeviceID>557096</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/1/9</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <UNIDescription>tyut</UNIDescription> <UnitId>16</UnitId> <VlanId>2</VlanId> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="557096" uri="/api/space/nsas/device-roles/pe-devices/557096" href="/api/space/nsas/device-roles/pe-devices/557096"> <DeviceName>embassy</DeviceName> <DeviceID>557096</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/0/9</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <UNIDescription>tyutyu</UNIDescription> <UnitId>16</UnitId> <VlanId>3</VlanId> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterOrderType"> <VlanTagToStack>1</VlanTagToStack> <MTUFactor >15</MTUFactor> </ServiceOrderParameter> <Reference> <Customer uri="/api/space/nsas/customer-management/customers/851968" href="/api/space/nsas/customer-management/customers/851968" key="851968"/> <ServiceDefinition> <ServiceDefinitionID uri="/api/space/nsas/eline-ptp/service-management/service-definitions/589824" href="/api/space/nsas/eline-ptp/service-management/service-definitions/589824" key="589824"/> </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>1507439</Value> </Identity> <Job> <ID>622660</ID> <Status>INPROGRESS</Status> </Job> <Code>200</Code> <Message>Service Order Modified Successfully and Deployment is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Modify a Saved E-Line BGP Service Order with Ethernet Option as Asymmetric Tag Depth
This request is used to modify a saved E-Line BGP service order configured with flexible VLAN tagging (asymmetric tag depth) as the Ethernet option.
URI | api/space/nsas/eline-ptp/service-management/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Modifies a saved E-Line BGP service order configured with flexible VLAN tagging (asymmetric tag depth) as the Ethernet option. |
Input
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>P2P_BGP_Asymmetric_ModifySO_API</Name> <Comments>dfdsfdsgsg</Comments> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <Signaling>BGP</Signaling> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA key="524504" uri="/api/space/nsas/device-roles/pe-devices/524504" href="/api/space/nsas/device-roles/pe-devices/524504"> <DeviceName>embassy</DeviceName> <DeviceID>524504</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/1/7</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <TrafficType>Transport using port</TrafficType> <EthernetOption>port-port</EthernetOption> <UNIDescription>rfergreg</UNIDescription> <CustomerVlanId>2</CustomerVlanId> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="524452" uri="/api/space/nsas/device-roles/pe-devices/524452" href="/api/space/nsas/device-roles/pe-devices/524452"> <DeviceName>junos-mx80-1-space</DeviceName> <DeviceID>524452</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-1/1/8</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <TrafficType>Transport using port</TrafficType> <EthernetOption>port-port</EthernetOption> <UNIDescription>dsfsdfs</UNIDescription> <CustomerVlanId>2</CustomerVlanId> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterOrderType"> <VlanNormalization>Normalize to Dot1q tag</VlanNormalization> <VlanTagToStack>1</VlanTagToStack> </ServiceOrderParameter> <Reference> <Customer key="524615"/> <ServiceDefinition> <ServiceDefinitionID key="458876"/> </ServiceDefinition> <Service key="458861"/> </Reference> </ServiceOrder> </ServiceResource> </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 Modified Successfully and Deployment is in Progress. Please check the status using the JOB ID.</Message> </Status> </Data>
Modify a Saved E-Line BGP Service Order with Static Pseudowires
This request is used to modify a saved E-Line BGP service order configured with static pseudowires.
URI | api/space/nsas/eline-ptp/service-management/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Modifies a saved E-Line BGP service order with static pseudowires. |
Input
Sample XML Input
Output
Sample XML Output
Modify a Saved E-Line BGP Service Order with Multisegment Pseudowires
This request is used to modify a saved E-Line BGP service order configured with multisegment pseudowires.
URI | api/space/nsas/eline-ptp/service-management/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Modifies a saved E-Line BGP service order with multisegment pseudowires. |
Input
Sample XML Input
Output
Sample XML Output
Modify a Saved E-Line BGP Service Order with MC-LAG Interfaces
This request is used to modify a saved E-Line BGP service order configured with MC-LAG interfaces.
URI | api/space/nsas/eline-ptp/service-management/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Modifies a saved E-Line BGP service order with MC-LAG interfaces. |
Input
Sample XML Input
Output
Sample XML Output
Get an E-Line BGP Service Order with Default Service Template By Order ID
This request is used to retrieve the details of a particular Layer 2 Ethernet Private Line (EPL, also called E-Line) BGP service order with default service template, based on the service order ID.
URI | api/space/nsas/eline-ptp/service-management/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific E-Line BGP service order with default service template. |
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder key="458865" uri="/api/space/nsas/eline-ptp/service-management/service-orders/458865" href="/api/space/nsas/eline-ptp/service-management/service-orders/458865"> <Common> <Name>Test_BGPSO_1DefTemp_API</Name> <Identity>458865</Identity> <State>Validated</State> <CreatedDate>2015-02-12T19:21:54.000+05:30</CreatedDate> <LastUpdatedDate>2015-02-12T19:21:54.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>BGP</ServiceType> <Signaling>BGP</Signaling> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA key="524393" uri="/api/space/nsas/device-roles/pe-devices/524393" href="/api/space/nsas/device-roles/pe-devices/524393"> <DeviceName>junos-space1</DeviceName> <DeviceID>524393</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/7</InterfaceName> <ServiceTemplates> <ServiceTemplate href="/api/space/nsas/eline-ptp/service-management/service-templates/66311" uri="/api/space/nsas/eline-ptp/service-management/service-templates/66311" key="66311"> <ID>66311</ID> </ServiceTemplate> <ServiceTemplate href="/api/space/nsas/eline-ptp/service-management/service-templates/66317" uri="/api/space/nsas/eline-ptp/service-management/service-templates/66317" key="66317"> <ID>66317</ID> <ConfigParams> <Name>Name</Name> <Value>testname</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key="524357" uri="/api/space/nsas/device-roles/pe-devices/524357" href="/api/space/nsas/device-roles/pe-devices/524357"> <DeviceName>junos-space2</DeviceName> <DeviceID>524357</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/6</InterfaceName> <ServiceTemplates> <ServiceTemplate href="/api/space/nsas/eline-ptp/service-management/service-templates/66311" uri="/api/space/nsas/eline-ptp/service-management/service-templates/66311" key="66311"> <ID>66311</ID> </ServiceTemplate> <ServiceTemplate href="/api/space/nsas/eline-ptp/service-management/service-templates/66317" uri="/api/space/nsas/eline-ptp/service-management/service-templates/66317" key="66317"> <ID>66317</ID> <ConfigParams> <Name>Name</Name> <Value>testname</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> </ServiceEndPointGroup> <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/eline-ptp/service-management/service-definitions/458825" href="/api/space/nsas/eline-ptp/service-management/service-definitions/458825" key="458825"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Create an E-Line BGP Service Order with Default Service Template
This request is used to create an E-Line BGP service order configured with default service template.
URI | api/space/nsas/eline-ptp/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 E-Line BGP service order configured with default service template. |
Input
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>Test_BGPSO_1DefTemp_API</Name> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <Signaling>BGP</Signaling> <Action>Provisioning</Action> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>524393</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/7</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <UNIDescription>N/A</UNIDescription> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>66317</ID> <ConfigParams> <Name>Name</Name> <Value>testname</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space2</DeviceName> <DeviceID>524357</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/6</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <UNIDescription>N/A</UNIDescription> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>66317</ID> <ConfigParams> <Name>Name</Name> <Value>testname</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> </ServiceTemplate> </ServiceTemplates> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterOrderType"> <VlanTagToStack>1</VlanTagToStack> </ServiceOrderParameter> <Reference> <Customer key="524288"/> <ServiceDefinition> <ServiceDefinitionID key="458825"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </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>
Modify an E-Line BGP Service Order with Default Service Template
This request is used to modify an E-Line BGP service order configured with default service template.
URI | api/space/nsas/eline-ptp/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 E-Line BGP 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
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>Test_BGPSO_1DefTemp_API_m2</Name> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <Signaling>BGP</Signaling> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>524393</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/7</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <UNIDescription>017m2</UNIDescription> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>66341</ID> <ConfigParams> <Name>Outer</Name> <Value>123</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> <ConfigParams> <Name>Inner</Name> <Value>123</Value> <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-space2</DeviceName> <DeviceID>524357</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/6</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <UNIDescription>016m2</UNIDescription> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>66341</ID> <ConfigParams> <Name>Outer</Name> <Value>123</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> <ConfigParams> <Name>Inner</Name> <Value>123</Value> <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> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterOrderType"> <VlanTagToStack>1</VlanTagToStack> </ServiceOrderParameter> <Reference> <Customer key="524288"/> <ServiceDefinition> <ServiceDefinitionID key="458825"/> </ServiceDefinition> </Reference> </ServiceOrder> </ServiceResource> </Data>
Sample XML Input (With XPath)
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceOrder> <Common> <Name>Test_BGPSO_1DefTemp_API_m2</Name> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <Signaling>BGP</Signaling> <ServiceEndPointGroup> <DeviceInfo> <NA> <DeviceName>junos-space1</DeviceName> <DeviceID>524393</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/7</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <UNIDescription>017m2</UNIDescription> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>66341</ID> <ConfigParams> <Name>Outer</Name> <Value>123</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> <ConfigParams> <Name>Inner</Name> <Value>123</Value> <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> <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> <DeviceInfo> <NA> <DeviceName>junos-space2</DeviceName> <DeviceID>524357</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/1/6</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineBGPEndPointConfigParameterOrderType"> <EndPointCategory>PTP</EndPointCategory> <UNIDescription>016m2</UNIDescription> </ServiceEndpointConfiguration> <ServiceTemplates> <ServiceTemplate> <ID>66341</ID> <ConfigParams> <Name>Outer</Name> <Value>123</Value> <Decommission>false</Decommission> <SvcSpecificValue>false</SvcSpecificValue> <ConfigPageName>cp1</ConfigPageName> </ConfigParams> <ConfigParams> <Name>Inner</Name> <Value>123</Value> <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> <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> <ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPConfigParameterOrderType"> <VlanTagToStack>1</VlanTagToStack> </ServiceOrderParameter> <Reference> <Customer key="524288"/> <ServiceDefinition> <ServiceDefinitionID key="458825"/> </ServiceDefinition> </Reference> </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 E-Line Service Order
This request is used to obtain the details of a specific job, based on its unique identifier.
URI | /api/space/nsas/elan-ptp/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 E-Line BGP Service Order to Create an LSP
This request is used to create an E-Line BGP service order for creating an LSP.
URL | /api/space/nsas/eline-ptp/service-management/service-orders |
HTTP Method | POST |
Sample URL | https://192.0.2.10:8443/api/space/nsas/eline-ptp/service-management/service-orders |
Accept Header | application/vnd.net.juniper.space.service-management.service-order-status+xml;version=3 |
Content Type | application/vnd.net.juniper.space.service-management.service-order+xml;version=3;charset=UTF-8 |
Request
""<?xml version=""1.0"" encoding=""UTF-8""?> <Data xmlns=""services.schema.networkapi.jmp.juniper.net""> <ServiceResource> <ServiceOrder> <Common> <Name>ELine_CreateLSP</Name> <CustomerName>Juniper</CustomerName> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <Signaling>LDP</Signaling> <Action>Provisioning</Action> <ServiceEndPointGroup> <DonotApplyDefaultTemplatesOfSD>true</DonotApplyDefaultTemplatesOfSD> <DeviceInfo> <NA> <DeviceName>SG2re</DeviceName> <DeviceID>2</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/6</InterfaceName> <InterfaceID>27</InterfaceID> <ServiceEndpointConfiguration xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""PTPElineBGPEndPointConfigParameterOrderType""> <EndPointCategory>PTP</EndPointCategory> <UnitId>123</UnitId> <VlanId>123</VlanId> <MTU>1522</MTU> <Bandwidth unit=""Mbps"">10</Bandwidth> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DonotApplyDefaultTemplatesOfSD>true</DonotApplyDefaultTemplatesOfSD> <DeviceInfo> <NA> <DeviceName>SG4re</DeviceName> <DeviceID>3</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/7</InterfaceName> <InterfaceID>52</InterfaceID> <ServiceEndpointConfiguration xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""PTPElineBGPEndPointConfigParameterOrderType""> <EndPointCategory>PTP</EndPointCategory> <UnitId>1</UnitId> <VlanId>1</VlanId> <MTU>1522</MTU> <Bandwidth unit=""Mbps"">10</Bandwidth> </ServiceEndpointConfiguration> </ServiceEndPoint> </ServiceEndPointGroup> <LspServiceDefinition> <ServiceDefinitionID key=""163841"" /> </LspServiceDefinition> <LSPPattern key=""2"" /> <ServiceOrderParameter xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""PTPConfigParameterOrderType""> <MTUFactor>10</MTUFactor> <RouteTarget AutoPick=""true"" /> <RouteDistinguisher AutoPick=""true"" /> </ServiceOrderParameter> <Reference> <Customer key=""1"" /> <ServiceDefinition> <ServiceDefinitionID key=""98304"" /> </ServiceDefinition> <Service key=""undefined"" /> </Reference> </ServiceOrder> </ServiceResource> <CustomAction xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""ServiceOrderCustomActionType""> <Action>SaveAndValidate</Action> </CustomAction> </Data>" "
Response
""<?xml version=""1.0"" encoding=""UTF-8""?> <Data xmlns=""services.schema.networkapi.jmp.juniper.net""> <Status> <Identity> <Type>ServiceOrder</Type> <Value>131073</Value> </Identity> <Job> <ID>917529</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 an E-Line BGP Service Order to Associate an LSP
This request is used to retrieve an E-Line BGP service order for associating an LSP with the service.
URL | /api/space/nsas/eline-ptp/service-management/service-orders/<orderID> |
HTTP Method | GET |
Sample URL | https://192.0.2.10:8443/api/space/nsas/eline-ptp/service-management/service-orders/131073 |
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; |
Request
Not Applicable
Response
""<?xml version=""1.0"" encoding=""UTF-8""?> <Data xmlns=""services.schema.networkapi.jmp.juniper.net""> <ServiceResource> <ServiceOrder key=""131073"" uri=""/api/space/nsas/eline-ptp/service-management/service-orders/131073"" href=""/api/space/nsas/eline-ptp/service-management/service-orders/131073""> <Common> <Name>ELine_CreateLSP</Name> <Identity>131073</Identity> <State>Validated</State> <ScheduledState>Validated</ScheduledState> <CreatedDate>2018-06-21T00:33:12.000+05:30</CreatedDate> <LastUpdatedDate>2018-06-21T00:33:12.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> <InstanceType>l2vpn</InstanceType> </Common> <ServiceType>Point-to-Point Pseudowire</ServiceType> <JobIdsList>917529</JobIdsList> <LSPPattern href=""/api/space/nsas/lsp-pattern/service-management/service-patterns/2"" uri=""/api/space/nsas/lsp-pattern/service-management/service-patterns/2"" key=""2""> <PatternName>Full Mesh Default Pattern</PatternName> <PatternID>2</PatternID> </LSPPattern> <Signaling>BGP</Signaling> <Action>Provisioning</Action> <endpointcount>0</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> <ServiceEndPoint> <InterfaceName>ge-0/0/6</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""PTPElineBGPEndPointConfigParameterOrderType""> <EndPointCategory>PTP</EndPointCategory> <TrafficType>QINQ Transport all traffic</TrafficType> <PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation> <LogicalEncapsulation>vlan-ccc</LogicalEncapsulation> <UNIDescription>N/A</UNIDescription> <OuterTPID>None</OuterTPID> <UnitId>123</UnitId> <VlanId>123</VlanId> <MTU>1522</MTU> <Bandwidth unit=""Mbps"">10</Bandwidth> </ServiceEndpointConfiguration> <ServiceTemplates /> <OppType>ADD</OppType> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceEndPointGroup> <DeviceInfo> <NA key=""3"" uri=""/api/space/nsas/device-roles/pe-devices/3"" href=""/api/space/nsas/device-roles/pe-devices/3""> <DeviceName>SG4re</DeviceName> <DeviceID>3</DeviceID> </NA> </DeviceInfo> <ServiceEndPoint> <InterfaceName>ge-0/0/7</InterfaceName> <ServiceEndpointConfiguration xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""PTPElineBGPEndPointConfigParameterOrderType""> <EndPointCategory>PTP</EndPointCategory> <TrafficType>QINQ Transport all traffic</TrafficType> <PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation> <LogicalEncapsulation>vlan-ccc</LogicalEncapsulation> <UNIDescription>N/A</UNIDescription> <OuterTPID>None</OuterTPID> <UnitId>1</UnitId> <VlanId>1</VlanId> <MTU>1522</MTU> <Bandwidth unit=""Mbps"">10</Bandwidth> </ServiceEndpointConfiguration> <ServiceTemplates /> <OppType>ADD</OppType> </ServiceEndPoint> </ServiceEndPointGroup> <ServiceOrderParameter xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""PTPConfigParameterOrderType""> <RouteTarget>100:13</RouteTarget> <RouteDistinguisher>100:16</RouteDistinguisher> <VlanNormalization>Swap</VlanNormalization> <MTUFactor>10</MTUFactor> </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/eline-ptp/service-management/service-definitions/98304"" href=""/api/space/nsas/eline-ptp/service-management/service-definitions/98304"" key=""98304""> <ServiceDefinitionName>ELine-BGP-QinQ-AllVLAN</ServiceDefinitionName> </ServiceDefinitionID> </ServiceDefinition> <Service uri=""/api/space/nsas/eline-ptp/service-management/services/196608"" href=""/api/space/nsas/eline-ptp/service-management/services/196608"" key=""196608"" /> </Reference> <LspServiceDefinition> <ServiceDefinitionID uri=""/api/space/nsas/rsvp-lsp/service-management/service-definitions/163841"" href=""/api/space/nsas/rsvp-lsp/service-management/service-definitions/163841"" key=""163841""> <ServiceDefinitionName>ns_test1</ServiceDefinitionName> </ServiceDefinitionID> </LspServiceDefinition> <LspId>131076</LspId> </ServiceOrder> </ServiceResource> </Data>" "