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

    L3VPN Service Definitions Management RESTful Web Services

    The following operations can be performed using the Connectivity Services Director Layer 3 VPN Service Definitions Management RESTful Web Services.

    Get L3VPN Service Definition Details with VRF Route Label By Definition ID

    This request is used to retrieve the details of a particular L3VPN service definition with VRF route label, based on the service definition ID.

    URI

    api/space/nsas/l3vpn/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 L3VPN service definition with VRF route label.

    Output

    Sample XML Output

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceOrder>
    			<Common>
    				<Name>L3VPNAPI</Name>
    				
    			</Common>
    			<ServiceEndPointGroup>
    				<DeviceInfo>
    					<NA>
    						<DeviceName>embassy</DeviceName>
    						<DeviceID>721075</DeviceID>
    					</NA>
    				</DeviceInfo>
    				<ServiceEndPoint>
    					<InterfaceName>ge-1/0/9</InterfaceName>
    					<ServiceEndpointConfiguration
    						xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNFMOSPFEndPointConfigParameterOrderType">
    						<RoutingProtocol>OSPF</RoutingProtocol>
    						<EthernetOption>Vlan</EthernetOption>
    						<UnitID>0</UnitID>
    						<InterfaceIP>10.0.77.1</InterfaceIP>
    						<OSPFAreaId>0.0.0.0</OSPFAreaId>
    						<OSPFVersion>Ver 2</OSPFVersion>
    					</ServiceEndpointConfiguration>
    				</ServiceEndPoint>
    			</ServiceEndPointGroup>
    			<ServiceOrderParameter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    				xsi:type="L3VPNConfigParameterOrderType">
    				<RouteTarget>100:7</RouteTarget>
    				<RouteDistinguisher>100:34</RouteDistinguisher>
    				<VRFTabelLabel>Enable</VRFTabelLabel>
    			</ServiceOrderParameter>
    			<Reference>
    				<Customer key="720896"/>
    				<ServiceDefinition>
    					<ServiceDefinitionID key="1441826"/>
    				</ServiceDefinition>
    			</Reference>
    		</ServiceOrder>
    	</ServiceResource>
    </Data>
     
    

    Get All Published L3VPN Service Definitions

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

    URI

    All service types:

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

    L3VPN:

    /api/space/nsas/l3vpn/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 L3VPN service definitions.

    Output

    Sample XML Output

    	<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    		<Data xmlns="services.schema.networkapi.jmp.juniper.net">
    			<ServiceResource size="5">
    				<ServiceDefinition key="2621440" uri="/api/space/nsas/l3vpn/service-management/service-definitions/2621440" href="/api/space/nsas/l3vpn/service-management/service-definitions/2621440">
    					<Common>
    						<Name>Test</Name>
    						<Identity>2621440</Identity>
    						<State>Published</State>
    						<CreatedDate>2015-10-23T15:05:59.000+05:30</CreatedDate>
    						<LastUpdatedDate>2015-10-23T15:05:59.000+05:30</LastUpdatedDate>
    						<CreatedBy>super</CreatedBy>
    					</Common>
    					<ServiceType>L3VPN</ServiceType>
    					<InterfaceType>L3 VPN (Full Mesh)</InterfaceType>
    					<UseCount>0</UseCount>
    					<UsedBy/>
    					<IsStandard>false</IsStandard>
    				</ServiceDefinition>
    				<ServiceDefinition key="491520" uri="/api/space/nsas/l3vpn/service-management/service-definitions/491520" href="/api/space/nsas/l3vpn/service-management/service-definitions/491520">
    					<Common>
    						<Name>L3VPN-BGP-Static</Name>
    						<Identity>491520</Identity>
    						<State>Published</State>
    						<Comments>L3VPN with BGP/Static as PE-CE routing protocol</Comments>
    						<CreatedDate>2015-10-15T17:45:13.000+05:30</CreatedDate>
    						<LastUpdatedDate>2015-10-15T17:45:13.000+05:30</LastUpdatedDate>
    						<CreatedBy>super</CreatedBy>
    					</Common>
    					<ServiceType>L3VPN</ServiceType>
    					<InterfaceType>L3 VPN (Full Mesh)</InterfaceType>
    					<UseCount>0</UseCount>
    					<UsedBy/>
    					<IsStandard>true</IsStandard>
    				</ServiceDefinition>
    				<ServiceDefinition key="491538" uri="/api/space/nsas/l3vpn/service-management/service-definitions/491538" href="/api/space/nsas/l3vpn/service-management/service-definitions/491538">
    					<Common>
    						<Name>L3VPN-OSPF-Static</Name>
    						<Identity>491538</Identity>
    						<State>Published</State>
    						<Comments>L3VPN with OSPF/Static as PE-CE routing protocol</Comments>
    						<CreatedDate>2015-10-15T17:45:13.000+05:30</CreatedDate>
    						<LastUpdatedDate>2015-10-15T17:45:13.000+05:30</LastUpdatedDate>
    						<CreatedBy>super</CreatedBy>
    					</Common>
    					<ServiceType>L3VPN</ServiceType>
    					<InterfaceType>L3 VPN (Full Mesh)</InterfaceType>
    					<UseCount>3</UseCount>
    					<UsedBy/>
    					<IsStandard>true</IsStandard>
    				</ServiceDefinition>
    				<ServiceDefinition key="491556" uri="/api/space/nsas/l3vpn/service-management/service-definitions/491556" href="/api/space/nsas/l3vpn/service-management/service-definitions/491556">
    					<Common>
    						<Name>L3VPN-OSPF-Static(Hub-Spoke-1-Interface)</Name>
    						<Identity>491556</Identity>
    						<State>Published</State>
    						<Comments>L3VPN Hub and Spoke 1 interface with OSPF/Static as PE-CE routing protocol</Comments>
    						<CreatedDate>2015-10-15T17:45:13.000+05:30</CreatedDate>
    						<LastUpdatedDate>2015-10-15T17:45:13.000+05:30</LastUpdatedDate>
    						<CreatedBy>super</CreatedBy>
    					</Common>
    					<ServiceType>L3VPN</ServiceType>
    					<InterfaceType>L3 VPN (Hub-Spoke 1 Interface)</InterfaceType>
    					<UseCount>0</UseCount>
    					<UsedBy/>
    					<IsStandard>true</IsStandard>
    				</ServiceDefinition>
    				<ServiceDefinition key="491574" uri="/api/space/nsas/l3vpn/service-management/service-definitions/491574" href="/api/space/nsas/l3vpn/service-management/service-definitions/491574">
    					<Common>
    						<Name>L3VPN-BGP-Static(Hub-Spoke-1-Interface)</Name>
    						<Identity>491574</Identity>
    						<State>Published</State>
    						<Comments>L3VPN Hub and Spoke 1 interface with BGP/Static as PE-CE routing protocol</Comments>
    						<CreatedDate>2015-10-15T17:45:13.000+05:30</CreatedDate>
    						<LastUpdatedDate>2015-10-15T17:45:13.000+05:30</LastUpdatedDate>
    						<CreatedBy>super</CreatedBy>
    					</Common>
    					<ServiceType>L3VPN</ServiceType>
    					<InterfaceType>L3 VPN (Hub-Spoke 1 Interface)</InterfaceType>
    					<UseCount>0</UseCount>
    					<UsedBy/>
    					<IsStandard>true</IsStandard>
    				</ServiceDefinition>
    			</ServiceResource>
    		</Data>

    Create an L3VPN Service Definition with VRF Route Label

    This request is used to create an L3VPN service definition with VRF route label.

    URI

    api/space/nsas/l3vpn/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

    Produces

    Creates an L3VPN service definition with VRF route label.

    Input

    Sample XML Input

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceDefinition
    			href="/api/space/nsas/l3vpn/service-management/service-definitions/1441792"
    			uri="/api/space/nsas/l3vpn/service-management/service-definitions/1441792"
    			key="1441792">
    			<Common>
    				<Name>VRFTABLEAPI</Name>
    				<Identity>1441792</Identity>
    				<State>Published</State>
    				<CreatedDate>2012-12-15T00:39:46.000+05:30</CreatedDate>
    				<LastUpdatedDate>2012-12-15T00:39:46.000+05:30</LastUpdatedDate>
    				<CreatedBy>super</CreatedBy>
    			</Common>
    			<ServiceType>L3VPN</ServiceType>
    			<InterfaceType>L3 VPN (Full Mesh)</InterfaceType>
    			<ServiceElementConfigurationDefinition
    				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNServiceEndpointGroupParameterDefType">
    				<RouteTarget selection="Auto pick" editable="false" />
    				<RouteDistinguisher selection="Auto pick"
    					editable="false" />
    				<VRFTabelLabel editable="true">true</VRFTabelLabel>
    				<ExportDirectRoutes>true</ExportDirectRoutes>
    				<RoutingProtocol>OSPF/Static Route</RoutingProtocol>
    				<PEInterfaceIP selection="Auto pick" editable="false" />
    				<IPPoolType editable="false">Global</IPPoolType>
    				<AddressBlockSize editable="false">30</AddressBlockSize>
    			</ServiceElementConfigurationDefinition>
    			<ServiceEndPointConfigurationDefinition
    				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNEndPointParameterDefType">
    				<VlanIdSelection selection="Auto pick" editable="false" />
    				<VlanIdAuto min="0" max="0" />
    				<VlanIdManual min="0" max="0" />
    			</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>1441809</Value>
        </Identity>
        <Code>200</Code>
        <Message>ServiceDefinition Created Successfully</Message>
        </Status>
        </Data>
     
    

    Get All Layer 3 VPN Service Definitions by Filter Criterion

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

    URI

    /api/space/nsas/l3vpn/service-management/service-
    definitions?filteredby=State::Published

    /api/space/nsas/l3vpn/service-management/service-
    definitions?filteredby=Name::L3VPN

    /api/space/nsas/l3vpn/service-management/service-
    definitions?filteredby=ServiceType::L3 VPN (Full Mesh)

    HTTP Method

    GET

    Consumes

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

    Produces

    Collects all the configured Layer 3 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, and State. For filtering based on the service type, you must specify the exact service type, such as inclusion of spaces for example: L3 VPN (Full Mesh)

    Output

    Sample XML Output

    Create and Publish L3VPN Service Definition

    This request is used to create and publish an L3VPN service definition.

    URI

    api/space/nsas/l3vpn/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

    Produces

    Creates and publishes an L3VPN service definition.

    Output

    Sample XML Output

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceDefinition>
    			<Common>
    				<Name>L3VPNFULL003</Name>
    				<Comments>L3VPNFULLMESH001</Comments>
    			</Common>
    			<ServiceType>L3VPN</ServiceType>
    			<InterfaceType>L3 VPN (Full Mesh)</InterfaceType>
    			<ServiceElementConfigurationDefinition
    				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNServiceEndpointGroupParameterDefType">
    				<RouteTarget selection="Auto pick" editable="false" />
    				<RouteDistinguisher editable="false" selection="Auto pick" />
    				<VRFTabelLabel>true</VRFTabelLabel>
    				<ExportDirectRoutes>true</ExportDirectRoutes>
    				<RoutingProtocol>OSPF/Static Route</RoutingProtocol>
    				<PEInterfaceIP editable="false" selection="Auto pick" />
    				<IPPoolType editable="false">Global</IPPoolType>
    				<AddressBlockSize editable="false">29</AddressBlockSize>
    			</ServiceElementConfigurationDefinition>
    			<ServiceEndPointConfigurationDefinition
    				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNEndPointParameterDefType">
    				<VlanIdSelection selection="Auto pick" />
    				<VlanIdAuto max="3000" min="33" />
    			</ServiceEndPointConfigurationDefinition>
    		</ServiceDefinition>
    	</ServiceResource>
    	<CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    		xsi:type="ServiceDefinitionCustomActionType">
    		<Action>Publish</Action>
    	</CustomAction>
    
    </Data>
    
    

    Get P2P Service Definition Details with Pseudowire Stitching for L3VPN By Definition ID

    This request is used to retrieve the details of a particular P2P service definition stitched to an L3VPN, 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 P2P service definition stitched to an L3VPN.

    Output

    Sample XML Output

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceDefinition
    			href="/api/space/nsas/eline-ptp/service-management/service-definitions/1376372"
    			uri="/api/space/nsas/eline-ptp/service-management/service-definitions/1376372"
    			key="1376372">
    			<Common>
    				<Name>PwS3</Name>
    				<Identity>1376372</Identity>
    				<State>Unpublished</State>
    				<CreatedDate>2013-03-13T15:29:19.000+05:30</CreatedDate>
    				<LastUpdatedDate>2013-03-13T15:29:19.000+05:30</LastUpdatedDate>
    				<CreatedBy>super</CreatedBy>
    			</Common>
    			<ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
    			<InterfaceType>Ethernet</InterfaceType>
    			<EnableL3Access>true</EnableL3Access>
    			<PWResiliency>false</PWResiliency>
    			<ServiceElementConfigurationDefinition
    				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPServiceEndpointGroupParameterDefType">
    				<VCID default="1" selection="Auto pick" editable="false" min="1"
    					max="4294967296" />
    				<MTU default="1522" editable="false" min="1522" max="9192" />
    			</ServiceElementConfigurationDefinition>
    			<ServiceEndPointConfigurationDefinition
    				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType">
    				<EthernetOption>dot1q</EthernetOption>
    				<VlanIdSelection selection="Auto pick" editable="false" />
    				<TrafficType>Transport single vlan</TrafficType>
    				<VlanIdAuto default="0" min="0" max="0" />
    				<VlanIdManual default="0" min="0" max="0" />
    				<PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation>
    				<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
    				<PeerUnitSelection>Select manually</PeerUnitSelection>
    				<MTU default="1522" editable="false" min="1522" max="9192" />
    				<EnableRateLimiting>Not enabled</EnableRateLimiting>
    				<DefaultBandwidth default="1" editable="false" min="1"
    					max="100" unit="Mbps">N/A</DefaultBandwidth>
    				<MinBandwidth min="64" max="100000" unit="Kbps">0
    				</MinBandwidth>
    				<MaxBandwidth min="1" max="100000" unit="Mbps">0
    				</MaxBandwidth>
    				<Increment default="64" min="64" max="100000" unit="Kbps">0
    				</Increment>
    			</ServiceEndPointConfigurationDefinition>
    		</ServiceDefinition>
    	</ServiceResource>
    </Data>
     
     
    

    Create a P2P Service Definition with Pseudowire Stitching for L3VPN

    This request is used to create a P2P service definition with pseudowire stitching for an L3VPN.

    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

    Produces

    Creates a P2P service definition with pseudowire stitching for an L3VPN.

    Input

    Sample XML Input

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceDefinition>
    			<Common>
    				<Name>PwS6</Name>
     
    			</Common>
    			<ServiceType>Point-to-Point Pseudowire(LDP)</ServiceType>
    			<InterfaceType>Ethernet</InterfaceType>
    			<EnableL3Access>true</EnableL3Access>
    			<PWResiliency>false</PWResiliency>
    			<ServiceElementConfigurationDefinition
    				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPServiceEndpointGroupParameterDefType">
    				<VCID default="1" selection="Auto pick" editable="false" min="1"
    					max="4294967296" />
    				<MTU default="1522" editable="false" />
    			</ServiceElementConfigurationDefinition>
    			<ServiceEndPointConfigurationDefinition
    				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PTPEndPointParameterDefType">
    				<EthernetOption>dot1q</EthernetOption>
    				<VlanIdSelection selection="Auto pick" editable="false" />
    				<TrafficType>Transport single vlan</TrafficType>
    				<PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation>
    				<LogicalEncapsulation>vlan-ccc</LogicalEncapsulation>
    				<PeerUnitSelection>Select manually</PeerUnitSelection>
    				<MTU default="1522" editable="false" />
    		</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>1441809</Value>
        </Identity>
        <Code>200</Code>
        <Message>ServiceDefinition Created Successfully</Message>
        </Status>
        </Data>
     
     
    

    Create an L3VPN Service Definition with Manual Route Distinguisher and Router Target

    This request is used to create an L3VPN service definition with manual route distinguisher and route target.

    URI

    api/space/nsas/l3vpn/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

    Produces

    Creates an L3VPN service definition with manual route distinguisher and route target.

    Input

    Sample XML Input

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceDefinition
    			href="/api/space/nsas/l3vpn/service-management/service-definitions/1441792"
    			uri="/api/space/nsas/l3vpn/service-management/service-definitions/1441792"
    			key="1441792">
    			<Common>
    				<Name>VRFTABLEAPI</Name>
    				<Identity>1441792</Identity>
    				<State>Published</State>
    				<CreatedDate>2012-12-15T00:39:46.000+05:30</CreatedDate>
    				<LastUpdatedDate>2012-12-15T00:39:46.000+05:30</LastUpdatedDate>
    				<CreatedBy>super</CreatedBy>
    			</Common>
    			<ServiceType>L3VPN</ServiceType>
    			<InterfaceType>L3 VPN (Full Mesh)</InterfaceType>
    			<ServiceElementConfigurationDefinition
    				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNServiceEndpointGroupParameterDefType">
    				<RouteTarget selection="Select manually" editable="true" />
    				<RouteDistinguisher selection="Select manually"
    					editable="true" />
    				<VRFTabelLabel editable="true">true</VRFTabelLabel>
    				<ExportDirectRoutes>true</ExportDirectRoutes>
    				<RoutingProtocol>OSPF/Static Route</RoutingProtocol>
    				<PEInterfaceIP selection="Auto pick" editable="false" />
    				<IPPoolType editable="false">Global</IPPoolType>
    				<AddressBlockSize editable="false">30</AddressBlockSize>
    			</ServiceElementConfigurationDefinition>
    			<ServiceEndPointConfigurationDefinition
    				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNEndPointParameterDefType">
    				<VlanIdSelection selection="Auto pick" editable="false" />
    				<VlanIdAuto min="0" max="0" />
    				<VlanIdManual min="0" max="0" />
    			</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>1638400</Value>
        </Identity>
        <Code>200</Code>
        <Message>ServiceDefinition Created Successfully</Message>
        </Status>
        </Data>
     
    

    Get L3VPN Service Definition Details with Manual Route Target By Definition ID

    This request is used to retrieve the details of a particular L3VPN service definition with manual route target, based on the service definition ID.

    URI

    api/space/nsas/l3vpn/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 L3VPN service definition with manual route target..

    Output

    Sample XML Output

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <ServiceResource>
        <ServiceDefinition href="/api/space/nsas/l3vpn/service-management/service-definitions/1605665" uri="/api/space/nsas/l3vpn/service-management/service-definitions/1605665" key="1605665">
        <Common>
        <Name>L3VPNRDRTManual</Name>
        <Identity>1605665</Identity>
        <State>Published</State>
        <CreatedDate>2012-12-16T19:45:55.000+05:30</CreatedDate>
        <LastUpdatedDate>2012-12-16T19:45:55.000+05:30</LastUpdatedDate>
        <CreatedBy>super</CreatedBy>
        </Common>
        <ServiceType>L3VPN</ServiceType>
        <InterfaceType>L3 VPN (Full Mesh)</InterfaceType>
        <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNServiceEndpointGroupParameterDefType">
        <RouteTarget selection="Select manually" editable="false"/>
        <RouteDistinguisher selection="Select manually" editable="false"/>
        <VRFTabelLabel editable="false">true</VRFTabelLabel>
        <ExportDirectRoutes>true</ExportDirectRoutes>
        <RoutingProtocol>OSPF/Static Route</RoutingProtocol>
        <PEInterfaceIP selection="Auto pick" editable="false"/>
        <IPPoolType editable="false">Global</IPPoolType>
        <AddressBlockSize editable="false">30</AddressBlockSize>
        </ServiceElementConfigurationDefinition>
        <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNEndPointParameterDefType">
        <VlanIdSelection selection="Auto pick" editable="false"/>
        <VlanIdAuto min="0" max="0"/>
        <VlanIdManual min="0" max="0"/>
        </ServiceEndPointConfigurationDefinition>
        </ServiceDefinition>
        </ServiceResource>
        </Data>
     
    

    Get L3VPN Service Definition Details with MC-LAG By Definition ID

    This request is used to retrieve the details of a particular L3VPN service definition with MC-LAG, based on the service definition ID.

    URI

    api/space/nsas/l3vpn/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 L3VPN service definition with MC-LAG.

    Output

    Sample XML Output

     
    <Data>
    	<ServiceResource>
    		<ServiceDefinition
    			href="/api/space/nsas/l3vpn/service-management/service-definitions/2326954"
    			uri="/api/space/nsas/l3vpn/service-management/service-definitions/2326954"
    			key="2326954">
    			<Common>
    				<Name>L3VPNFULL041</Name>
    				<Identity>2326954</Identity>
    				<State>Unpublished</State>
    				<CreatedDate>2012-09-05T06:33:28.000Z</CreatedDate>
    				<LastUpdatedDate>2012-09-05T06:33:28.000Z</LastUpdatedDate>
    				<CreatedBy>super</CreatedBy>
    			</Common>
    			<ServiceType>L3VPN</ServiceType>
    			<InterfaceType>L3 VPN (Hub-Spoke 1 Interface)</InterfaceType>
    			<ServiceElementConfigurationDefinition
    				xsi:type="L3VPNServiceEndpointGroupParameterDefType">
    				<RouteTarget selection="Auto pick" editable="false" />
    				<RouteDistinguisher selection="Select manually"
    					editable="true" />
    				<VRFTabelLabel>true</VRFTabelLabel>
    				<ExportDirectRoutes>true</ExportDirectRoutes>
    				<RoutingProtocol>OSPF/Static Route</RoutingProtocol>
    				<PEInterfaceIP selection="Auto pick" editable="true" />
    				</PEInterfaceIP>
    				<IPPoolType editable="false">Global</IPPoolType>
    				<AddressBlockSize editable="false">29</AddressBlockSize>
    			</ServiceElementConfigurationDefinition>
    			<ServiceEndPointConfigurationDefinition
    				xsi:type="L3VPNEndPointParameterDefType">
    				<VlanIdSelection selection="Select manually"
    					editable="true" />
    				<VlanIdAuto max="0" min="0" />
    				<VlanIdManual max="400" min="200" />
    			</ServiceEndPointConfigurationDefinition>
    		</ServiceDefinition>
    	</ServiceResource>
    </Data>
     
    

    Create an L3VPN Service Definition

    This request is used to create an L3VPN service definition.

    URI

    api/space/nsas/l3vpn/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

    Produces

    Creates an L3VPN service definition.

    Input

    Sample XML Input

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceDefinition>
    			<Common>
    				<Name>L3VPNFULL002</Name>
    				<Comments>L3VPNFULLMESH001</Comments>
    			</Common>
    			<ServiceType>L3VPN</ServiceType>
    			<InterfaceType>L3 VPN (Full Mesh)</InterfaceType>
    			<ServiceElementConfigurationDefinition
    				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNServiceEndpointGroupParameterDefType">
    				<RouteTarget selection="Auto pick" editable="false" />
    				<RouteDistinguisher editable="false" selection="Auto pick"/>
    				<VRFTabelLabel>true</VRFTabelLabel>
    				<ExportDirectRoutes>true</ExportDirectRoutes>
    				<RoutingProtocol>OSPF/Static Route</RoutingProtocol>
    				<PEInterfaceIP editable="false" selection="Auto pick"/>
    				<IPPoolType editable="false">Global</IPPoolType>
    				<AddressBlockSize editable="false">29</AddressBlockSize>
    			</ServiceElementConfigurationDefinition>
    			<ServiceEndPointConfigurationDefinition
    				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNEndPointParameterDefType">
    				<VlanIdSelection selection="Auto pick" />
    				<VlanIdAuto max="3000" min="33" />
    				</ServiceEndPointConfigurationDefinition>
    		</ServiceDefinition>
    	</ServiceResource>
    </Data>
     
     
    

    Output

    Sample XML Output

    Publish and Unpublish an L3VPN Service Definition

    This request is used to publish or unpublish an L3VPN service definition.

    URI

    api/space/nsas/l3vpn/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 L3VPN service definition.

    Input for Unpublishing 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>UnPublish</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 UnPublished Successfully</Message>
    	</Status>
    </Data>
     
    

    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 L3VPN Service Definition

    This request is used to delete a previously configured L3VPN service definition.

    URI

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

    HTTP Method

    DELETE

    Consumes

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

    Produces

    Deletes an L3VPN 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>
     
     
    

    Get L3VPN Service Definition Details with MC-LAG By Definition ID

    This request is used to retrieve the details of a particular L3VPN service definition with MC-LAG, based on the service definition ID.

    URI

    api/space/nsas/l3vpn/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 L3VPN service definition with MC-LAG.

    Output

    Sample XML Output

    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceDefinition key="884828" uri="/api/space/nsas/l3vpn/service-management/service-definitions/884828" href="/api/space/nsas/l3vpn/service-management/service-definitions/884828">
    			<Common>
    				<Name>L3VPN_SD_GUI_01</Name>
    				<Identity>884828</Identity>
    				<State>Published</State>
    				<Comments>rtrete</Comments>
    				<CreatedDate>2014-12-26T12:15:53.000+05:30</CreatedDate>
    				<LastUpdatedDate>2014-12-26T12:15:53.000+05:30</LastUpdatedDate>
    				<CreatedBy>super</CreatedBy>
    			</Common>
    			<ServiceType>L3VPN</ServiceType>
    			<EnableMVPN>false</EnableMVPN>
    			<InterfaceType>L3 VPN (Full Mesh)</InterfaceType>
    			<ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNServiceEndpointGroupParameterDefType">
    				<RouteTarget editable="false" selection="Auto pick"/>
    				<RouteDistinguisher editable="false" selection="Auto pick"/>
    				<VRFTabelLabel editable="false">true</VRFTabelLabel>
    				<ExportDirectRoutes>true</ExportDirectRoutes>
    				<RoutingProtocol>OSPF/Static Route</RoutingProtocol>
    				<PEInterfaceIP editable="true" selection="Select manually"/>
    				<IPPoolType editable="false">None</IPPoolType>
    				<AddressBlockSize editable="true">26</AddressBlockSize>
    			</ServiceElementConfigurationDefinition>
    			<ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNEndPointParameterDefType">
    				<VlanIdSelection editable="false" selection="Auto pick"/>
    				<VlanIdAuto max="0" min="0"/>
    				<VlanIdManual max="0" min="0"/>
    			</ServiceEndPointConfigurationDefinition>
    		</ServiceDefinition>
    	</ServiceResource>
    </Data>
    
    

    Create an L3VPN Service Definition with MC-LAG

    This request is used to create an L3VPN service definition with MC-LAG.

    URI

    api/space/nsas/l3vpn/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

    Produces

    Creates an L3VPN service definition.

    Input

    Sample XML Input

    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceDefinition>
    			<Common>
    				<Name>L3VPN_MC_LAG_SD_API</Name>
    				<Comments>rtrete</Comments>
    			</Common>
    			<ServiceType>L3VPN</ServiceType>
    			<EnableMVPN>false</EnableMVPN>
    			<InterfaceType>L3 VPN (Full Mesh)</InterfaceType>
    			<ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNServiceEndpointGroupParameterDefType">
    				<RouteTarget editable="false" selection="Auto pick"/>
    				<RouteDistinguisher editable="false" selection="Auto pick"/>
    				<VRFTabelLabel editable="false">true</VRFTabelLabel>
    				<ExportDirectRoutes>true</ExportDirectRoutes>
    				<RoutingProtocol>OSPF/Static Route</RoutingProtocol>
    				<PEInterfaceIP editable="true" selection="Select manually"/>
    				<IPPoolType editable="false">None</IPPoolType>
    				<AddressBlockSize editable="true">29</AddressBlockSize>
    			</ServiceElementConfigurationDefinition>
    			<ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNEndPointParameterDefType">
    				<VlanIdSelection editable="false" selection="Auto pick"/>
    				<VlanIdAuto max="0" min="0"/>
    				<VlanIdManual max="0" min="0"/>
    			</ServiceEndPointConfigurationDefinition>
    		</ServiceDefinition>
    	</ServiceResource>
    </Data>
    
    

    Output

    Sample XML Output

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

    Get Full-Mesh L3VPN Service Definition Details with Static Routing Protocol By Definition ID

    This request is used to retrieve the details of a particular L3VPN service definition with static routing protocol for full-mesh topology, based on the service definition ID.

    URI

    api/space/nsas/l3vpn/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 L3VPN service definition with static routing protocol for full-mesh topology.

    Output

    Sample XML Output

          <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <ServiceResource>
        <ServiceDefinition key="426056" uri="/api/space/nsas/l3vpn/service-management/service-definitions/426056" href="/api/space/nsas/l3vpn/service-management/service-definitions/426056">
        <Common>
        <Name>L3VPN_FM_STATIC_SD</Name>
        <Identity>426056</Identity>
        <State>Published</State>
        <Comments>werewrw</Comments>
        <CreatedDate>2015-01-21T11:49:56.000+05:30</CreatedDate>
        <LastUpdatedDate>2015-01-21T11:49:56.000+05:30</LastUpdatedDate>
        <CreatedBy>super</CreatedBy>
        </Common>
        <ServiceType>L3VPN</ServiceType>
        <EnableMVPN>false</EnableMVPN>
        <InterfaceType>L3 VPN (Full Mesh)</InterfaceType>
        <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNServiceEndpointGroupParameterDefType">
        <RouteTarget editable="false" selection="Auto pick"/>
        <RouteDistinguisher editable="false" selection="Auto pick"/>
        <VRFTabelLabel editable="false">true</VRFTabelLabel>
        <ExportDirectRoutes>true</ExportDirectRoutes>
        <RoutingProtocol>BGP/Static Route</RoutingProtocol>
        <PEInterfaceIP editable="false" selection="Select manually"/>
        <IPPoolType editable="false">None</IPPoolType>
        <AddressBlockSize editable="false">29</AddressBlockSize>
        </ServiceElementConfigurationDefinition>
        <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNEndPointParameterDefType">
        <VlanIdSelection editable="false" selection="Auto pick"/>
        <VlanIdAuto max="0" min="0"/>
        <VlanIdManual max="0" min="0"/>
        </ServiceEndPointConfigurationDefinition>
        </ServiceDefinition>
        </ServiceResource>
        </Data>
    
    

    Create a Full-Mesh L3VPN Service Definition with Static Routing Protocol

    This request is used to create an L3VPN service definition with static routing protocol for full-mesh topology.

    URI

    api/space/nsas/l3vpn/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

    Produces

    Creates an L3VPN service definition with static routing protocol for full-mesh topology.

    Input

    Sample XML Input

    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceDefinition>
    			<Common>
    				<Name>L3VPN_FM_STATIC_SD_API</Name>
    				<Comments>werewrw</Comments>
    			</Common>
    			<ServiceType>L3VPN</ServiceType>
    			<EnableMVPN>false</EnableMVPN>
    			<InterfaceType>L3 VPN (Full Mesh)</InterfaceType>
    			<ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNServiceEndpointGroupParameterDefType">
    				<RouteTarget editable="false" selection="Auto pick" />
    				<RouteDistinguisher editable="false" selection="Auto pick" />
    				<VRFTabelLabel editable="false">true</VRFTabelLabel>
    				<ExportDirectRoutes>true</ExportDirectRoutes>
    				<RoutingProtocol>BGP/Static Route</RoutingProtocol>
    				<PEInterfaceIP editable="false" selection="Select manually" />
    				<IPPoolType editable="false">None</IPPoolType>
    				<AddressBlockSize editable="false">29</AddressBlockSize>
    			</ServiceElementConfigurationDefinition>
    			<ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNEndPointParameterDefType">
    				<VlanIdSelection editable="false" selection="Auto pick" />
    				<VlanIdAuto max="0" min="0" />
    				<VlanIdManual max="0" min="0" />
    			</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>589824</Value>
        </Identity>
        <Code>200</Code>
        <Message>ServiceDefinition Created Successfully</Message>
        </Status>
        </Data>
    
    

    Get a Hub-and-Spoke L3VPN Service Definition Details with Static Routing Protocol By Definition ID

    This request is used to retrieve the details of a particular L3VPN service definition with static routing protocol for hub-and-spoke topology, based on the service definition ID.

    URI

    api/space/nsas/l3vpn/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 L3VPN service definition with static routing protocol for hub-and-spoke topology.

    Output

    Sample XML Output

                     <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <ServiceResource>
        <ServiceDefinition key="721135" uri="/api/space/nsas/l3vpn/service-management/service-definitions/721135" href="/api/space/nsas/l3vpn/service-management/service-definitions/721135">
        <Common>
        <Name>L3VPN_HupSpoke_SD</Name>
        <Identity>721135</Identity>
        <State>Published</State>
        <Comments>dfsdfs</Comments>
        <CreatedDate>2015-01-21T17:08:50.000+05:30</CreatedDate>
        <LastUpdatedDate>2015-01-21T17:08:50.000+05:30</LastUpdatedDate>
        <CreatedBy>super</CreatedBy>
        </Common>
        <ServiceType>L3VPN</ServiceType>
        <EnableMVPN>false</EnableMVPN>
        <InterfaceType>L3 VPN (Hub-Spoke 1 Interface)</InterfaceType>
        <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNServiceEndpointGroupParameterDefType">
        <RouteTarget editable="false" selection="Auto pick"/>
        <RouteDistinguisher editable="false" selection="Auto pick"/>
        <VRFTabelLabel editable="false">true</VRFTabelLabel>
        <ExportDirectRoutes>true</ExportDirectRoutes>
        <RoutingProtocol>OSPF/Static Route</RoutingProtocol>
        <PEInterfaceIP editable="true" selection="Select manually"/>
        <IPPoolType editable="false">None</IPPoolType>
        <AddressBlockSize editable="true">29</AddressBlockSize>
        </ServiceElementConfigurationDefinition>
        <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNEndPointParameterDefType">
        <VlanIdSelection editable="false" selection="Auto pick"/>
        <VlanIdAuto max="0" min="0"/>
        <VlanIdManual max="0" min="0"/>
        </ServiceEndPointConfigurationDefinition>
        </ServiceDefinition>
        </ServiceResource>
        </Data>
    
    

    Create a Hub-and-Spoke L3VPN Service Definition with Static Routing Protocol

    This request is used to create an L3VPN service definition with static routing protocol for hub-and-spoke topology.

    URI

    api/space/nsas/l3vpn/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

    Produces

    Creates an L3VPN service definition with static routing protocol for hub-and-spoke topology.

    Input

    Sample XML Input

        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    <ServiceResource>
    <ServiceDefinition>
    <Common>
               <Name>L3VPN_HupSpoke_SD_API</Name>
               <Comments>dfsdfs</Comments>
    </Common>
    <ServiceType>L3VPN</ServiceType>
    <EnableMVPN>false</EnableMVPN>
    <InterfaceType>L3 VPN (Hub-Spoke 1 Interface)</InterfaceType>
    <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNServiceEndpointGroupParameterDefType">
    <RouteTarget editable="false" selection="Auto pick"/>
    <RouteDistinguisher editable="false" selection="Auto pick"/>
    <VRFTabelLabel editable="false">true</VRFTabelLabel>
    <ExportDirectRoutes>true</ExportDirectRoutes>
    <RoutingProtocol>OSPF/Static Route</RoutingProtocol>
    <PEInterfaceIP editable="true" selection="Select manually"/>
    <IPPoolType editable="false">None</IPPoolType>
    <AddressBlockSize editable="true">29</AddressBlockSize>
    </ServiceElementConfigurationDefinition>
    <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNEndPointParameterDefType">
    <VlanIdSelection editable="false" selection="Auto pick"/>
    <VlanIdAuto max="0" min="0"/>
    <VlanIdManual max="0" min="0"/>
    </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>983111</Value>
        </Identity>
        <Code>200</Code>
        <Message>ServiceDefinition Created Successfully</Message>
        </Status>
        </Data>
    
    

    Get an L3VPN Service Definition with Default Service Template By Definition ID

    This request is used to retrieve the details of a particular L3VPN service definition with default service template, based on the service definition ID.

    URI

    api/space/nsas/l3vpn/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 L3VPN service definition with default service template.

    Output (Full-Mesh L3VPN)

    Sample XML Output

    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceDefinition key="1081369" uri="/api/space/nsas/l3vpn/service-management/service-definitions/1081369" href="/api/space/nsas/l3vpn/service-management/service-definitions/1081369">
    			<Common>
    				<Name>testSD_l3vpnFM_API_1</Name>
    				<Identity>1081369</Identity>
    				<State>Unpublished</State>
    				<CreatedDate>2015-02-23T17:21:55.000+05:30</CreatedDate>
    				<LastUpdatedDate>2015-02-23T17:21:55.000+05:30</LastUpdatedDate>
    				<CreatedBy>super</CreatedBy>
    			</Common>
    			<ServiceType>L3VPN</ServiceType>
    			<EnableMVPN>false</EnableMVPN>
    			<InterfaceType>L3 VPN (Full Mesh)</InterfaceType>
    			<DecoupleStatus>true</DecoupleStatus>
    			<ServiceTemplates>
    				<ServiceTemplate href="/api/space/nsas/l3vpn/service-management/service-templates/950272" uri="/api/space/nsas/l3vpn/service-management/service-templates/950272" key="/api/space/nsas/l3vpn/service-management/service-templates/950272">
    					<ID>950272</ID>
    					<Name>ST with _Descp_P2P</Name>
    					<Default>true</Default>
    				</ServiceTemplate>
    				<ServiceTemplate href="/api/space/nsas/l3vpn/service-management/service-templates/950296" uri="/api/space/nsas/l3vpn/service-management/service-templates/950296" key="/api/space/nsas/l3vpn/service-management/service-templates/950296">
    					<ID>950296</ID>
    					<Name>Flexi_Temp</Name>
    					<Default>false</Default>
    				</ServiceTemplate>
    			</ServiceTemplates>
    			<ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNServiceEndpointGroupParameterDefType">
    				<RouteTarget editable="false" selection="Auto pick"/>
    				<RouteDistinguisher editable="false" selection="Auto pick"/>
    				<VRFTabelLabel editable="false">true</VRFTabelLabel>
    				<ExportDirectRoutes>true</ExportDirectRoutes>
    				<RoutingProtocol>OSPF/Static Route</RoutingProtocol>
    				<PEInterfaceIP editable="false" selection="Auto pick"/>
    				<IPPoolType editable="false">Global</IPPoolType>
    				<AddressBlockSize editable="false">30</AddressBlockSize>
    			</ServiceElementConfigurationDefinition>
    			<ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNEndPointParameterDefType">
    				<VlanIdSelection editable="false" selection="Auto pick"/>
    				<VlanIdAuto max="0" min="0"/>
    				<VlanIdManual max="0" min="0"/>
    			</ServiceEndPointConfigurationDefinition>
    		</ServiceDefinition>
    	</ServiceResource>
    </Data>
    
    

    Output (Hub-and-Spoke L3VPN)

    Sample XML Output

    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceDefinition key="1081394" uri="/api/space/nsas/l3vpn/service-management/service-definitions/1081394" href="/api/space/nsas/l3vpn/service-management/service-definitions/1081394">
    			<Common>
    				<Name>test_l3vpnHS_SD_API_001</Name>
    				<Identity>1081394</Identity>
    				<State>Unpublished</State>
    				<CreatedDate>2015-02-23T17:28:15.000+05:30</CreatedDate>
    				<LastUpdatedDate>2015-02-23T17:28:15.000+05:30</LastUpdatedDate>
    				<CreatedBy>super</CreatedBy>
    			</Common>
    			<ServiceType>L3VPN</ServiceType>
    			<EnableMVPN>false</EnableMVPN>
    			<InterfaceType>L3 VPN (Hub-Spoke 1 Interface)</InterfaceType>
    			<DecoupleStatus>true</DecoupleStatus>
    			<ServiceTemplates>
    				<ServiceTemplate href="/api/space/nsas/l3vpn/service-management/service-templates/950272" uri="/api/space/nsas/l3vpn/service-management/service-templates/950272" key="/api/space/nsas/l3vpn/service-management/service-templates/950272">
    					<ID>950272</ID>
    					<Name>ST with _Descp_P2P</Name>
    					<Default>true</Default>
    				</ServiceTemplate>
    				<ServiceTemplate href="/api/space/nsas/l3vpn/service-management/service-templates/950296" uri="/api/space/nsas/l3vpn/service-management/service-templates/950296" key="/api/space/nsas/l3vpn/service-management/service-templates/950296">
    					<ID>950296</ID>
    					<Name>Flexi_Temp</Name>
    					<Default>false</Default>
    				</ServiceTemplate>
    			</ServiceTemplates>
    			<ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNServiceEndpointGroupParameterDefType">
    				<RouteTarget editable="false" selection="Auto pick"/>
    				<RouteDistinguisher editable="false" selection="Auto pick"/>
    				<VRFTabelLabel editable="false">true</VRFTabelLabel>
    				<ExportDirectRoutes>true</ExportDirectRoutes>
    				<RoutingProtocol>OSPF/Static Route</RoutingProtocol>
    				<PEInterfaceIP editable="false" selection="Auto pick"/>
    				<IPPoolType editable="false">Global</IPPoolType>
    				<AddressBlockSize editable="false">29</AddressBlockSize>
    			</ServiceElementConfigurationDefinition>
    			<ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNEndPointParameterDefType">
    				<VlanIdSelection editable="false" selection="Auto pick"/>
    				<VlanIdAuto max="0" min="0"/>
    				<VlanIdManual max="0" min="0"/>
    			</ServiceEndPointConfigurationDefinition>
    		</ServiceDefinition>
    	</ServiceResource>
    </Data>
    
    

    Create an L3VPN Service Definition with Default Service Template

    This request is used to create an L3VPN service definition configured with default service template.

    URI

    api/space/nsas/l3vpn/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 L3VPN service definition configured with default service template.

    Input (Full-Mesh L3VPN)

    Sample XML Input

      <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceDefinition>
    			<Common>
    				<Name>testSD_l3vpnFM_API</Name>
    			</Common>
    			<ServiceType>L3VPN</ServiceType>
    			<EnableMVPN>false</EnableMVPN>
    			<InterfaceType>L3 VPN (Full Mesh)</InterfaceType>
    			<DecoupleStatus>true</DecoupleStatus>
    			<ServiceTemplates>				
    				<ServiceTemplate>
    					<ID>950272</ID>
    					<Name>ST with _Descp_P2P</Name>
    					<Default>true</Default>
    				</ServiceTemplate>
    				<ServiceTemplate>
    					<ID>950296</ID>
    					<Name>Flexi_Temp</Name>
    					<Default>false</Default>
    				</ServiceTemplate>
    			</ServiceTemplates>			
    			<ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNServiceEndpointGroupParameterDefType">
    				<RouteTarget editable="false" selection="Auto pick"/>
    				<RouteDistinguisher editable="false" selection="Auto pick"/>
    				<VRFTabelLabel editable="false">true</VRFTabelLabel>
    				<ExportDirectRoutes>true</ExportDirectRoutes>
    				<RoutingProtocol>OSPF/Static Route</RoutingProtocol>
    				<PEInterfaceIP editable="false" selection="Auto pick"/>
    				<IPPoolType editable="false">Global</IPPoolType>
    				<AddressBlockSize editable="false">30</AddressBlockSize>
    			</ServiceElementConfigurationDefinition>
    			<ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNEndPointParameterDefType">
    				<VlanIdSelection editable="false" selection="Auto pick"/>				
    			</ServiceEndPointConfigurationDefinition>
    		</ServiceDefinition>
    	</ServiceResource>
    </Data>
    
    

    Input (Hub-and-Spoke L3VPN)

    Sample XML Input

    <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<ServiceResource>
    		<ServiceDefinition key="2785355" uri="/api/space/nsas/l3vpn/service-management/service-definitions/2785355" href="/api/space/nsas/l3vpn/service-management/service-definitions/2785355">
    			<Common>
    				<Name>test_l3vpnHS_SD_API_001</Name>
    			</Common>
    			<ServiceType>L3VPN</ServiceType>
    			<EnableMVPN>false</EnableMVPN>
    			<InterfaceType>L3 VPN (Hub-Spoke 1 Interface)</InterfaceType>
    			<DecoupleStatus>true</DecoupleStatus>
    			<ServiceTemplates>				
    				<ServiceTemplate>
    					<ID>950272</ID>
    					<Name>ST with _Descp_P2P</Name>
    					<Default>true</Default>
    				</ServiceTemplate>
    				<ServiceTemplate>
    					<ID>950296</ID>
    					<Name>Flexi_Temp</Name>
    					<Default>false</Default>
    				</ServiceTemplate>
    			</ServiceTemplates>	
    			<ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNServiceEndpointGroupParameterDefType">
    				<RouteTarget editable="false" selection="Auto pick"/>
    				<RouteDistinguisher editable="false" selection="Auto pick"/>
    				<VRFTabelLabel editable="false">true</VRFTabelLabel>
    				<ExportDirectRoutes>true</ExportDirectRoutes>
    				<RoutingProtocol>OSPF/Static Route</RoutingProtocol>
    				<PEInterfaceIP editable="false" selection="Auto pick"/>
    				<IPPoolType editable="false">Global</IPPoolType>
    				<AddressBlockSize editable="false">29</AddressBlockSize>
    			</ServiceElementConfigurationDefinition>
    			<ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="L3VPNEndPointParameterDefType">
    				<VlanIdSelection editable="false" selection="Auto pick"/>				
    			</ServiceEndPointConfigurationDefinition>
    		</ServiceDefinition>
    	</ServiceResource>
    </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: 2016-07-14