View plan details
/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
- application/json
-
planId: string
A unique ID referencing a specific plan.
-
expand(optional): array
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. -
fields(optional): array
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. - links(optional): array
Response
- application/json
200 Response
object
-
links(optional):
array links
Includes 'canonical'.
object
object
-
href(optional):
string
Link href.
-
method(optional):
string
HTTP Operation GET, POST, PUT
-
rel(optional):
string
Link relation.
403 Response
object
-
detail(optional):
string
Detailed error message
-
errorCode(optional):
string
Application specific error code
-
errorDetails(optional):
array errorDetails
additional errors
-
errorPath(optional):
string
-
instance(optional):
string
URI to the link that provides more detail about the error
-
status(optional):
string
HTTP status code
-
title:
string
Summary error message
-
type:
string
Error type
500 Response
object
-
detail(optional):
string
Detailed error message
-
errorCode(optional):
string
Application specific error code
-
errorDetails(optional):
array errorDetails
additional errors
-
errorPath(optional):
string
-
instance(optional):
string
URI to the link that provides more detail about the error
-
status(optional):
string
HTTP status code
-
title:
string
Summary error message
-
type:
string
Error type
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" }