Inventory Management API

/api/space/managed-domain/ptps/{ptpId} (v1)

The following operations are supported on this resource:

GET /api/space/managed-domain/ptps/{ptpId} (v1)


This API returns physical termination point (PTP) information for a single point.

Access Control

The following capabilities are required to access this API:
"ViewPhysicalInventory"


Example Usage

GET /api/space/managed-domain/ptps/{ptpId}


Parameters

NameTypeURI TypeDescriptionRequired
ptp-idintPathThe ID of the PTP from which information is needed. Y

Content Types

  • Produces content types:
    application/vnd.net.juniper.space.managed-domain.ptp+xml;version=1
    application/vnd.net.juniper.space.managed-domain.ptp+json;version=1


  • Sample Output XML:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <ptp uri="/api/space/managed-domain/ptps/262144">
       <id>262144</id>
       <name>lo0</name>
       <deviceId>229377</deviceId>
       <edgePoint>false</edgePoint>
       <isLoopback>true</isLoopback>
       <ctps>
       <ctp>
          <id>262145</id>
          <name>lo0.0</name>
          <deviceId>229377</deviceId>
          <edgePoint>false</edgePoint>
          <ipAddr>127.0.0.1</ipAddr>
          <isLoopback>false</isLoopback>
          <ipNetmask>32</ipNetmask>
          <isManagement>false</isManagement>
       </ctp>
          </ctps>
       <encapsulation>none</encapsulation>
       <adminStatus>up</adminStatus>
       <operationStatus>up</operationStatus>
       <speed>0</speed>
       <mtu>0</mtu>
       <mtuStr>Unlimited</mtuStr>
       <managed-element href="/api/space/managed-domain/managed-elements/262148">
          <id>262148</id>
          <ipAddr>192.168.21.9</ipAddr>
       </managed-element>
    </ptp>


  • Sample Output JSON:

    {
    "ptp":{
       "@uri":"/api/space/managed-domain/ptps/262144","id":262144,
       "name":"lo0",
       "deviceId":229377,
       "edgePoint":false,
       "isLoopback":true,
       "ctps":
       {
       "ctp":
       {
          "id":262145,
          "name":"lo0.0",
          "deviceId":229377,
          "edgePoint":false,
          "ipAddr":"127.0.0.1",
          "isLoopback":false,
          "ipNetmask":32,
          "isManagement":false
       }
       },
       "encapsulation":"none",
       "adminStatus":"up",
       "operationStatus":"up",
       "speed":0,
       "mtu":0,
       "mtuStr":"Unlimited",
       "managed-element":
       {
       "@href":"/api/space/managed-domain/managed-elements/262148",
          "id":262148,
          "ipAddr":"192.168.21.9"
       }
    }
    }



    For the current version of this API, refer to :
  • version 3