Get a Plan resource

get

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

Returns the resource at {pathname} for the {planId} Plan. Plan resources are files attached to a plan containing image files. The {pathname} is the filename of the resource you want to view. The pathnames of attached resources appear in the artifacts array returned in response from the /plans/{planId}/ resource.

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

Request

Supported Media Types
Path Parameters
Back to Top

Response

Supported Media Types

200 Response

The resources for the Plan.
Body ()
Root Schema : schema
Type: object
Show Source

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 the resource for a specific 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}/resources/{pathname}
  • {planid} is the unique Id for an plan. To retrieve available plan Ids, see Get plans.

  • {pathname} is the path name of the resource. The path names of attached resources appear in the artifacts array returned in response from View plan details. For example,

     "artifacts": [
            {
                "content-type": "image/png",
                "pathname": "planIcon"
            }

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:  Tue, 06 Feb 2018 09:22:45 GMT
Content-Length:  1076
Content-Type???image/png
X-oracle-dms-ecid:  49d14691-2176-4c99-aed3-38438604f528-00001dcd
x-oracle-dms-rid:  0
Via: 1.1 otd_opc
Proxy-agent: Oracle-Traffic-Director/12.2.1.0.0

Example of Response Body

The response body shows the contents of the file (planIcon) requested in the cURL example.

Back to Top