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

    Layer 2 Ethernet Devices and Tagging Management RESTful Web Services

    The following operations can be performed using the Connectivity Services Director Layer 2 Ethernet (L2E) Devices and Tagging Management RESTful Web Services.

    Get All L2E Devices

    This request is used to collect all the L2E devices.

    URI

    api/space/nsas/device-roles/l2e-devices

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.device-roles.
    l2e-devices+xml

    Produces

    Retrieves all the L2E devices that are managed and provisioned by the application.

    Output

    Sample XML Output

     <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <Devices size="2">
        <Device key="2031622" uri="/api/space/nsas/device-roles/l2e-devices/2031622" href="/api/space/nsas/device-roles/l2e-devices/2031622">
        <Common>
        <Name>embassy</Name>
        <Identity>2031622</Identity>
        </Common>
        <Role>L2E</Role>
        <MEId>1999069</MEId>
        </Device>
        <Device key="1802246" uri="/api/space/nsas/device-roles/l2e-devices/1802246" href="/api/space/nsas/device-roles/l2e-devices/1802246">
        <Common>
        <Name>exora</Name>
        <Identity>1802246</Identity>
        </Common>
        <Role>L2E</Role>
        <MEId>1737102</MEId>
        </Device>
        </Devices>
        </Data>
    

    Get L2E Devices By Device ID

    This request is used to retrieve a L2E device based on the device ID.

    URI

    api/space/nsas/device-roles/l2e-devices/<l2e-deviceID>

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.device-roles.
    l2e-devices+xml

    Produces

    Retrieves the L2E device based on the device ID.

    Output

    Sample XML Output

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <Devices>
        <Device key="2031622" uri="/api/space/nsas/device-roles/l2e-devices/2031622" href="/api/space/nsas/device-roles/l2e-devices/2031622">
        <Common>
        <Name>embassy</Name>
        <Identity>2031622</Identity>
        </Common>
        <ManagementAddress>10.216.114.109</ManagementAddress>
        <LoopBackAddress>50.1.2.4</LoopBackAddress>
        <EMSDeviceIdentifier>1835166</EMSDeviceIdentifier>
        <Role>L2E</Role>
        <MEId>1999069</MEId>
        <Ports>
        <Port>
        <Name>xe-0/0/0</Name>
        <Id>2031624</Id>
        <AdminStatus>down</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>512</InterfaceIndex>
        </Port>
        <Port>
        <Name>xe-0/0/1</Name>
        <Id>2031625</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>513</InterfaceIndex>
        </Port>
        <Port>
        <Name>xe-0/0/2</Name>
        <Id>2031626</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>514</InterfaceIndex>
        </Port>
        <Port>
        <Name>xe-0/0/3</Name>
        <Id>2031627</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>515</InterfaceIndex>
        </Port>
        <Port>
        <Name>ge-1/0/2</Name>
        <Id>2031628</Id>
        <AdminStatus>down</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>520</InterfaceIndex>
        </Port>
        <Port>
        <Name>ge-1/0/3</Name>
        <Id>2031629</Id>
        <AdminStatus>down</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>521</InterfaceIndex>
        </Port>
        <Port>
        <Name>ge-1/0/4</Name>
        <Id>2031630</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>522</InterfaceIndex>
        </Port>
        <Port>
        <Name>ge-1/0/5</Name>
        <Id>2031631</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>extended-vlan-ccc</Encapsulation>
        <InterfaceIndex>523</InterfaceIndex>
        </Port>
        <Port>
        <Name>ge-1/0/6</Name>
        <Id>2031632</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>flexible-ethernet-services</Encapsulation>
        <InterfaceIndex>525</InterfaceIndex>
        </Port>
        <Port>
        <Name>ge-1/0/7</Name>
        <Id>2031633</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>526</InterfaceIndex>
        </Port>
        <Port>
        <Name>ge-1/0/8</Name>
        <Id>2031634</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>528</InterfaceIndex>
        </Port>
        <Port>
        <Name>ge-1/0/9</Name>
        <Id>2031635</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>529</InterfaceIndex>
        </Port>
        <Port>
        <Name>ge-1/1/0</Name>
        <Id>2031636</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>531</InterfaceIndex>
        </Port>
        <Port>
        <Name>ge-1/1/1</Name>
        <Id>2031637</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>532</InterfaceIndex>
        </Port>
        <Port>
        <Name>ge-1/1/2</Name>
        <Id>2031638</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>533</InterfaceIndex>
        </Port>
        <Port>
        <Name>ge-1/1/3</Name>
        <Id>2031639</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>534</InterfaceIndex>
        </Port>
        <Port>
        <Name>ge-1/1/4</Name>
        <Id>2031640</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>535</InterfaceIndex>
        </Port>
        <Port>
        <Name>ge-1/1/5</Name>
        <Id>2031641</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>536</InterfaceIndex>
        </Port>
        <Port>
        <Name>ge-1/1/6</Name>
        <Id>2031642</Id>
        <AdminStatus>down</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>537</InterfaceIndex>
        </Port>
        <Port>
        <Name>ge-1/1/7</Name>
        <Id>2031643</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>538</InterfaceIndex>
        </Port>
        <Port>
        <Name>ge-1/1/8</Name>
        <Id>2031644</Id>
        <AdminStatus>down</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>539</InterfaceIndex>
        </Port>
        <Port>
        <Name>ge-1/1/9</Name>
        <Id>2031645</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>540</InterfaceIndex>
        </Port>
        <Port>
        <Name>xe-1/2/0</Name>
        <Id>2031646</Id>
        <AdminStatus>down</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>543</InterfaceIndex>
        </Port>
        <Port>
        <Name>xe-1/3/0</Name>
        <Id>2031647</Id>
        <AdminStatus>down</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>544</InterfaceIndex>
        </Port>
        <Port>
        <Name>em0</Name>
        <Id>2031648</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>17</InterfaceIndex>
        </Port>
        <Port>
        <Name>em1</Name>
        <Id>2031649</Id>
        <AdminStatus>down</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>23</InterfaceIndex>
        </Port>
        <Port>
        <Name>irb</Name>
        <Id>2031650</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        <InterfaceIndex>505</InterfaceIndex>
        </Port>
        </Ports>
        <TunnelNames>
        <Static>
        <LSPTunnelName>embassy-to-jaipur</LSPTunnelName>
        <LSPTunnelName>embassy-to-f2100-b</LSPTunnelName>
        <LSPTunnelName>embassy-to-amx1100-a</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_50_1_2_3</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_7</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_6</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_1</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_8</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_9</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_17</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_50_1_2_2</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_4</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_modify_embassy_to_30_1_2_5</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_16</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_25</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_2</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_11</LSPTunnelName>
        </Static>
        <NonStatic>
        <LSPTunnelName>embassy-to-jaipur</LSPTunnelName>
        <LSPTunnelName>embassy-to-f2100-b</LSPTunnelName>
        <LSPTunnelName>embassy-to-amx1100-a</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_50_1_2_3</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_7</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_6</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_1</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_8</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_9</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_17</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_50_1_2_2</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_4</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_modify_embassy_to_30_1_2_5</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_16</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_25</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_2</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_11</LSPTunnelName>
        </NonStatic>
        </TunnelNames>
        </Device>
        </Devices>
        </Data>
    

    Get L2E Devices By Device Name

    This request is used to retrieve a L2E device based on the device name.

    URI

    api/space/nsas/device-roles/l2e-devices/
    ?deviceName={Device-Name}

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.device-roles.
    l2e-devices+xml

    Produces

    Retrieves the L2E device based on the device name.

    Output

    Sample XML Output

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <Devices>
        <Device key="2031622" uri="/api/space/nsas/device-roles/l2e-devices/embassy" href="/api/space/nsas/device-roles/l2e-devices/embassy">
        <Common>
        <Name>embassy</Name>
        <Identity>2031622</Identity>
        </Common>
        <Role>L2E</Role>
        <MEId>1999069</MEId>
        <Ports>
        <Port>
        <Name>xe-0/0/0</Name>
        <Id>2031624</Id>
        <AdminStatus>down</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>xe-0/0/1</Name>
        <Id>2031625</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>xe-0/0/2</Name>
        <Id>2031626</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>xe-0/0/3</Name>
        <Id>2031627</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>ge-1/0/2</Name>
        <Id>2031628</Id>
        <AdminStatus>down</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>ge-1/0/3</Name>
        <Id>2031629</Id>
        <AdminStatus>down</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>ge-1/0/4</Name>
        <Id>2031630</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>ge-1/0/5</Name>
        <Id>2031631</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>extended-vlan-ccc</Encapsulation>
        </Port>
        <Port>
        <Name>ge-1/0/6</Name>
        <Id>2031632</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>flexible-ethernet-services</Encapsulation>
        </Port>
        <Port>
        <Name>ge-1/0/7</Name>
        <Id>2031633</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>ge-1/0/8</Name>
        <Id>2031634</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>ge-1/0/9</Name>
        <Id>2031635</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>ge-1/1/0</Name>
        <Id>2031636</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>ge-1/1/1</Name>
        <Id>2031637</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>ge-1/1/2</Name>
        <Id>2031638</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>ge-1/1/3</Name>
        <Id>2031639</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>ge-1/1/4</Name>
        <Id>2031640</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>ge-1/1/5</Name>
        <Id>2031641</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>ge-1/1/6</Name>
        <Id>2031642</Id>
        <AdminStatus>down</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>ge-1/1/7</Name>
        <Id>2031643</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>ge-1/1/8</Name>
        <Id>2031644</Id>
        <AdminStatus>down</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>ge-1/1/9</Name>
        <Id>2031645</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>xe-1/2/0</Name>
        <Id>2031646</Id>
        <AdminStatus>down</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>xe-1/3/0</Name>
        <Id>2031647</Id>
        <AdminStatus>down</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>em0</Name>
        <Id>2031648</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>em1</Name>
        <Id>2031649</Id>
        <AdminStatus>down</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        <Port>
        <Name>irb</Name>
        <Id>2031650</Id>
        <AdminStatus>up</AdminStatus>
        <Encapsulation>none</Encapsulation>
        </Port>
        </Ports>
        <TunnelNames>
        <Static>
        <LSPTunnelName>embassy-to-jaipur</LSPTunnelName>
        <LSPTunnelName>embassy-to-f2100-b</LSPTunnelName>
        <LSPTunnelName>embassy-to-amx1100-a</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_50_1_2_3</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_7</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_6</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_1</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_8</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_9</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_17</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_50_1_2_2</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_4</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_modify_embassy_to_30_1_2_5</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_16</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_25</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_2</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_11</LSPTunnelName>
        </Static>
        <NonStatic>
        <LSPTunnelName>embassy-to-jaipur</LSPTunnelName>
        <LSPTunnelName>embassy-to-f2100-b</LSPTunnelName>
        <LSPTunnelName>embassy-to-amx1100-a</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_50_1_2_3</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_7</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_6</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_1</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_8</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_9</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_17</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_50_1_2_2</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_4</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_modify_embassy_to_30_1_2_5</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_16</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_25</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_2</LSPTunnelName>
        <LSPTunnelName>FM_LSP15_embassy_to_30_1_2_11</LSPTunnelName>
        </NonStatic>
        </TunnelNames>
        </Device>
        </Devices>
        </Data>
    
    

    Get All Device Tags

    This request is used to collect all the device tags.

    URI

    api/space/nsas/na/device-tags/

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.na.device.tags+xml

    Produces

    Retrieves all the device tags.

    Output

    Sample XML Output

        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    	<Tags size="2">
    		<Tag key="4784165" uri="/api/space/nsas/na/device-tags/4784165" href="/api/space/nsas/na/device-tags/4784165">
    			<Name>Device_Tag_Private</Name>
    			<Identity>4784165</Identity>
    			<AccessType>private</AccessType>
    		</Tag>
    		<Tag key="4784154" uri="/api/space/nsas/na/device-tags/4784154" href="/api/space/nsas/na/device-tags/4784154">
    			<Name>Device_Tag_Public</Name>
    			<Identity>4784154</Identity>
    			<AccessType>public</AccessType>
    		</Tag>
        </Tags>
        </Data>
    
    

    Get Device Tags By ID

    This request is used to retrieve a device tag based on the tag identifier.

    URI

    /api/space/nsas/na/device-tags/{deviceId}

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.na.device.tag+xml

    Produces

    Retrieves the device tag based on the tag ID.

    Output

    Sample XML Output

        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <Tags>
    		<Tag key="4784165" uri="/api/space/nsas/na/device-tags/4784165" href="/api/space/nsas/na/device-tags/4784165">
    			<Name>Device_Tag_Private</Name>
    			<Identity>4784165</Identity>
    			<AccessType>private</AccessType>
    		</Tag>
    		<Devices size="2">
    			<Device key="1048588" uri="/api/space/nsas/device-roles/pe-devices/1048588" href="/api/space/nsas/device-roles/pe-devices/1048588">
    			<Common>
    				<Name>junos-mx80-1-space</Name>
    				<Identity>1048588</Identity>
    			</Common>
    			</Device>
    			<Device key="1048684" uri="/api/space/nsas/device-roles/pe-devices/1048684" href="/api/space/nsas/device-roles/pe-devices/1048684">
    			<Common>
    				<Name>fortius-f4000-a</Name>
    				<Identity>1048684</Identity>
    				</Common>
    			</Device>
    		</Devices>
        </Tags>
        </Data>
    
    

    Get All Service Tags

    This request is used to collect all the service tags.

    URI

    api/space/nsas/na/service-tags/

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.na.service.tags+xml

    Produces

    Retrieves all the service tags.

    Output

    Sample XML Output

        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <Tags size="2">    
    		<Tag key="4784187" uri="/api/space/nsas/na/service-tags/4784187" href="/api/space/nsas/na/service-tags/4784187">
    			<Name>Service_Tag_Private</Name>
    			<Identity>4784187</Identity>
    			<AccessType>private</AccessType>
    		</Tag>
    		<Tag key="4784191" uri="/api/space/nsas/na/service-tags/4784191" href="/api/space/nsas/na/service-tags/4784191">
    			<Name>Service_Tag_Public</Name>
    			<Identity>4784191</Identity>
    			<AccessType>public</AccessType>
    		</Tag>    
        </Tags>
        </Data>
    

    Get Service Tags By ID

    This request is used to retrieve a service tag based on the tag identifier.

    URI

    /api/space/nsas/na/service-tags/{serviceId}

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.na.service.tag+xml

    Produces

    Retrieves the service tag based on the tag ID.

    Output

    Sample XML Output

        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <Tags>
    		<Tag key="4784187" uri="/api/space/nsas/na/service-tags/4784187" href="/api/space/nsas/na/service-tags/4784187">
    			<Name>Service_Tag_Private</Name>
    			<Identity>4784187</Identity>
    			<AccessType>private</AccessType>
    		</Tag>
    		<Services size="2">
    			<Service key="4161543" uri="/api/space/nsas/eline-ptp/service-management/services/4161543" href="/api/space/nsas/eline-ptp/service-management/services/4161543">
    				<Common>
    					<Name>p2p_1</Name>
    					<Identity>4161543</Identity>
    					<State>Deployed</State>
    				</Common>
    			</Service>
    			<Service key="4358184" uri="/api/space/nsas/l3vpn/service-management/services/4358184" href="/api/space/nsas/l3vpn/service-management/services/4358184">
    				<Common>
    					<Name>l3vpn2</Name>
    					<Identity>4358184</Identity>
    					<State>Deployed</State>
    				</Common>
    			</Service>
    		</Services>
        </Tags>
        </Data>
    

    Get All Service Order Tags

    This request is used to collect all the service order tags.

    URI

    api/space/nsas/na/service-order-tags/

    HTTP Method

    GET

    Consumes

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

    Produces

    Retrieves all the service order tags.

    Output

    Sample XML Output

        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <Tags size="2">
    		<Tag key="4784181" uri="/api/space/nsas/na/service-order-tags/4784181" href="/api/space/nsas/na/service-order-tags/4784181">
    			<Name>SO_Tag_Private</Name>
    			<Identity>4784181</Identity>
    			<AccessType>private</AccessType>
    		</Tag>
    		<Tag key="4784175" uri="/api/space/nsas/na/service-order-tags/4784175" href="/api/space/nsas/na/service-order-tags/4784175">
    			<Name>SO_Tag_Public</Name>
    			<Identity>4784175</Identity>
    			<AccessType>public</AccessType>
    		</Tag>
        </Tags>
        </Data>
    

    Get Service Order Tags By ID

    This request is used to retrieve a service order tag based on the tag identifier.

    URI

    /api/space/nsas/na/service-order-tags/{soId}

    HTTP Method

    GET

    Consumes

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

    Produces

    Retrieves the service order tag based on the tag ID.

    Output

    Sample XML Output

        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <Tags>
    		<Tag key="4784181" uri="/api/space/nsas/na/service-order-tags/4784181" href="/api/space/nsas/na/service-order-tags/4784181">
    			<Name>SO_Tag_Private</Name>
    			<Identity>4784181</Identity>
    			<AccessType>private</AccessType>
    		</Tag>
    		<ServiceOrders size="1">
    			<ServiceOrder key="4161553" uri="/api/space/nsas/eline-ptp/service-management/service-orders/4161553" href="/api/space/nsas/eline-ptp/service-management/service-orders/4161553">
    				<Common>
    					<Name>p2p_2</Name>
    					<Identity>4161553</Identity>
    					<State>Failed_Deployed</State>
    				</Common>
    			</ServiceOrder>
    		</ServiceOrders>
        </Tags>
        </Data>
    

    Get All Service Definition Tags

    This request is used to collect all the service definition tags.

    URI

    api/space/nsas/na/sd-tags/

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.na.sd.tags+xml

    Produces

    Retrieves all the service definition tags.

    Output

    Sample XML Output

        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
    		<Tags size="3">
    			<Tag key="4784205" uri="/api/space/nsas/na/sd-tags/4784205" href="/api/space/nsas/na/sd-tags/4784205">
    				<Name>SD_Tag_Private</Name>
    				<Identity>4784205</Identity>
    				<AccessType>private</AccessType>
    			</Tag>
    			<Tag key="4784201" uri="/api/space/nsas/na/sd-tags/4784201" href="/api/space/nsas/na/sd-tags/4784201">
    				<Name>SD_Tag_Public</Name>
    				<Identity>4784201</Identity>
    				<AccessType>public</AccessType>
    			</Tag>
    				<Tag key="6389828" uri="/api/space/nsas/na/sd-tags/6389828" href="/api/space/nsas/na/sd-tags/6389828">
    				<Name>Test_SD_Types</Name>
    				<Identity>6389828</Identity>
    				<AccessType>private</AccessType>
    			</Tag>
    		</Tags>
        </Data>
    
    

    Get Service Definition Tags By Tag ID

    This request is used to retrieve a service definition tag based on the tag identifier.

    URI

    /api/space/nsas/na/sd-tags/{SDId}

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.na.sd.tag+xml

    Produces

    Retrieves the service definition tag based on the tag ID.

    Output

    Sample XML Output

        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <Data xmlns="services.schema.networkapi.jmp.juniper.net">
        <Tags>
    		<Tag key="4784205" uri="/api/space/nsas/na/sd-tags/4784205" href="/api/space/nsas/na/sd-tags/4784205">
    			<Name>SD_Tag_Private</Name>
    			<Identity>4784205</Identity>
    			<AccessType>private</AccessType>
    		</Tag>
    		<ServiceDefinitions size="2">
    			<ServiceDefinitions key="917504" uri="/api/space/nsas/cpp/service-management/service-definitions/917504" href="/api/space/nsas/cpp/service-management/service-definitions/917504">
    			<Common>
    				<Name>L3VPN_SD</Name>
    				<Identity>917504</Identity>
    				<State>Published</State>
    			</Common>
    			</ServiceDefinitions>
    			<ServiceDefinitions key="1441795" uri="/api/space/nsas/cpp/service-management/service-definitions/1441795" href="/api/space/nsas/cpp/service-management/service-definitions/1441795">
    			<Common>
    				<Name>Device_Configlet</Name>
    				<Identity>1441795</Identity>
    				<State>Published</State>
    			</Common>
    			</ServiceDefinitions>
    		</ServiceDefinitions>
        </Tags>
        </Data>
      
    

    Modified: 2015-10-13