View plan details

get

/apiplatform/management/v1/plans/{planId}

Returns details of the {planId} plan. The response also contains HATEOAS links to related operations.

Users requesting this resource must be assigned the Plan Manager, API Manager, or Gateway Manager role and must be issued the Manage Plan, View All details, or View Public Details for the specified plan.

Request

Supported Media Types
Path Parameters
Query Parameters
  • Collection Format: csv
    Pass optional fields, separated by commas, in this parameter to return them in the response. See the operation's description for a list of expand values.
  • Collection Format: csv
    Pass optional fields, separated by commas, in this parameter to return them in the response. See the operation's description for a list of field values.
Back to Top

Response

Supported Media Types

200 Response

The plan's definition.
Body ()
Root Schema : GetPlanResponse
Match All
Show Source
Nested Schema : ResourceLinksProperties
Type: object
Show Source
Nested Schema : Plan
Type: object

403 Response

Forbidden.
Body ()
Root Schema : Error
Type: object
Show Source
Nested Schema : errorDetails
Type: array
additional errors
Show Source

500 Response

Unexpected error.
Body ()
Root Schema : Error
Type: object
Show Source
Nested Schema : errorDetails
Type: array
additional errors
Show Source
Back to Top

Examples

The following example shows how to retrieve details of a plan by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL

curl -i -X GET 
-H "Authorization: Bearer access_token"
https://example.com/apiplatform/management/v1/plans/{planId}

{planId} is the unique Id for a plan. To retrieve available plan Ids, see Get plans.

Example of Response Headers

The following shows an example of the response headers.

HTTP/1.1 200 OK
Server: Oracle-Traffic-Director/12.2.1.0.0
Date:  Wed, 15 Mar 2017 09:20:36 GMT
Content-Length:  890
Content-Type:  application/json
X-oracle-dms-ecid:  f102c33f-1c5b-4409-806d-03bf5706c492-000223dd
X-oracle-dms-rid: 0:1
Via: 1.1 otd_opc
Proxy-agent: Oracle-Traffic-Director/12.2.1.0.0

Example of Response Body

The following example shows the contents of the response body in JSON format, including plan details and HATEOAS links to related operations.

{
    "createdAt": "2017-03-08T02:48:02-0800",
    "updatedBy": "apicsadmin",
    "createdBy": "apicsadmin",
    "name": "Climate v2",
    "description": "default",
    "links": [
        {
            "templated": "true",
            "method": "GET",
            "rel": "canonical",
            "href": "https://example.com:443/apiplatform/management/v1/plans/100"
        },
        {
            "templated": "true",
            "method": "GET",
            "rel": "preview",
            "href": "https://example.com:443/apiplatform/management/v1/plans/100"
        },
        {
            "templated": "true",
            "method": "GET",
            "rel": "contracts",
            "href": "https://example.com:443/apiplatform/management/v1/plans/100/contracts"
        },
        {
            "templated": "true",
            "method": "GET",
            "rel": "registrations",
            "href": "https://example.com:443/apiplatform/management/v1/plans/100/registrations"
        },
        {
            "templated": "true",
            "method": "GET",
            "rel": "grants",
            "href": "https://example.com:443/apiplatform/management/v1/plans/100/grants"
        }
    ],
    "id": "100",
    "updatedAt": "2017-03-14T02:22:43-0700"
}
Back to Top