Get policy resource
/apiplatform/management/v1/policies/{type}/{version}/resources/{pathname}
Returns the UI resource located at {version}
version of the {type}
policy. These resources are HTML or Javascript files used to render the policy UI in the Management Portal.
Users requesting this resource must be assigned the API Manager, or Gateway Manager role and must be issued the Manage API or View All Details grant for an API or the Manage Gateway or View All Details grant for a gateway.
Request
- application/json
-
pathname: string
The policy resource pathname, like
L10n/keyvalidation.json
. -
type: string
The policy type.
-
version: string
The policy version.
Response
- application/json
200 Response
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 resources of a policy 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/policies/{type}/{version}/resources/{pathname}
-
{type}
is the type of the policy. To retrieve available types, see Get policy types. -
{version}
is the version of the policy. To view the version of a policy type, see Get policy types. -
{pathname}
is the location of the resource. To view the resource path, see View policy metadata.
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 06:58:17 GMT Content-Length: 1137 Content-Type: text/html X-oracle-dms-ecid: f102c33f-1c5b-4409-806d-03bf5706c492-00021cdc 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.
{ "l10nBundle" : { "policy.name" : "OAuth 2.0", "policy.description" : "Enforces using the OAuth 2.0 protocol, that access to this API is only available to request on behalf of one of the listed accounts below.", "#OauthHelpInfo" : "Complete all fields. Comments are optional. You may add as many user accounts or groups as you like.", "target.title" : "Target Identity Management System", "reject.msg" : "REJECT the request if it is not sent on behalf of the specified users or groups.", "label.auth" : "Scope Enforcement Options", "label.title" : "Valid Scope", "method" : "Method", "msg.placeholder" : "Enter valid scopes. Press <Enter> after each scope.", "msg.noconditions" : "No conditions to display", "specific.users" : "At Least One", "all.users" : "Any", "http" : "HTTP Method Restricted", "tooltip.delcondition" : "Delete Scope", "tooltip.addcondition" : "Add Scope" } }