Inventory Management API

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

The following operations are supported on this resource:

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


This API returns information about physical termination points (PTPs) for a managed element given a managed element ID.

Access Control

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


Example Usage

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


Parameters

NameTypeURI TypeDescriptionRequired
me-idintPathThe ID of the managed element from which to retrieve PTPs. Y

Content Types

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


  • Sample Output XML:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <ptps uri="/api/space/managed-domain/managed-elements/262148/ptps" size="2">
       <ptp href="/api/space/managed-domain/ptps/262144" uri="/api/space/managed-domain/managed-elements/262148/ptps/262144" key="262144">
          <name>lo0</name>
          <adminStatus>up</adminStatus>
          <operationStatus>up</operationStatus>
          <speed>0</speed>
          <mtu>0</mtu>
          <id>262148</id>
       </ptp>
       <ptp href="/api/space/managed-domain/ptps/262149" uri="/api/space/managed-domain/managed-elements/262148/ptps/262149" key="262149">
          <name>fe-0/0/0</name>
          <adminStatus>up</adminStatus>
          <operationStatus>up</operationStatus>
          <speed>100</speed>
          <mtu>1514</mtu>
          <id>262148</id>
       </ptp>
    </ptps>


  • Sample Output JSON:

    {
    "ptps":
    {
       "@uri":"/api/space/managed-domain/managed-elements/262148/ptps",
       "@size":"2",
       "ptp":
       [
       {
          "@href":"/api/space/managed-domain/ptps/262144",
          "@uri":"/api/space/managed-domain/managed-elements/262148/ptps/262144",
          "@key":"262144",
          "name":"lo0",
          "adminStatus":"up",
          "operationStatus":"up",
          "speed":0,"mtu":0,
          "id":262148},
       {
          "@href":"/api/space/managed-domain/ptps/262149",
          "@uri":"/api/space/managed-domain/managed-elements/262148/ptps/262149",
          "@key":"262149",
          "name":"fe-0/0/0",
          "adminStatus":"up",
          "operationStatus":"up",
          "speed":100,
          "mtu":1514,
          "id":262148
       }
       ]
    }
    }