Inventory Management API

/api/space/managed-domain/managed-elements/{id}/ptps/{ptpId}

The following operations are supported on this resource:

GET /api/space/managed-domain/managed-elements/{id}/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/managed-elements/{id}/ptps/{ptpId}


Parameters

NameTypeURI TypeDescriptionRequired
me-idintPathThe ID of the managed element from which to retrieve the PTP information. Y
ptp-idintPathThe ID of the PTP for which information is needed. Y

Content Types

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


  • Sample Output XML:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <ptp href="/api/space/managed-domain/ptps/262144" uri="/api/space/managed-domain/managed-elements/262148/ptps/262144">
       <id>262144</id>
       <name>lo0</name>
       <deviceId>229377</deviceId>
       <edgePoint>false</edgePoint>
       <isLoopback>true</isLoopback>
       <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":
    {
       "@href":"/api/space/managed-domain/ptps/262144",
       "@uri":"/api/space/managed-domain/managed-elements/262148/ptps/262144",
       "id":262144,
       "name":"lo0",
       "deviceId":229377,
       "edgePoint":false,
       "isLoopback":true,
       "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"
          }
       }
    }