Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Point-to-Point BGP Service Orders Management RESTful Web Services

    The following operations can be performed using the Connectivity Services Director Point-to-Point 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/
    service-orders/<serviceOrderId>

    HTTP Method

    GET

    Consumes

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

    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/
    service-orders/<serviceOrder-Id>

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-
    management.service-order+xml;version=2

    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 P2P 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) P2P 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/
    service-orders/<serviceOrder-Id>

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-order+xml;version=2

    Produces

    Collects the details of a specific E-LINE P2P 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 P2P 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) P2P service order configured with signaling as BGP.

    URI

    api/space/nsas/eline-ptp/service-management/
    service-orders/<serviceOrder-Id>

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-order+xml;version=2

    Produces

    Collects the details of a specific E-LINE P2P 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/
    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.
    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:

    • Save (Create and only Save a SO)
    • SaveAndValidate (Create, Save, and Validate a SO) Default value when no Custom action is specified.
    • SaveAndDeployNow (Create, Save, and Deploy a SO)
    • SaveAndDeployLater (Create, Save, and Deploy Later a SO)

    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-
    management.service-order+xml;version=2;charset=UTF-8

    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:

    • Save (Create and only Save a SO)
    • SaveAndValidate (Create, Save, and Validate a SO) Default value when no Custom action is specified.
    • SaveAndDeployNow (Create, Save, and Deploy a SO)
    • SaveAndDeployLater (Create, Save, and Deploy Later a SO)

    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 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-
    management.service-order+xml

    Consumes

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

    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 a P2P BGP Service Order with Pseudowire Redundancy

    This request is used to create a P2P BGP service order configured with pseudowire redundancy.

    URI

    api/space/nsas/eline-ptp/service-management/
    service-orders/redundancy

    HTTP Method

    POST

    Content-Type

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

    Consumes

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

    Produces

    Creates a P2P 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 a P2P BGP Service Order By Order ID

    This request is used to retrieve the details of a particular P2P BGP service order based on the service order ID.

    URI

    api/space/nsas/eline-ptp/service-management/
    service-orders/<serviceOrderId>

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects the details of a specific P2P 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 P2P

    This request is used to create an E-LINE BGP service order with static pseudowires for P2P.

    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;version=2;charset=UTF-8

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-order-status+xml;version=2

    Produces

    Creates an E-LINE BGP service order with static pseudowires for P2P.

    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>
    				
    				
    	

    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.
    service-order-status+xml

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

    • DeployNow (Deploy an already created SO)
    • DeployLater (Deploy Later an already created SO)
    • ValidateNow (Validate now an already created SO)
    • ValidateLater (Validate later an already created SO)
    • PartialDeleteNow (Delete the partially created configuration now)
    • PartialDeleteLater (Delete the partially created configuration Later

    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/
    service-orders/<serviceOrder-id>

    HTTP Method

    DELETE

    Consumes

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

    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 P2P Service Order

    This request is used to view the details of a E-LINE P2P service order that are pending to be applied to a device.

    URI

    api/space/nsas/eline-ptp/service-management/service-orders/
    view-pendingorderconfiguration/<serviceOrder-id>

    HTTP Method

    GET

    Consumes

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

    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 a P2P BGP Service Order with Tag Protocol ID By Order ID

    This request is used to retrieve the details of a particular P2P BGP service order with tag protocol configured based on the service order ID.

    URI

    api/space/nsas/eline-ptp/service-management/
    service-orders/<serviceOrderId>

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects the details of a specific P2P 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 a P2P BGP Service Order with Tag Protocol ID

    This request is used to create a P2P BGP service order configured with tag protocol ID.

    URI

    api/space/nsas/eline-ptp/service-management/
    service-orders/{service-order-id}

    HTTP Method

    POST

    Content-Type

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

    Consumes

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

    Produces

    Creates a P2P 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 P2P 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/
    service-orders/<serviceOrderId>

    HTTP Method

    POST

    Content-Type

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

    Consumes

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

    For the various options in creating ServiceOrder the options must be specified in the Action Element inside OperationSpecificData. The following values can be entered:

    • Save (Create and only Save a SO)
    • SaveAndValidate (Create, Save, and Validate a SO) Default value when no Custom action is specified.
    • SaveAndDeployNow (Create, Save, and Deploy a SO)
    • SaveAndDeployLater (Create, Save, and Deploy Later a SO)

    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 P2P Service Order (Version 2)

    This request is used to modify a saved E-LINE P2P service order.

    URI

    api/space/nsas/eline-ptp/service-management/
    service-orders/<serviceOrderId>

    HTTP Method

    POST

    Content-Type

    application/vnd.net.juniper.space.service-
    management.modify-service-order+xml;version=2;charset=UTF-8

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-order-status+xml;version=2

    Produces

    Modifies a saved E-LINE P2P 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/
    service-orders/<serviceOrderId>

    HTTP Method

    POST

    Content-Type

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

    Consumes

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

    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/
    service-orders/<serviceOrderId>

    HTTP Method

    POST

    Content-Type

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

    Consumes

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

    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/
    service-orders/<serviceOrderId>

    HTTP Method

    POST

    Content-Type

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

    Consumes

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

    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/
    service-orders/<serviceOrderId>

    HTTP Method

    POST

    Content-Type

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

    Consumes

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

    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 P2P 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) P2P BGP service order with default service template, based on the service order ID.

    URI

    api/space/nsas/eline-ptp/service-management/
    service-orders/<serviceorder-Id>

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects the details of a specific E-LINE P2P 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 P2P BGP Service Order with Default Service Template

    This request is used to create an E-LINE P2P 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-
    management.service-order+xml;version=2;charset=UTF-8

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-order-status+xml;version=2

    Produces

    Creates an E-LINE P2P 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 P2P BGP Service Order with Default Service Template

    This request is used to modify an E-LINE P2P 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-
    management.modify-service-order+xml; version=2;charset=UTF-8

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-order-status+xml; version=2

    Produces

    Modifies an E-LINE P2P 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 a Point-to-Point 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-
    management/service-orders/jobId

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-
    management.service-orders+json;version=2

    Produces

    Retrieves the details of a particular job.

    Mandatory Parameters

    jobID

    Output

    Sample JSONOutput

    {
       "Data": {
          "JobDetailsType": {
             "jobDetailType": [
                {
                   "nodeName": "960R1_EN_Alok_re",
                   "statusMessage": "Endpoint cannot be provisoned since validation failed for other devices.",
                   "jobStatus": "INVALID",
                   "serviceName": "Test2Devices"
                },
                         ]
          }
       }
    }

    Modified: 2016-05-26