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 LDP Service Definitions Management RESTful Web Services

    The following operations can be performed using the Connectivity Services Director Point-to-Point LDP Service Definitions Management RESTful Web Services.

    Get All E-LINE LDP Service Definitions

    This request is used to retrieve all the configured Layer 2 Ethernet Private Line (EPL, also called E-LINE) LDP service definitions.

    URI

    api/space/nsas/eline-ptp/service-management/service-definitions

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects all the configured E-LINE LDP service definitions.

    Output

    Sample XML Output

    	<Data xmlns="services.schema.networkapi.jmp.juniper.net">			
         <ServiceResource size="19">
    	<ServiceDefinition href="/api/space/nsas/eline-ptp/service-management/service-definitions/262144" uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262144"
    	key="262144">
    		<Common>
    			<Name>ELine-QinQ-AllVLAN</Name>
    			<Identity>262144</Identity>
    			<State>Published</State>
    			<Comments>Used to deliver a point-to-point service between two remote sites, with high BW requirements.</Comments>
    			<CreatedDate>2012-06-28T15:10:55.000+05:30</CreatedDate>
    			<LastUpdatedDate>2012-06-28T15:10:55.000+05:30</LastUpdatedDate>
    			<CreatedBy>super</CreatedBy>
    		</Common>
    		<ServiceType>ELINEMartini</ServiceType>
    		<InterfaceType>ETHERNET</InterfaceType>
    		<ServiceElementConfigurationDefinition	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPServiceEndpointGroupParameterDefType" />
    		<ServiceEndPointConfigurationDefinition	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType" />
    	</ServiceDefinition>
    	<ServiceDefinition	href="/api/space/nsas/eline-ptp/service-management/service-definitions/262156"	uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262156"
    	key="262156">
    		<Common>
    			<Name>ELine-EM</Name>
    			<Identity>262156</Identity>
    			<State>Published</State>
    			<Comments>Used to deliver a point-to-point service between two remote sites on EM interface only.</Comments>
    			<CreatedDate>2012-06-28T15:10:55.000+05:30</CreatedDate>			<LastUpdatedDate>2012-06-28T15:10:55.000+05:30</LastUpdatedDate>
    			<CreatedBy>super</CreatedBy>
    		</Common>
    		<ServiceType>ELINEMartini</ServiceType>
    		<InterfaceType>ETHERNET</InterfaceType>
    		<ServiceElementConfigurationDefinition	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"	xsi:type="PTPServiceEndpointGroupParameterDefType" />
    		<ServiceEndPointConfigurationDefinition	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType" />
    	</ServiceDefinition>
    	<ServiceDefinition	href="/api/space/nsas/eline-ptp/service-management/service-definitions/262167"	uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262167"
    	key="262167">
    		<Common>
    			<Name>ELine-QinQ-AllVLAN-CCC</Name>
    			<Identity>262167</Identity>
    			<State>Published</State>
    			<Comments>Used to deliver a point-to-point service between two remote sites, with high BW requirements.</Comments>
    			<CreatedDate>2012-06-28T15:10:55.000+05:30</CreatedDate>
    			<LastUpdatedDate>2012-06-28T15:10:55.000+05:30</LastUpdatedDate>
    			<CreatedBy>super</CreatedBy>
    		</Common>
    		<ServiceType>ELINEMartini</ServiceType>
    		<InterfaceType>ETHERNET</InterfaceType>
    		<ServiceElementConfigurationDefinition	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPServiceEndpointGroupParameterDefType" />
    		<ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType" />
    	</ServiceDefinition>
    	<ServiceDefinition	href="/api/space/nsas/eline-ptp/service-management/service-definitions/262292"	uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262292"
    	key="262292">
    		<Common>
    			<Name>Static TDM pseudowire</Name>
    			<Identity>262292</Identity>
    			<State>Published</State>
    			<Comments>TDM Point to point Static pseudowire</Comments>
    			<CreatedDate>2012-06-28T15:11:00.000+05:30</CreatedDate>
    			<LastUpdatedDate>2012-06-28T15:11:00.000+05:30</LastUpdatedDate>
    			<CreatedBy>super</CreatedBy>
    		</Common>
    		<ServiceType>ELINEMartini</ServiceType>
    		<InterfaceType>ETHERNET</InterfaceType>
    		<ServiceElementConfigurationDefinition	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"	xsi:type="PTPServiceEndpointGroupParameterDefType" />
    		<ServiceEndPointConfigurationDefinition	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType" />
    	</ServiceDefinition>
    	<ServiceDefinition	href="/api/space/nsas/eline-ptp/service-management/service-definitions/262307"	uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262307"
    	key="262307">
    		<Common>
    			<Name>ATM pseudowire</Name>
    			<Identity>262307</Identity>
    			<State>Published</State>
    			<Comments>ATM Point to point pseudowire</Comments>
    			<CreatedDate>2012-06-28T15:11:00.000+05:30</CreatedDate>
    			<LastUpdatedDate>2012-06-28T15:11:00.000+05:30</LastUpdatedDate>
    			<CreatedBy>super</CreatedBy>
    		</Common>
    		<ServiceType>ELINEMartini</ServiceType>
    		<InterfaceType>ETHERNET</InterfaceType>
    		<ServiceElementConfigurationDefinition	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPServiceEndpointGroupParameterDefType" />
    		<ServiceEndPointConfigurationDefinition	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType" />
    	</ServiceDefinition>
    </ServiceResource>
    </Data>
    				

    Get All Published P2P Service Definitions

    This request is used to retrieve all the published P2P service definitions.

    URI

    All service types:

    /api/space/nsas/service-management/
    service-definitions/published

    Point-to-point :

    /api/space/nsas/eline-ptp/service-management/
    service-definitions/published

    HTTP Method

    GET

    Consumes

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

    Content Type

    application/vnd.net.juniper.space.service-management
    service-definitions+xml;charset=UTF-8

    Produces

    Collects all the published E-LINE P2P service definitions.

    Output

    Sample XML Output

    Get All Point-to-Point Service Definitions by Filter Criterion

    This request is used to retrieve all the configured point-to-point service definitions that match the specified filter criterion. You can filter and retrieve service definitions based on the name, service type, signaling type, and state.

    URI

    /api/space/nsas/eline-ptp/service-management/service-
    definitions?filteredby=State::unPublished

    /api/space/nsas/eline-ptp/service-management/service-
    definitions?filteredby=Name::CreateP2PSD01

    /api/space/nsas/eline-ptp/service-management/service-
    definitions?filteredby=ServiceType::P2P(ETHERNET)

    /api/space/nsas/eline-ptp/service-management/service-
    definitions?filteredby=Signaling::LDP

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects all the configured point-to-point service definitions that match the filter criteria

    Note: For point-to-point, Layer 3 VPN, and VPLS service definitions, the FilteredBy option can be Name, ServiceType, Signaling, and State.

    Output

    Sample XML Output

    Get All E-LINE LDP Service Definitions with Pagination

    This request is used to retrieve all the configured Layer 2 Ethernet Private Line (EPL, also called E-LINE) LDP service definitions with pagination.

    URI

    api/space/nsas/eline-ptp/service-management/
    service-definitions?start=4&limit=2

    api/space/nsas/eline-ptp/service-management/
    service-definitions?paging=(start eq 4, limit eq 2)

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects all the configured E-LINE LDP service definitions with pagination applied.

    Note: For service orders, you can sort with “sortedby=CreatedDate” and “sortedby=State”.

    For Start and Limit attributes, you can provide integer values based on your requirement to sort and filter the API output. Sortorder can be “asc” and “desc”. The SortedBy attribute differs based on the APIs. For service orders, the SortedBy option can be “CtreatedDate”, “State”. For services, the SortedBy option can be “Name”, “LastModifiedDate”. The FilteredBy attribute differs based on the APIs. For service orders, the FilteredBy option can be “Name” and “State”. For services, the FilteredBy option can be “Name”.

    If you enter “paging=(starteq 2, limit eq 3)”, which is not a single integer value, the display is according to index of records. In this case, it shows from the first indexed record to the third indexed record. If you enter "start=2&limit=3", it starts from the second record and displays the next three records in all.

    You can specify multiple key:value pairs with the FilteredBy attribute. For example, to get service orders, you can use Get ServiceOrders with Name and State as “filteredby=Name::L3VPN@@State::Invalid”. Similarly, to get service orders, you can use with Name OR state “filteredby=Name::L3VPN!! State::Invalid”.

    Output

    Sample XML Output

    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    <ServiceResource size="19">
    <ServiceDefinition
    href="/api/space/nsas/eline-ptp/service-management/service-definitions/262191"
    uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262191"
    key="262191">
    <Common>
    <Name>ELine-QinQ-VLANRange</Name>
    <Identity>262191</Identity>
    <State>Published</State>
    <Comments>Used to deliver a point-to-point service between two
    remote sites, with high BW requirements.</Comments>
    <CreatedDate>2012-06-28T15:10:57.000+05:30</CreatedDate>
    <LastUpdatedDate>2012-06-28T15:10:57.000+05:30</LastUpdatedDate>
    <CreatedBy>super</CreatedBy>
    </Common>
    <ServiceType>ELINEMartini</ServiceType>
    <InterfaceType>ETHERNET</InterfaceType>
    <ServiceElementConfigurationDefinition
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:type="PTPServiceEndpointGroupParameterDefType" />
    <ServiceEndPointConfigurationDefinition
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType" />
    </ServiceDefinition>
    <ServiceDefinition
    href="/api/space/nsas/eline-ptp/service-management/service-definitions/262205"
    uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262205"
    key="262205">
    <Common>
    <Name>ELine-QinQ-VLANRange-CCC</Name>
    <Identity>262205</Identity>
    <State>Published</State>
    <Comments>Used to deliver a point-to-point service between two
    remote sites,with high BW requirements.</Comments>
    <CreatedDate>2012-06-28T15:10:57.000+05:30</CreatedDate>
    <LastUpdatedDate>2012-06-28T15:10:57.000+05:30</LastUpdatedDate>
    <CreatedBy>super</CreatedBy>
    </Common>
    <ServiceType>ELINEMartini</ServiceType>
    <InterfaceType>ETHERNET</InterfaceType>
    <ServiceElementConfigurationDefinition
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:type="PTPServiceEndpointGroupParameterDefType" />
    <ServiceEndPointConfigurationDefinition
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType" />
    </ServiceDefinition>
    </ServiceResource>
    </Data>
    

    Get All E-LINE LDP Service Definitions with Pagination, Search, and Filter

    This request is used to retrieve all the configured Layer 2 Ethernet Private Line (EPL, also called E-LINE) LDP service definitions with pagination, and to filter the results based on the search criteria

    URI

    api/space/nsas/eline-ptp/service-management/
    service-definitions?start=4&limit=2

    api/space/nsas/eline-ptp/service-management/
    service-definitions?paging=(start eq 4, limit eq 2)

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects all the configured E-LINE LDP service definitions with pagination applied, and with a filtered result-set that matches the search criteria

    Note: For service orders, you can sort with “sortedby=CreatedDate” and “sortedby=State”.

    For Start and Limit attributes, you can provide integer values based on your requirement to sort and filter the API output. Sortorder can be “asc” and “desc”. The SortedBy attribute differs based on the APIs. For service orders, the SortedBy option can be “CtreatedDate”, “State”. For services, the SortedBy option can be “Name”, “LastModifiedDate”. The FilteredBy attribute differs based on the APIs. For service orders, the FilteredBy option can be “Name” and “State”. For services, the FilteredBy option can be “Name”.

    If you enter “paging=(starteq 2, limit eq 3)”, which is not a single integer value, the display is according to index of records. In this case, it shows from the first indexed record to the third indexed record. If you enter "start=2&limit=3", it starts from the second record and displays the next three records in all.

    You can specify multiple key:value pairs with the FilteredBy attribute. For example, to get service orders, you can use Get ServiceOrders with Name and State as “filteredby=Name::L3VPN@@State::Invalid”. Similarly, to get service orders, you can use with Name OR state “filteredby=Name::L3VPN!! State::Invalid”.

    Output

    Sample XML Output

    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    <ServiceResource size="19">
    <ServiceDefinition
    href="/api/space/nsas/eline-ptp/service-management/service-definitions/262191"
    uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262191"
    key="262191">
    <Common>
    <Name>ELine-QinQ-VLANRange</Name>
    <Identity>262191</Identity>
    <State>Published</State>
    <Comments>Used to deliver a point-to-point service between two
    remote sites, with high BW requirements.</Comments>
    <CreatedDate>2012-06-28T15:10:57.000+05:30</CreatedDate>
    <LastUpdatedDate>2012-06-28T15:10:57.000+05:30</LastUpdatedDate>
    <CreatedBy>super</CreatedBy>
    </Common>
    <ServiceType>ELINEMartini</ServiceType>
    <InterfaceType>ETHERNET</InterfaceType>
    <ServiceElementConfigurationDefinition
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:type="PTPServiceEndpointGroupParameterDefType" />
    <ServiceEndPointConfigurationDefinition
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType" />
    </ServiceDefinition>
    <ServiceDefinition
    href="/api/space/nsas/eline-ptp/service-management/service-definitions/262205"
    uri="/api/space/nsas/eline-ptp/service-management/service-definitions/262205"
    key="262205">
    <Common>
    <Name>ELine-QinQ-VLANRange-CCC</Name>
    <Identity>262205</Identity>
    <State>Published</State>
    <Comments>Used to deliver a point-to-point service between two
    remote sites,with high BW requirements.</Comments>
    <CreatedDate>2012-06-28T15:10:57.000+05:30</CreatedDate>
    <LastUpdatedDate>2012-06-28T15:10:57.000+05:30</LastUpdatedDate>
    <CreatedBy>super</CreatedBy>
    </Common>
    <ServiceType>ELINEMartini</ServiceType>
    <InterfaceType>ETHERNET</InterfaceType>
    <ServiceElementConfigurationDefinition
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:type="PTPServiceEndpointGroupParameterDefType" />
    <ServiceEndPointConfigurationDefinition
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType" />
    </ServiceDefinition>
    </ServiceResource>
    </Data>
    

    Get an E-LINE LDP Service Definition By Definition ID

    This request is used to retrieve the details of a particular Layer 2 Ethernet Private Line (EPL, also called E-LINE) LDP service definition based on the service definition ID.

    URI

    api/space/nsas/eline-ptp/service-management/
    service-definitions/<servicedefinition-Id>

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects the details of a specific E-LINE LDP service definition.

    Output

    Sample XML Output

    				      
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <ServiceResource>
        <ServiceDefinition href="/api/space/nsas/eline-ptp/service-management/service-definitions/393618" uri="/api/space/nsas/eline-ptp/service-management/service-definitions/393618" key="393618">
        <Common>
        <Name>P2P_LDP_PortToPortTest_Via_API</Name>
        <Identity>393618</Identity>
        <State>Unpublished</State>
        <Comments>P2P_LDP_PortToPort test</Comments>
        <CreatedDate>2014-03-12T18:20:13.000+05:30</CreatedDate>
        <LastUpdatedDate>2014-03-12T18:20:13.000+05:30</LastUpdatedDate>
        <CreatedBy>super</CreatedBy>
        </Common>
        <ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
        <InterfaceType>Ethernet</InterfaceType>
        <EnableL3Access>false</EnableL3Access>
        <PWResiliency>false</PWResiliency>
        <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPServiceEndpointGroupParameterDefType">
        <VCID default="1" selection="Auto pick" editable="true" min="1" max="4294967296"/>
        <MTU default="1522" editable="true" min="1522" max="9192"/>
        <VlanNormalization>Normalization not required</VlanNormalization>
        </ServiceElementConfigurationDefinition>
        <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType">
        <EthernetOption>port-port</EthernetOption>
        <VlanIdSelection editable="false"/>
        <TrafficType>N/A</TrafficType>
        <VlanIdAuto default="0" min="0" max="0"/>
        <VlanIdManual default="0" min="0" max="0"/>
        <PhysicalEncapsulation>ethernet-ccc</PhysicalEncapsulation>
        <LogicalEncapsulation/>
        <MTU default="1522" editable="true" min="1522" max="9192"/>
        <EnableRateLimiting>Enabled</EnableRateLimiting>
        <DefaultBandwidth default="1" editable="true" min="1" max="100" unit="Mbps">10</DefaultBandwidth>
        <MinBandwidth min="64" max="100000" unit="Kbps">1000</MinBandwidth>
        <MaxBandwidth min="1" max="100000" unit="Mbps">100</MaxBandwidth>
        <Increment default="64" min="64" max="100000" unit="Kbps">1000</Increment>
        </ServiceEndPointConfigurationDefinition>
        </ServiceDefinition>
        </ServiceResource>
        </Data>
    				
    
    				

    Get E-LINE LDP Service Definition Details for Multi-Segment Pseudowires By Definition ID

    This request is used to retrieve the details of a particular Layer 2 Ethernet Private Line (EPL, also called E-LINE) LDP service definition with a multi-segment pseudowire based on the service definition ID.

    URI

    api/space/nsas/eline-ptp/service-management/
    service-definitions/<servicedefinition-Id>

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects the details of a specific E-LINE LDP service definition with a multi-segment pseudowire.

    Output

    Sample XML Output

    	 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <ServiceResource>
        <ServiceDefinition key="393544" uri="/api/space/nsas/eline-ptp/service-management/service-definitions/393544" href="/api/space/nsas/eline-ptp/service-management/service-definitions/393544">
        <Common>
        <Name>P2P_LDP_Multiseg_SD</Name>
        <Identity>393544</Identity>
        <State>Published</State>
        <Comments>rewterter</Comments>
        <CreatedDate>2014-10-15T12:01:47.000+05:30</CreatedDate>
        <LastUpdatedDate>2014-10-15T12:01:47.000+05:30</LastUpdatedDate>
        <CreatedBy>super</CreatedBy>
        </Common>
        <ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
        <InterfaceType>Ethernet</InterfaceType>
        <StaticpseudoWire>false</StaticpseudoWire>
        <EnableL3Access>false</EnableL3Access>
        <MultiSegmentPseudowire>true</MultiSegmentPseudowire>
        <PWResiliency>false</PWResiliency>
        <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPServiceEndpointGroupParameterDefType">
        <VCID max="4294967296" min="1" editable="false" selection="Auto pick" default="1"/>
        <MTU max="9192" min="1522" editable="false" default="1522"/>
        <VlanNormalization>Normalization not required</VlanNormalization>
        <OutGoingLabel/>
        </ServiceElementConfigurationDefinition>
        <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType">
        <EthernetOption>port-port</EthernetOption>
        <VlanIdSelection editable="false"/>
        <TrafficType>N/A</TrafficType>
        <VlanIdAuto max="0" min="0" default="0"/>
        <VlanIdManual max="0" min="0" default="0"/>
        <PhysicalEncapsulation>ethernet-ccc</PhysicalEncapsulation>
        <LogicalEncapsulation/>
        <MTU max="9192" min="1522" editable="false" default="1522"/>
        <EnableRateLimiting>Enabled</EnableRateLimiting>
        <DefaultBandwidth unit="Mbps" max="100" min="1" editable="false" default="1">10</DefaultBandwidth>
        <MinBandwidth unit="Kbps" max="100000" min="64">0</MinBandwidth>
        <MaxBandwidth unit="Mbps" max="100000" min="1">0</MaxBandwidth>
        <Increment unit="Kbps" max="100000" min="64" default="64">0</Increment>
        <CalculateBurstSizeType>MTU Based</CalculateBurstSizeType>
        <MTUFactor editable="false">10</MTUFactor>
        </ServiceEndPointConfigurationDefinition>
        </ServiceDefinition>
        </ServiceResource>
        </Data>
    		
    
    				

    Get E-LINE LDP Service Definition Details for Static Pseudowires By Definition ID

    This request is used to retrieve the details of a particular Layer 2 Ethernet Private Line (EPL, also called E-LINE) LDP service definition with a static pseudowire based on the service definition ID.

    URI

    api/space/nsas/eline-ptp/service-management/service-definitions/
    <servicedefinition-Id>

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects the details of a specific E-LINE LDP service definition with a static pseudowire.

    Output

    Sample XML Output

       <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <ServiceResource>
        <ServiceDefinition key="393544" uri="/api/space/nsas/eline-ptp/service-management/service-definitions/393544" href="/api/space/nsas/eline-ptp/service-management/service-definitions/393544">
        <Common>
        <Name>P2P_LDP_E_SPW_SD</Name>
        <Identity>393544</Identity>
        <State>Published</State>
        <Comments>ewrwe</Comments>
        <CreatedDate>2014-09-18T11:19:51.000+05:30</CreatedDate>
        <LastUpdatedDate>2014-09-18T11:19:51.000+05:30</LastUpdatedDate>
        <CreatedBy>super</CreatedBy>
        </Common>
        <ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
        <InterfaceType>Ethernet</InterfaceType>
        <StaticpseudoWire>true</StaticpseudoWire>
        <EnableL3Access>false</EnableL3Access>
        <PWResiliency>false</PWResiliency>
        <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPServiceEndpointGroupParameterDefType">
        <VCID max="4294967296" min="1" editable="false" selection="Auto pick" default="1"/>
        <MTU max="9192" min="1522" editable="false" default="1522"/>
        <VlanNormalization>Normalize to QinQ tags</VlanNormalization>
        <OutGoingLabel>Select manually</OutGoingLabel>
        </ServiceElementConfigurationDefinition>
        <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType">
        <EthernetOption>qinq</EthernetOption>
        <VlanIdSelection editable="false" selection="Auto pick"/>
        <TrafficType>Transport single vlan</TrafficType>
        <VlanIdAuto max="0" min="0" default="0"/>
        <VlanIdManual max="0" min="0" default="0"/>
        <PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation>
        <LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
        <MTU max="9192" min="1522" editable="false" default="1522"/>
        <EnableRateLimiting>Not enabled</EnableRateLimiting>
        <DefaultBandwidth unit="Mbps" max="100" min="1" editable="false" default="1">N/A</DefaultBandwidth>
        <MinBandwidth unit="Kbps" max="100000" min="64">0</MinBandwidth>
        <MaxBandwidth unit="Mbps" max="100000" min="1">0</MaxBandwidth>
        <Increment unit="Kbps" max="100000" min="64" default="64">0</Increment>
        <CalculateBurstSizeType>MTU Based</CalculateBurstSizeType>
        <MTUFactor editable="false">10</MTUFactor>
        </ServiceEndPointConfigurationDefinition>
        </ServiceDefinition>
        </ServiceResource>
        </Data>
    
    
    				

    Get E-LINE P2P Service Definition Details with Normalization Support By Definition ID

    This request is used to retrieve the details of a particular Layer 2 Ethernet Private Line (EPL, also called E-LINE) P2P service definition configured with normalization of VLANs, based on the service definition ID.

    URI

    api/space/nsas/eline-ptp/service-management/service-definitions/
    <servicedefinition-Id>

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects the details of a specific E-LINE P2P service definition configured with normalization of VLANs.

    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>
        <ServiceDefinition key="1867845" uri="/api/space/nsas/eline-ptp/service-management/service-definitions/1867845" href="/api/space/nsas/eline-ptp/service-management/service-definitions/1867845">
        <Common>
                            <Name>P2P_LDP_ BrustPeriod</Name>
                             <Identity>1867845</Identity>
                            <State>Published</State>
                             <Comments>ertert</Comments>
                             <CreatedDate>2014-06-23T12:36:23.000+05:30</CreatedDate>
                             <LastUpdatedDate>2014-06-23T12:36:23.000+05:30</LastUpdatedDate>
                             <CreatedBy>super</CreatedBy>
        </Common>
        <ServiceType>Point-to-Point Pseudowire (LDP)</ServiceType>
        <InterfaceType>Ethernet</InterfaceType>
        <EnableL3Access>false</EnableL3Access>
        <PWResiliency>false</PWResiliency>
        <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPServiceEndpointGroupParameterDefType">
        <VCID max="4294967296" min="1" editable="false" selection="Auto pick" default="1"/>
        <MTU max="9192" min="1522" editable="false" default="1522"/>
        <VlanNormalization> Normalize to QinQ tags </VlanNormalization>
        </ServiceElementConfigurationDefinition>
        <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType">
        <EthernetOption>port-port</EthernetOption>
        <VlanIdSelection editable="false"/>
        <TrafficType>N/A</TrafficType>
        <VlanIdAuto max="0" min="0" default="0"/>
        <VlanIdManual max="0" min="0" default="0"/>
        <PhysicalEncapsulation>ethernet-ccc</PhysicalEncapsulation>
        <LogicalEncapsulation/>
        <MTU max="9192" min="1522" editable="false" default="1522"/>
        < CalculateBurstSizeType>Line Rate Based</ CalculateBurstSizeType>
        <BurstPeriod  editable="true">10</BurstPeriod>
        <EnableRateLimiting>Not enabled</EnableRateLimiting>
        <DefaultBandwidth unit="Mbps" max="100" min="1" editable="false" default="1">N/A</DefaultBandwidth>
        <MinBandwidth unit="Kbps" max="100000" min="64">0</MinBandwidth>
        <MaxBandwidth unit="Mbps" max="100000" min="1">0</MaxBandwidth>
        <Increment unit="Kbps" max="100000" min="64" default="64">0</Increment>
        </ServiceEndPointConfigurationDefinition>
        </ServiceDefinition>
        </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>
        <ServiceDefinition key="1867845" uri="/api/space/nsas/eline-ptp/service-management/service-definitions/1867845" href="/api/space/nsas/eline-ptp/service-management/service-definitions/1867845">
        <Common>
                            <Name>P2P_LDP_ MTUBased</Name>
                             <Identity>1867845</Identity>
                            <State>Published</State>
                             <Comments>ertert</Comments>
                             <CreatedDate>2014-06-23T12:36:23.000+05:30</CreatedDate>
                              <LastUpdatedDate>2014-06-23T12:36:23.000+05:30</LastUpdatedDate>
                             <CreatedBy>super</CreatedBy>
        </Common>
        <ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
        <InterfaceType>Ethernet</InterfaceType>
        <EnableL3Access>false</EnableL3Access>
        <PWResiliency>false</PWResiliency>
        <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPServiceEndpointGroupParameterDefType">
        <VCID max="4294967296" min="1" editable="false" selection="Auto pick" default="1"/>
        <MTU max="9192" min="1522" editable="false" default="1522"/>
        <VlanNormalization> Normalize to Dot1Q tag </VlanNormalization>
        </ServiceElementConfigurationDefinition>
        <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType">
        <EthernetOption>port-port</EthernetOption>
        <VlanIdSelection editable="false"/>
        <TrafficType>N/A</TrafficType>
        <VlanIdAuto max="0" min="0" default="0"/>
        <VlanIdManual max="0" min="0" default="0"/>
        <PhysicalEncapsulation>ethernet-ccc</PhysicalEncapsulation>
        <LogicalEncapsulation/>
        <MTU max="9192" min="1522" editable="false" default="1522"/>
        <CalculateBurstSizeType>MTU Based</CalculateBurstSizeType>
        <MTUFactor  editable="true">10</MTUFactor>
        <EnableRateLimiting>Not enabled</EnableRateLimiting>
        <DefaultBandwidth unit="Mbps" max="100" min="1" editable="false" default="1">N/A</DefaultBandwidth>
        <MinBandwidth unit="Kbps" max="100000" min="64">0</MinBandwidth>
        <MaxBandwidth unit="Mbps" max="100000" min="1">0</MaxBandwidth>
        <Increment unit="Kbps" max="100000" min="64" default="64">0</Increment>
        </ServiceEndPointConfigurationDefinition>
        </ServiceDefinition>
        </ServiceResource>
        </Data>
    
     
    

    Get E-LINE LDP TDM Service Definition Details with CESoPSN Support By Definition ID

    This request is used to retrieve the details of a particular EPL or E-LINE LDP service definition configured with time division multiplexed (TDM) Circuit Emulation Service over Packet-Switched Network (CESoPSN), based on the service definition ID.

    URI

    api/space/nsas/eline-ptp/service-management/service-definitions/
    <servicedefinition-Id>

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects the details of a specific E-LINE LDP service definition with TDM CESoPSN configured.

    Output

    Sample XML Output

        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <ServiceResource>
        <ServiceDefinition href="/api/space/nsas/eline-ptp/service-management/service-definitions/393921" uri="/api/space/nsas/eline-ptp/service-management/service-definitions/393921" key="393921">
        <Common>
        <Name>P2P_LDM_TDM_CESoPSN_Test</Name>
        <Identity>393921</Identity>
        <State>Unpublished</State>
        <Comments>werewr</Comments>
        <CreatedDate>2014-03-24T19:14:55.000+05:30</CreatedDate>
        <LastUpdatedDate>2014-03-24T19:14:55.000+05:30</LastUpdatedDate>
        <CreatedBy>super</CreatedBy>
        </Common>
        <ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
        <InterfaceType>TDM</InterfaceType>
        <StaticpseudoWire>false</StaticpseudoWire>
        <PWResiliency>false</PWResiliency>
        <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPTDMServiceEndpointGroupParameterDefType">
        <VCID default="1" selection="Auto pick" editable="true" min="1" max="4294967296"/>
        <MTU default="1522" editable="false" min="" max=""/>
        <OutGoingLabel/>
        </ServiceElementConfigurationDefinition>
        <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPTDMEndPointParameterDefType">
        <PhysicalEncapsulation>cesopsn</PhysicalEncapsulation>
        <JitterBuffer editable="true">5</JitterBuffer>
        <IdlePattern editable="true" min="0" max="255">255</IdlePattern>
        <ExcessPacketLossRate editable="true" min="0" max="100">20</ExcessPacketLossRate>
        </ServiceEndPointConfigurationDefinition>
        </ServiceDefinition>
        </ServiceResource>
        </Data>
    
     
     
    

    Get E-LINE LDP TDM Service Definition Details with Multi-Segment Pseudowire By Definition ID

    This request is used to retrieve the details of a particular E-LINE LDP service definition configured that contains TDM interfaces with multi-segment pseudowires for P2P LDP TDM, based on the service definition ID.

    URI

    api/space/nsas/eline-ptp/service-management/
    service-definitions/<servicedefinition-Id>

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects the details of a specific E-LINE LDP service definition with TDM interfaces and a multi-segment pseudowire.

    Output

    Sample XML Output

      <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <ServiceResource>
        <ServiceDefinition key="3407971" uri="/api/space/nsas/eline-ptp/service-management/service-definitions/3407971" href="/api/space/nsas/eline-ptp/service-management/service-definitions/3407971">
        <Common>
        <Name>TDM_MultiSeg_SD</Name>
        <Identity>3407971</Identity>
        <State>Published</State>
        <Comments>reterte</Comments>
        <CreatedDate>2014-10-20T19:18:26.000+05:30</CreatedDate>
        <LastUpdatedDate>2014-10-20T19:18:26.000+05:30</LastUpdatedDate>
        <CreatedBy>super</CreatedBy>
        </Common>
        <ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
        <InterfaceType>TDM</InterfaceType>
        <StaticpseudoWire>false</StaticpseudoWire>
        <MultiSegmentPseudowire>true</MultiSegmentPseudowire>
        <PWResiliency>false</PWResiliency>
        <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPTDMServiceEndpointGroupParameterDefType">
        <VCID max="4294967296" min="1" editable="false" selection="Auto pick" default="1"/>
        <MTU max="9192" min="1522" editable="false" default="1522"/>
        <OutGoingLabel/>
        </ServiceElementConfigurationDefinition>
        <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPTDMEndPointParameterDefType">
        <PhysicalEncapsulation>satop</PhysicalEncapsulation>
        <JitterBuffer editable="false">5</JitterBuffer>
        <IdlePattern max="255" min="0" editable="false">255</IdlePattern>
        <ExcessPacketLossRate max="100" min="0" editable="false">20</ExcessPacketLossRate>
        <PayloadSize editable="false">192</PayloadSize>
        </ServiceEndPointConfigurationDefinition>
        </ServiceDefinition>
        </ServiceResource>
       
    
    
        </Data>
    
     
     
    

    Get E-LINE LDP ATM Service Definition Details with Multi-Segment Pseudowire By Definition ID

    This request is used to retrieve the details of a particular E-LINE LDP service definition configured that contains ATM interfaces with multi-segment pseudowires for P2P LDP ATM, based on the service definition ID.

    URI

    api/space/nsas/eline-ptp/service-management/
    service-definitions/<servicedefinition-Id>

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects the details of a specific E-LINE LDP service definition with ATM interfaces and a multi-segment pseudowire.

    Output

    Sample XML Output

         <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <ServiceResource>
        <ServiceDefinition key="3407991" uri="/api/space/nsas/eline-ptp/service-management/service-definitions/3407991" href="/api/space/nsas/eline-ptp/service-management/service-definitions/3407991">
        <Common>
        <Name>ATM_SD</Name>
        <Identity>3407991</Identity>
        <State>Published</State>
        <Comments>fgdfgdg</Comments>
        <CreatedDate>2014-10-20T19:21:57.000+05:30</CreatedDate>
        <LastUpdatedDate>2014-10-20T19:21:57.000+05:30</LastUpdatedDate>
        <CreatedBy>super</CreatedBy>
        </Common>
        <ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
        <InterfaceType>ATM</InterfaceType>
        <StaticpseudoWire>false</StaticpseudoWire>
        <MultiSegmentPseudowire>true</MultiSegmentPseudowire>
        <PWResiliency>false</PWResiliency>
        <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPATMServiceEndpointGroupParameterDefType">
        <VCID max="4294967296" min="1" editable="false" selection="Auto pick" default="1"/>
        <MTU max="9192" min="1522" editable="false" default="1522"/>
        <OutGoingLabel/>
        </ServiceElementConfigurationDefinition>
        <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPATMEndPointParameterDefType">
        <PhysicalEncapsulation>atm-ccc-cell-relay</PhysicalEncapsulation>
        <VPISelection editable="false" selection="Select manually"/>
        <VCISelection editable="false" selection="Select manually"/>
        <CellBundleSize max="176" min="1" editable="false">1</CellBundleSize>
        </ServiceEndPointConfigurationDefinition>
        </ServiceDefinition>
        </ServiceResource>
        </Data>
    
    
        </Data>
    
     
     
    

    Create an E-LINE LDP Service Definition with Ethernet Option as Asymmetric Tag Depth

    This request is used to create an E-LINE LDP service definition configured with flexible VLAN tagging (asymmetric tag depth) as the Ethernet option.

    URI

    api/space/nsas/eline-ptp/service-management/service-definitions/

    HTTP Method

    POST

    Content-Type

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

    Consumes

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

    Produces

    Creates an E-LINE LDP service definition 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>
    <ServiceDefinition>
    <Common>
                <Name>P2P_LDP_Asymmetric_SD_API</Name>
                <Comments>asdsad</Comments>
    </Common>
    <ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
    <InterfaceType>Ethernet</InterfaceType>
    <StaticpseudoWire>false</StaticpseudoWire>
    <EnableL3Access>false</EnableL3Access>
    <PWResiliency>false</PWResiliency>
    <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPServiceEndpointGroupParameterDefType">
    <VCID max="4294967296" min="1" editable="false" selection="Auto pick" default="1"/>
    <MTU  editable="false" default="1522"/>
    <VlanNormalization>Normalize to Dot1q tag</VlanNormalization>
    <OutGoingLabel/>
    </ServiceElementConfigurationDefinition>
    <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType">
    <EthernetOption>asymmetric tag depth</EthernetOption>
    <VlanIdSelection editable="false" selection="Auto pick"/>
    <TrafficType>Transport single vlan</TrafficType>
    <VlanIdAuto max="0" min="0" default="0"/>
    <VlanIdManual max="0" min="0" default="0"/>
    <PhysicalEncapsulation>extended-vlan-ccc</PhysicalEncapsulation>
    <LogicalEncapsulation>extended-vlan-ccc</LogicalEncapsulation>
    <MTU  editable="false" default="1522"/>
    <EnableRateLimiting>Enabled</EnableRateLimiting>
    <DefaultBandwidth unit="Mbps" max="100" min="1" editable="false" default="1">10</DefaultBandwidth>
    <MinBandwidth unit="Kbps" max="100000" min="64">0</MinBandwidth>
    <MaxBandwidth unit="Mbps" max="100000" min="1">0</MaxBandwidth>
    <Increment unit="Kbps" max="100000" min="64" default="64">0</Increment>
    <CalculateBurstSizeType>MTU Based</CalculateBurstSizeType>
    <MTUFactor editable="false">10</MTUFactor>
    </ServiceEndPointConfigurationDefinition>
    </ServiceDefinition>
    </ServiceResource>
    </Data>
    
    
    				

    Output

    Sample XML Output

    	
    				
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <Status>
        <Identity>
        <Type>ServiceDefinition</Type>
        <Value>393618</Value>
        </Identity>
        <Code>200</Code>
        <Message>ServiceDefinition Created Successfully</Message>
        </Status>  
     </Data>
    	

    Create an E-LINE LDP Service Definition with Ethernet Interfaces

    This request is used to create an E-LINE LDP service definition configured with Ethernet interfaces.

    URI

    api/space/nsas/eline-ptp/service-management/service-definitions/

    HTTP Method

    POST

    Content-Type

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

    Consumes

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

    Produces

    Creates an E-LINE LDP service definition configured with interfaces that contain Ethernet encapsulation.

    Input

    Sample XML Input

    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceDefinition>
    			<Common>
    				<Name>P2P_LDP_PortToPortTest_Via_API</Name>
    				<Comments>P2P_LDP_PortToPort test</Comments>
    			</Common>
    			 <ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
                             <InterfaceType>Ethernet</InterfaceType>
                             <EnableL3Access>false</EnableL3Access>
                             <PWResiliency>false</PWResiliency>
    			<ServiceElementConfigurationDefinition   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:type="PTPServiceEndpointGroupParameterDefType">
    	<VCID default="1" selection="Auto pick" editable="true" min="1" max="4294967296" />
    				<MTU default="1522" editable="true" min="1522" max="9192" />
    				<VlanNormalization>Normalization not required</VlanNormalization>
    			</ServiceElementConfigurationDefinition>	
    			<ServiceEndPointConfigurationDefinition
                                              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                       xsi:type="PTPEndPointParameterDefType">
    				<EthernetOption>port-port</EthernetOption>
                                    <VlanIdAuto default="0" min="0" max="0" />
    				<VlanIdManual default="0" min="0" max="0" />
    				<PhysicalEncapsulation>ethernet-ccc</PhysicalEncapsulation>
    				<MTU default="1522" editable="true" min="1522" max="9192" />
    				<EnableRateLimiting>Enabled</EnableRateLimiting>
    				<DefaultBandwidth default="1" editable="true" min="1"
    					max="100" unit="Mbps">10</DefaultBandwidth>
    				<MinBandwidth min="64" max="100000" unit="Kbps">1000
    				</MinBandwidth>
    				<MaxBandwidth min="1" max="100000" unit="Mbps">100
    				</MaxBandwidth>
    				<Increment default="64" min="64" max="100000" unit="Kbps">1000
    				</Increment>
    			</ServiceEndPointConfigurationDefinition>
    		</ServiceDefinition>
    	</ServiceResource>
    </Data>			
    
    
    				

    Output

    Sample XML Output

    	
    				
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <Status>
        <Identity>
        <Type>ServiceDefinition</Type>
        <Value>393618</Value>
        </Identity>
        <Code>200</Code>
        <Message>ServiceDefinition Created Successfully</Message>
        </Status>  
     </Data>
    	

    Create an E-LINE LDP Ethernet Service Definition with Multi-Segment Pseudowire

    This request is used to create an E-LINE LDP service definition for Ethernet interfaces with multi-segment pseudowires.

    URI

    api/space/nsas/eline-ptp/service-management/service-definitions/

    HTTP Method

    POST

    Content-Type

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

    Consumes

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

    Produces

    Creates an E-LINE LDP service definition for Ethernet interfaces with multi-segment pseudowires.

    Input

    Sample XML Input

     <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <ServiceResource>
        <ServiceDefinition>
        <Common>
        <Name>P2P_LDP_Multiseg_SD_API</Name>
         <Comments>rewterter</Comments>
           </Common>
        <ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
        <InterfaceType>Ethernet</InterfaceType>
        <StaticpseudoWire>false</StaticpseudoWire>
        <EnableL3Access>false</EnableL3Access>
        <MultiSegmentPseudowire>true</MultiSegmentPseudowire>
        <PWResiliency>false</PWResiliency>
        <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPServiceEndpointGroupParameterDefType">
        <VCID max="4294967296" min="1" editable="false" selection="Auto pick" default="1"/>
        <MTU  editable="false" default="1522"/>
        <VlanNormalization>Normalization not required</VlanNormalization>
        </ServiceElementConfigurationDefinition>
        <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType">
        <EthernetOption>port-port</EthernetOption>
          <PhysicalEncapsulation>ethernet-ccc</PhysicalEncapsulation>
          <MTU editable="false" default="1522"/>
        <EnableRateLimiting>Enabled</EnableRateLimiting>
        <DefaultBandwidth unit="Mbps" max="100" min="1" editable="false" default="1">10</DefaultBandwidth>
        <MinBandwidth unit="Kbps" max="100000" min="64">0</MinBandwidth>
        <MaxBandwidth unit="Mbps" max="100000" min="1">0</MaxBandwidth>
        <Increment unit="Kbps" max="100000" min="64" default="64">0</Increment>
        <CalculateBurstSizeType>MTU Based</CalculateBurstSizeType>
        <MTUFactor editable="false">10</MTUFactor>
        </ServiceEndPointConfigurationDefinition>
        </ServiceDefinition>
        </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>ServiceDefinition</Type>
        <Value>3932160</Value>
        </Identity>
        <Code>200</Code>
        <Message>ServiceDefinition Created Successfully</Message>
        </Status>
        </Data>
    
    
    	

    Create an E-LINE P2P Service Definition with VLAN Normalization

    This request is used to create an E-LINE P2P service definition configured with VLAN normalization types.

    URI

    api/space/nsas/eline-ptp/service-management/service-definitions/

    HTTP Method

    POST

    Content-Type

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

    Consumes

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

    Produces

    Creates an E-LINE P2P service definition configured with VLAN normalization types.

    Input (VLAN Normalization: Normalize to QinQ tags)

    Sample XML Input

        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <ServiceResource>
        <ServiceDefinition >
        <Common>
        <Name>P2P_LDP_BurstSizeCal_lnrtbased_QinQ_API01</Name>
          <Comments>hgjghjhgjg</Comments>
          </Common>
        <ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
        <InterfaceType>Ethernet</InterfaceType>
        <EnableL3Access>false</EnableL3Access>
        <PWResiliency>false</PWResiliency>
        <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPServiceEndpointGroupParameterDefType">
        <VCID max="4294967296" min="1" editable="false" selection="Auto pick" default="1"/>
        <MTU  editable="false" default="1522"/>
        <VlanNormalization>Normalize to QinQ tags</VlanNormalization>
        </ServiceElementConfigurationDefinition>
        <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType">
        <EthernetOption>qinq</EthernetOption>
        <VlanIdSelection editable="false" selection="Auto pick"/>
        <TrafficType>Transport single vlan</TrafficType>
        <VlanIdAuto max="0" min="0" default="0"/>
        <VlanIdManual max="0" min="0" default="0"/>
        <PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation>
        <LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
        <MTU  editable="false" default="1522"/>
         <OuterTagProtocolId editable="false">0x88a8</OuterTagProtocolId>
        <InnerTagProtocolId editable="false">0x88a8</InnerTagProtocolId>
        <CalculateBurstSizeType>Line Rate Based</CalculateBurstSizeType>
        <BurstPeriod editable="false">50</BurstPeriod>
        </ServiceEndPointConfigurationDefinition>
        </ServiceDefinition>
        </ServiceResource>
        </Data>
    
    

    Input (VLAN Normalization: Normalize to dot1Q tags)

    Sample XML Input

         <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <ServiceResource>
               <ServiceDefinition>
                        <Common>
                                      <Name>P2P_LDP_dot1q_BurstsizeCal_MTUBased_API</Name>
                                    <Comments>rteretr</Comments>
                      </Common>
        <ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
        <InterfaceType>Ethernet</InterfaceType>
        <EnableL3Access>false</EnableL3Access>
        <PWResiliency>false</PWResiliency>
        <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPServiceEndpointGroupParameterDefType">
        <VCID max="4294967296" min="1" editable="false" selection="Auto pick" default="1"/>
        <MTU  editable="false" default="1522"/>
        <VlanNormalization>Normalize to Dot1q tag</VlanNormalization>
        </ServiceElementConfigurationDefinition>
        <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType">
        <EthernetOption>dot1q</EthernetOption>
        <VlanIdSelection editable="false" selection="Auto pick"/>
        <TrafficType>Transport single vlan</TrafficType>
        <VlanIdAuto max="0" min="0" default="0"/>
        <VlanIdManual max="0" min="0" default="0"/>
        <PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation>
        <LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
        <MTU  editable="false" default="1522"/>
        <OuterTagProtocolId editable="false">0x88a8</OuterTagProtocolId>
        <CalculateBurstSizeType>MTU Based</CalculateBurstSizeType>
        <MTUFactor editable="false">24</MTUFactor>
        </ServiceEndPointConfigurationDefinition>
        </ServiceDefinition>
        </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>ServiceDefinition</Type>
        <Value>393583</Value>
        </Identity>
        <Code>200</Code>
        <Message>ServiceDefinition Created Successfully</Message>
        </Status>
        </Data>
    
        
     
     
    

    Create an E-LINE LDP TDM Service Definition with CESoPSN

    This request is used to create an E-LINE LDP service definition with time division multiplexed (TDM) Circuit Emulation Service over Packet-Switched Network (CESoPSN).

    URI

    api/space/nsas/eline-ptp/service-management/service-definitions/

    HTTP Method

    POST

    Content-Type

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

    Consumes

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

    Produces

    Creates an E-LINE LDP service definition with time division multiplexed (TDM) Circuit Emulation Service over Packet-Switched Network (CESoPSN).

    Input

    Sample XML Input

     <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <ServiceResource>
        <ServiceDefinition>
        <Common>
        <Name>P2P_LDM_TDM_CESoPSN_Test</Name>
         <Comments>werewr</Comments>
         </Common>
        <ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
        <InterfaceType>TDM</InterfaceType>
        <StaticpseudoWire>false</StaticpseudoWire>
        <PWResiliency>false</PWResiliency>
        <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPTDMServiceEndpointGroupParameterDefType">
        <VCID default="1" selection="Auto pick" editable="true" min="1" max="4294967296"/>
        <MTU default="1522" editable="false" />
        <OutGoingLabel/>
        </ServiceElementConfigurationDefinition>
        <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPTDMEndPointParameterDefType">
        <PhysicalEncapsulation>cesopsn</PhysicalEncapsulation>
        <JitterBuffer editable="true">5</JitterBuffer>
        <IdlePattern editable="true" min="0" max="255">255</IdlePattern>
        <ExcessPacketLossRate editable="true" min="0" max="100">20</ExcessPacketLossRate>
        </ServiceEndPointConfigurationDefinition>
        </ServiceDefinition>
        </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>ServiceDefinition</Type>
        <Value>393921</Value>
        </Identity>
        <Code>200</Code>
        <Message>ServiceDefinition Created Successfully</Message>
        </Status>
        </Data>
     
     
     
    

    Create an E-LINE LDP TDM Service Definition with Multi-Segment Pseudowire for P2P

    This request is used to create an E-LINE LDP service definition with TDM interfaces and multi-segment pseudowires for P2P.

    URI

    api/space/nsas/eline-ptp/service-management/service-definitions/

    HTTP Method

    POST

    Content-Type

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

    Consumes

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

    Produces

    Creates an E-LINE LDP service definition with TDM interfaces and multi-segment pseudowires for P2P.

    Input

    Sample XML Input

         <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <ServiceResource>
        <ServiceDefinition>
        <Common>
        <Name>TDM_MultiSeg_SD_API01</Name>
         <Comments>reterte</Comments>
          </Common>
        <ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
        <InterfaceType>TDM</InterfaceType>
        <StaticpseudoWire>false</StaticpseudoWire>
        <MultiSegmentPseudowire>true</MultiSegmentPseudowire>
        <PWResiliency>false</PWResiliency>
        <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPTDMServiceEndpointGroupParameterDefType">
        <VCID max="4294967296" min="1" editable="false" selection="Auto pick" default="1"/>
        <MTU editable="false" default="1522"/>
        <OutGoingLabel/>
        </ServiceElementConfigurationDefinition>
        <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPTDMEndPointParameterDefType">
        <PhysicalEncapsulation>satop</PhysicalEncapsulation>
        <JitterBuffer editable="false">5</JitterBuffer>
        <IdlePattern max="255" min="0" editable="false">255</IdlePattern>
        <ExcessPacketLossRate max="100" min="0" editable="false">20</ExcessPacketLossRate>
        <PayloadSize editable="false">192</PayloadSize>
        </ServiceEndPointConfigurationDefinition>
        </ServiceDefinition>
        </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>ServiceDefinition</Type>
        <Value>3932181</Value>
        </Identity>
        <Code>200</Code>
        <Message>ServiceDefinition Created Successfully</Message>
        </Status>
        </Data>
    
     
     
    

    Create an E-LINE LDP ATM Service Definition with Multi-Segment Pseudowire

    This request is used to create an E-LINE LDP service definition with ATM interfaces and multi-segment pseudowires.

    URI

    api/space/nsas/eline-ptp/service-management/service-definitions/

    HTTP Method

    POST

    Content-Type

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

    Consumes

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

    Produces

    Creates an E-LINE LDP service definition with ATM interfaces and multi-segment pseudowires.

    Input

    Sample XML Input

           <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <ServiceResource>
        <ServiceDefinition>
        <Common>
        <Name>ATM_SD_API</Name>
           <Comments>fgdfgdg</Comments>
           </Common>
        <ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
        <InterfaceType>ATM</InterfaceType>
        <StaticpseudoWire>false</StaticpseudoWire>
        <MultiSegmentPseudowire>true</MultiSegmentPseudowire>
        <PWResiliency>false</PWResiliency>
        <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPATMServiceEndpointGroupParameterDefType">
        <VCID max="4294967296" min="1" editable="false" selection="Auto pick" default="1"/>
        <MTU  editable="false" default="1522"/>
        <OutGoingLabel/>
        </ServiceElementConfigurationDefinition>
        <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPATMEndPointParameterDefType">
        <PhysicalEncapsulation>atm-ccc-cell-relay</PhysicalEncapsulation>
        <VPISelection editable="false" selection="Select manually"/>
        <VCISelection editable="false" selection="Select manually"/>
        <CellBundleSize max="176" min="1" editable="false">1</CellBundleSize>
        </ServiceEndPointConfigurationDefinition>
        </ServiceDefinition>
        </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>ServiceDefinition</Type>
        <Value>3604500</Value>
        </Identity>
        <Code>200</Code>
        <Message>ServiceDefinition Created Successfully</Message>
        </Status>
        </Data>
    
     
    

    Create an E-LINE LDP Service Definition with Static Pseudowire for P2P

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

    URI

    api/space/nsas/eline-ptp/service-management/service-definitions/

    HTTP Method

    POST

    Content-Type

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

    Consumes

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

    Produces

    Creates an E-LINE LDP service definition with static pseudowires for P2P.

    Input

    Sample XML Input

      <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <ServiceResource>
        <ServiceDefinition>
        <Common>
             <Name>P2P_LDP_E_SPW_SD_API</Name>
             <Comments>ewrwe</Comments>
        </Common>
        <ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
        <InterfaceType>Ethernet</InterfaceType>
        <StaticpseudoWire>true</StaticpseudoWire>
        <EnableL3Access>false</EnableL3Access>
        <PWResiliency>false</PWResiliency>
        <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPServiceEndpointGroupParameterDefType">
        <VCID max="4294967296" min="1" editable="false" selection="Auto pick" default="1"/>
        <MTU editable="false" default="1522"/>
        <VlanNormalization>Normalize to QinQ tags</VlanNormalization>
        <OutGoingLabel selection="Select manually"/>
        </ServiceElementConfigurationDefinition>
        <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType">
        <EthernetOption>qinq</EthernetOption>
        <VlanIdSelection editable="false" selection="Auto pick"/>
        <TrafficType>Transport single vlan</TrafficType>
        <VlanIdAuto max="0" min="0" default="0"/>
        <VlanIdManual max="0" min="0" default="0"/>
        <PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation>
        <LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
        <MTU editable="false" default="1522"/>
        </ServiceEndPointConfigurationDefinition>
        </ServiceDefinition>
        </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>ServiceDefinition</Type>
        <Value>393589</Value>
        </Identity>
        <Code>200</Code>
        <Message>ServiceDefinition Created Successfully</Message>
        </Status>
        </Data>
    
     
    

    Publish and Unpublish an E-LINE LDP Service Definition

    This request is used to publish or unpublish an E-LINE LDP service definition.

    URI

    api/space/nsas/eline-ptp/service-management/service-definitions/

    HTTP Method

    POST

    Content-Type

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

    Consumes

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

    Action types are Publish and Unpublish.

    Produces

    Publishes or unpublishes an E-LINE LDP service definition.

    Input for Publishing a Service Definition

    Sample XML Input

    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceDefinitionCustomActionType">
    	<Action>Publish</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>ServiceDefinition</Type>
    			<Value>7012365</Value>
    		</Identity>
    		<Code>200</Code>
    		<Message>ServiceDefinition Published Successfully</Message>
    	</Status>
    </Data>
     
    				

    Delete an E-LINE LDP Service Definition

    This request is used to delete a previously configured E-LINE LDP service definition.

    URI

    api/space/nsas/eline-ptp/service-management/
    service-definitions/<servicedefinition-id>

    HTTP Method

    DELETE

    Consumes

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

    Produces

    Deletes an E-LINE LDP service definition.

    Output

    Sample XML Output

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<Status>
    		<Identity>
    			<Type>ServiceDefinition</Type>
    			<Value>7012365</Value>
    		</Identity>
    		<Code>200</Code>
    		<Message>ServiceDefinition Deleted Successfully</Message>
    	</Status>
    </Data>	

    Create an E-LINE LDP ATM Service Definition with MC-APS

    This request is used to create an E-LINE LDP ATM service definition configured with MC-APS.

    URI

    api/space/nsas/eline-ptp/service-management/service-definitions/

    HTTP Method

    POST

    Content-Type

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

    Consumes

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

    Produces

    Creates an E-LINE LDP service definition configured with MC-APS.

    Input

    Sample XML Input

    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceDefinition>
    			<Common>
    				<Name>ATM_LDP_MCAPS_API</Name>
    				<Comments>rtret</Comments>
    			</Common>
    			<ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
    			<InterfaceType>ATM</InterfaceType>
    			<StaticpseudoWire>false</StaticpseudoWire>
    			<MultiSegmentPseudowire>false</MultiSegmentPseudowire>
    			<PWResiliency>true</PWResiliency>
    			<ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPATMServiceEndpointGroupParameterDefType">
    				<VCID max="4294967296" min="1" editable="false" selection="Auto pick" default="1"/>
    				<MTU editable="false" default="1522"/>
    				<RevertTime editable="false">5</RevertTime>
    				<SwitchOverDelay editable="false">0</SwitchOverDelay>
    				<OutGoingLabel/>
    			</ServiceElementConfigurationDefinition>
    			<ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPATMEndPointParameterDefType">
    				<PhysicalEncapsulation>atm-ccc-cell-relay</PhysicalEncapsulation>
    				<VPISelection editable="false" selection="Select manually"/>
    				<VCISelection editable="false" selection="Select manually"/>
    				<CellBundleSize max="176" min="1" editable="false">1</CellBundleSize>
    			</ServiceEndPointConfigurationDefinition>
    		</ServiceDefinition>
    	</ServiceResource>
    </Data>
    
    
    

    Output

    Sample XML Output

    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<Status>
    		<Identity>
    			<Type>ServiceDefinition</Type>
    			<Value>2064446</Value>
    		</Identity>
    		<Code>200</Code>
    		<Message>ServiceDefinition Created Successfully</Message>
    	</Status>
    </Data>
    

    Get an E-LINE LDP ATM Service Definition with MC-APS By Definition ID

    This request is used to retrieve the details of a particular Layer 2 Ethernet Private Line (EPL, also called E-LINE) LDP ATM service definition with MC-APS, based on the service definition ID.

    URI

    api/space/nsas/eline-ptp/service-management/
    service-definitions/<servicedefinition-Id>

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects the details of a specific E-LINE LDP ATM service definition with MC-APS.

    Output

    Sample XML Output

          <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <ServiceResource>
        <ServiceDefinition key="2064384" uri="/api/space/nsas/eline-ptp/service-management/service-definitions/2064384" href="/api/space/nsas/eline-ptp/service-management/service-definitions/2064384">
        <Common>
        <Name>ATM_LDP_MCAPS</Name>
        <Identity>2064384</Identity>
        <State>Published</State>
        <Comments>rtret</Comments>
        <CreatedDate>2014-12-12T15:15:34.000+05:30</CreatedDate>
        <LastUpdatedDate>2014-12-12T15:15:34.000+05:30</LastUpdatedDate>
        <CreatedBy>super</CreatedBy>
        </Common>
        <ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
        <InterfaceType>ATM</InterfaceType>
        <StaticpseudoWire>false</StaticpseudoWire>
        <MultiSegmentPseudowire>false</MultiSegmentPseudowire>
        <PWResiliency>true</PWResiliency>
        <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPATMServiceEndpointGroupParameterDefType">
        <VCID max="4294967296" min="1" editable="false" selection="Auto pick" default="1"/>
        <MTU max="9192" min="1522" editable="false" default="1522"/>
        <RevertTime editable="false">5</RevertTime>
        <SwitchOverDelay editable="false">0</SwitchOverDelay>
        <OutGoingLabel/>
        </ServiceElementConfigurationDefinition>
        <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPATMEndPointParameterDefType">
        <PhysicalEncapsulation>atm-ccc-cell-relay</PhysicalEncapsulation>
        <VPISelection editable="false" selection="Select manually"/>
        <VCISelection editable="false" selection="Select manually"/>
        <CellBundleSize max="176" min="1" editable="false">1</CellBundleSize>
        </ServiceEndPointConfigurationDefinition>
        </ServiceDefinition>
        </ServiceResource>
        </Data>
    
    

    Get an E-LINE LDP TDM Service Definition with MC-APS By Definition ID

    This request is used to retrieve the details of a particular Layer 2 Ethernet Private Line (EPL, also called E-LINE) LDP TDM service definition with MC-APS, based on the service definition ID.

    URI

    api/space/nsas/eline-ptp/service-management/
    service-definitions/<servicedefinition-Id>

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects the details of a specific E-LINE LDP TDM service definition with MC-APS.

    Output

    Sample XML Output

          <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceDefinition key="393544" uri="/api/space/nsas/eline-ptp/service-management/service-definitions/393544" href="/api/space/nsas/eline-ptp/service-management/service-definitions/393544">
    			<Common>
    				<Name>P2P_LDP_TDM_SD</Name>
    				<Identity>393544</Identity>
    				<State>Published</State>
    				<Comments>sfsfds</Comments>
    				<CreatedDate>2014-12-17T13:00:04.000+05:30</CreatedDate>
    				<LastUpdatedDate>2014-12-17T13:00:04.000+05:30</LastUpdatedDate>
    				<CreatedBy>super</CreatedBy>
    			</Common>
    			<ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
    			<InterfaceType>TDM</InterfaceType>
    			<StaticpseudoWire>false</StaticpseudoWire>
    			<MultiSegmentPseudowire>false</MultiSegmentPseudowire>
    			<PWResiliency>true</PWResiliency>
    			<ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPTDMServiceEndpointGroupParameterDefType">
    				<VCID max="4294967296" min="1" editable="false" selection="Auto pick" default="1"/>
    				<MTU max="9192" min="1522" editable="false" default="1522"/>
    				<RevertTime editable="false">5</RevertTime>
    				<SwitchOverDelay editable="false">0</SwitchOverDelay>
    				<OutGoingLabel/>
    			</ServiceElementConfigurationDefinition>
    			<ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPTDMEndPointParameterDefType">
    				<PhysicalEncapsulation>satop</PhysicalEncapsulation>
    				<JitterBuffer editable="false">5</JitterBuffer>
    				<IdlePattern max="255" min="0" editable="false">255</IdlePattern>
    				<ExcessPacketLossRate max="100" min="0" editable="false">20</ExcessPacketLossRate>
    				<PayloadSize editable="false">192</PayloadSize>
    			</ServiceEndPointConfigurationDefinition>
    		</ServiceDefinition>
    	</ServiceResource>
    </Data>
    
    
    

    Create an E-LINE LDP TDM Service Definition with MC-APS

    This request is used to create an E-LINE LDP TDM service definition configured with MC-APS.

    URI

    api/space/nsas/eline-ptp/service-management/service-definitions/

    HTTP Method

    POST

    Content-Type

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

    Consumes

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

    Produces

    Creates an E-LINE LDP TDM service definition configured with MC-APS.

    Input

    Sample XML Input

    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceDefinition>
    			<Common>
    				<Name>P2P_LDP_TDM_SD_API</Name>
    				<Comments>sfsfds</Comments>
    			</Common>
    			<ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
    			<InterfaceType>TDM</InterfaceType>
    			<StaticpseudoWire>false</StaticpseudoWire>
    			<MultiSegmentPseudowire>false</MultiSegmentPseudowire>
    			<PWResiliency>true</PWResiliency>
    			<ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPTDMServiceEndpointGroupParameterDefType">
    				<VCID max="4294967296" min="1" editable="false" selection="Auto pick" default="1"/>
    				<MTU editable="false" default="1522"/>
    				<RevertTime editable="false">5</RevertTime>
    				<SwitchOverDelay editable="false">0</SwitchOverDelay>
    				<OutGoingLabel/>
    			</ServiceElementConfigurationDefinition>
    			<ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPTDMEndPointParameterDefType">
    				<PhysicalEncapsulation>satop</PhysicalEncapsulation>
    				<JitterBuffer editable="false">5</JitterBuffer>
    				<IdlePattern max="255" min="0" editable="false">255</IdlePattern>
    				<ExcessPacketLossRate max="100" min="0" editable="false">20</ExcessPacketLossRate>
    				<PayloadSize editable="false">192</PayloadSize>
    			</ServiceEndPointConfigurationDefinition>
    		</ServiceDefinition>
    	</ServiceResource>
    </Data>
    
    

    Output

    Sample XML Output

    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<Status>
    		<Identity>
    			<Type>ServiceDefinition</Type>
    			<Value>2064446</Value>
    		</Identity>
    		<Code>200</Code>
    		<Message>ServiceDefinition Created Successfully</Message>
    	</Status>
    </Data>
    
    

    Get an E-LINE P2P LDP Service Definition with Default Service Template By Definition ID

    This request is used to retrieve the details of a particular Layer 2 Ethernet Private Line (EPL, also called E-LINE) P2P LDP service definition with default service template, based on the service definition ID.

    URI

    api/space/nsas/eline-ptp/service-management/
    service-definitions/<servicedefinition-Id>

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects the details of a specific E-LINE P2P LDP service definition with default service template.

    Output

    Sample XML Output

    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceDefinition key="1015808" uri="/api/space/nsas/eline-ptp/service-management/service-definitions/1015808" href="/api/space/nsas/eline-ptp/service-management/service-definitions/1015808">
    			<Common>
    				<Name>Test_LDP_eth_API</Name>
    				<Identity>1015808</Identity>
    				<State>Unpublished</State>
    				<CreatedDate>2015-02-23T13:50:26.000+05:30</CreatedDate>
    				<LastUpdatedDate>2015-02-23T13:50:26.000+05:30</LastUpdatedDate>
    				<CreatedBy>super</CreatedBy>
    			</Common>
    			<ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
    			<InterfaceType>Ethernet</InterfaceType>
    			<StaticpseudoWire>false</StaticpseudoWire>
    			<EnableL3Access>false</EnableL3Access>
    			<MultiSegmentPseudowire>false</MultiSegmentPseudowire>
    			<PWResiliency>false</PWResiliency>
    			<DecoupleStatus>true</DecoupleStatus>
    			<ServiceTemplates>
    				<ServiceTemplate href="/api/space/nsas/eline-ptp/service-management/service-templates/950278" uri="/api/space/nsas/eline-ptp/service-management/service-templates/950278" key="/api/space/nsas/eline-ptp/service-management/service-templates/950278">
    					<ID>950278</ID>
    					<Name>protocoll2circuit</Name>
    					<Default>false</Default>
    				</ServiceTemplate>
    				<ServiceTemplate href="/api/space/nsas/eline-ptp/service-management/service-templates/950296" uri="/api/space/nsas/eline-ptp/service-management/service-templates/950296" key="/api/space/nsas/eline-ptp/service-management/service-templates/950296">
    					<ID>950296</ID>
    					<Name>Flexi_Temp</Name>
    					<Default>true</Default>
    				</ServiceTemplate>
    			</ServiceTemplates>
    			<ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPServiceEndpointGroupParameterDefType">
    				<VCID max="4294967296" min="1" editable="false" selection="Auto pick" default="1"/>
    				<MTU max="" min="" editable="false" default="1522"/>
    				<VlanNormalization>Normalize to Dot1q tag</VlanNormalization>
    				<OutGoingLabel/>
    			</ServiceElementConfigurationDefinition>
    			<ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType">
    				<EthernetOption>port-port</EthernetOption>
    				<VlanIdSelection editable="false"/>
    				<TrafficType>N/A</TrafficType>
    				<VlanIdAuto max="0" min="0" default="0"/>
    				<VlanIdManual max="0" min="0" default="0"/>
    				<PhysicalEncapsulation>ethernet-ccc</PhysicalEncapsulation>
    				<LogicalEncapsulation/>
    				<MTU max="0" min="0" editable="false" default="1522"/>
    				<EnableRateLimiting>Not enabled</EnableRateLimiting>
    				<DefaultBandwidth unit="Mbps" max="100" min="1" editable="false" default="1">N/A</DefaultBandwidth>
    				<MinBandwidth unit="Kbps" max="100000" min="64">0</MinBandwidth>
    				<MaxBandwidth unit="Mbps" max="100000" min="1">0</MaxBandwidth>
    				<Increment unit="Kbps" max="100000" min="64" default="64">0</Increment>
    				<CalculateBurstSizeType>MTU Based</CalculateBurstSizeType>
    				<MTUFactor editable="false">10</MTUFactor>
    			</ServiceEndPointConfigurationDefinition>
    		</ServiceDefinition>
    	</ServiceResource>
    </Data>
    
    

    Create an E-LINE P2P LDP Service Definition with Default Service Template

    This request is used to create an E-LINE P2P LDP TDM service definition configured with default service template.

    URI

    api/space/nsas/eline-ptp/service-management/service-definitions/

    HTTP Method

    POST

    Content-Type

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

    Consumes

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

    Produces

    Creates an E-LINE P2P LDP service definition 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>
    		<ServiceDefinition>
    			<Common>
    				<Name>Test_LDP_eth_API</Name>
    			</Common>
    			<ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
    			<InterfaceType>Ethernet</InterfaceType>
    			<StaticpseudoWire>false</StaticpseudoWire>
    			<EnableL3Access>false</EnableL3Access>
    			<MultiSegmentPseudowire>false</MultiSegmentPseudowire>
    			<PWResiliency>false</PWResiliency>
    			<DecoupleStatus>true</DecoupleStatus>
    			<ServiceTemplates>
    				<ServiceTemplate>
    					<ID>2654208</ID>
    					<Name>ST with _Descp_P2P</Name>
    					<Default>false</Default>
    				</ServiceTemplate>
    				<ServiceTemplate>
    					<ID>2654219</ID>
    					<Name>ST with _Descp_P2P_1</Name>
    					<Default>true</Default>
    				</ServiceTemplate>
    			</ServiceTemplates>
    			<ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPServiceEndpointGroupParameterDefType">
    				<VCID max="4294967296" min="1" editable="false" selection="Auto pick" default="1"/>
    				<MTU  editable="false" default="1522"/>
    				<VlanNormalization>Normalize to Dot1q tag</VlanNormalization>
    				<OutGoingLabel/>
    			</ServiceElementConfigurationDefinition>
    			<ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType">
    				<EthernetOption>port-port</EthernetOption>				
    				<PhysicalEncapsulation>ethernet-ccc</PhysicalEncapsulation>
    				<MTU editable="false" default="1522"/>
    				<CalculateBurstSizeType>MTU Based</CalculateBurstSizeType>
    				<MTUFactor editable="false">10</MTUFactor>
    			</ServiceEndPointConfigurationDefinition>
    		</ServiceDefinition>
    	</ServiceResource>
    </Data>
    
    

    Sample XML Input (With XPath)

       <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceOrder>
    			<Common>
    				<Name>P2P_SO</Name>
    				<Comments>P2P service order</Comments>
    			</Common>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<NA>
    						<DeviceName>embassy</DeviceName>
    						<DeviceID>327752</DeviceID>
    					</NA>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-1/0/1</InterfaceName>
    					<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
    						<EndPointCategory>PTP</EndPointCategory>
    						<VlanId>760</VlanId>
    						<MTU>1522</MTU>
    						<Bandwidth unit="Mbps">10</Bandwidth>
    					</ServiceEndpointConfiguration>
    					<ServiceTemplates>
    						<ServiceTemplate>
    							<ID>66317</ID>
    							<ConfigParams>
    								<Name>Name</Name>
    								<Value>testname</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>exora</DeviceName>
    						<DeviceID>327689</DeviceID>
    					</NA>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-0/1/2</InterfaceName>
    					<ServiceEndpointConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPElineLDPEndPointConfigParameterOrderType">
    						<EndPointCategory>PTP</EndPointCategory>
    						<VlanId>760</VlanId>
    						<MTU>1522</MTU>
    						<Bandwidth unit="Mbps">10</Bandwidth>
    					</ServiceEndpointConfiguration>
    					<ServiceTemplates>
    						<ServiceTemplate>
    							<ID>66317</ID>
    							<ConfigParams>
    								<Name>Name</Name>
    								<Value>testname</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">
    				<MTU>1577</MTU>
    				<VCID>760</VCID>
    			</ServiceOrderParameter>
    			<Reference>
    				<Customer key="327680"/>
    				<ServiceDefinition>
    					<ServiceDefinitionID key="262144"/>
    				</ServiceDefinition>
    			</Reference>
    		</ServiceOrder>
    	</ServiceResource>
    	<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceOrderCustomActionType">
    		<Action>SaveAndDeployNow</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>ServiceDefinition</Type>
    			<Value>458825</Value>
    		</Identity>
    		<Code>200</Code>
    		<Message>ServiceDefinition Created Successfully</Message>
    	</Status>
    </Data>   
    

    Modified: 2017-09-13