Retrieve the Web Tier Policy

get

/__auth-mgmt-app/webtierpolicy

On Oracle Cloud Infrastructure, this endpoint is applicable only to Oracle Java Cloud Service instances that are created with Oracle Identity Cloud Service enabled, after release 19.2.1.

On Oracle Cloud Infrastructure Classic, this endpoint is applicable only to accounts that include Oracle Identity Cloud Service and Oracle Cloud Infrastructure Load Balancing Classic, and to Oracle Java Cloud Service instances that are created with Oracle Identity Cloud Service enabled, after release 18.4.2.

Returns the current CloudGate web tier policy for the specified WebLogic Server Admin host.

Note the following:

  • You must use this endpoint to get the current policy before you update any resources in the policy. Copy the entire current policy into the update request payload, then edit only the objects within the resourceFilters array.
  • You must have the WebLogic Server Admin global role to perform this operation.
  • (On Oracle Cloud Infrastructure Classic) Because this endpoint API is deployed on the WebLogic Administration Server, the ora_p2admin_ahttps access rule for the WebLogic Server Administration Console must be enabled before you can use the endpoint. See Update an Access Rule.

Request

Header Parameters
Back to Top

Response

Supported Media Types

200 Response

OK. See Status Codes for information about other possible HTTP status codes.
Body ()
Root Schema : webtierpolicy-response
Type: object
Show Source
Nested Schema : cloudgatePolicy
Type: object
Groups CloudGate webtier policy details.
Show Source
Nested Schema : webtierPolicy
Type: array
Groups web tier policy details.
Show Source
Nested Schema : webtierpolicy-details
Type: object
Show Source
Nested Schema : resourceFilters
Type: array
Groups resource filters.
Show Source
Nested Schema : resourcefilters-details
Type: object
Show Source
  • (When updating) Must be set to false.
  • Optional free-form text to describe the filter.
  • The path of the URL for the resource that you want to protect.

    (When updating) The path must begin with the / character. For example:

    /store/departments/.*

  • Authentication method for the resource filter.

    (When updating) Valid values are:

    • Oauth
    • Oauth+logout
    • Public (default)

  • Resource filter type.

    (When updating) Specify regex to indicate that the resource URL is defined as a regular expression match (not an exact text match).

Back to Top

Examples

The following example shows how to retrieve the CloudGate web tier policy by submitting a GET request on the REST resource using cURL.

cURL Command

curl -i -X GET -u username:password -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://host:port/__auth-mgmt-app/webtierpolicy

Note: Use the option -ik if a secure connection cannot be established because of an SSL certificate problem.

host:port is the public IP address and port to the WebLogic Admin Server. See Get a Service Instance (publicIpAddress of the ADMIN_SERVER host). On Oracle Cloud Infrastructure Classic, see also View All Access Rules (ora_p2admin_ahttps port).

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 200 OK
Date: Tue, 04 Sep 2018 17:50:44 GMT
Content-Length: 1567
Content-Type: application/json

Example of Response Body

The following shows an example of the response returned in JSON format.

{
   "cloudgatePolicy":{
      "disableAuthorize":false,
      "allowCors":false,
      "requireSecureCookies":true,
      "webtierPolicy":[
         {
            "policyName":"jcs_cg_policy",
            "resourceFilters":[
               {
                  "type":"regex",
                  "filter":"\/__protected\/.*",
                  "method":"oauth",
                  "authorize":false
               },
               {
                  "type":"regex",
                  "filter":"\/.*\/__protected\/.*",
                  "method":"oauth",
                  "authorize":false
               },
               {
                  "type":"regex",
                  "filter":"\/bea_wls_management_internal2.*",
                  "method":"unsupported"
               },
               {
                  "type":"regex",
                  "filter":"\/bea_wls_diagnostics.*",
                  "method":"unsupported"
               },
               {
                  "type":"regex",
                  "filter":"\/uddi.*",
                  "method":"unsupported"
               },
               {
                  "type":"regex",
                  "filter":"\/uddiexplorer.*",
                  "method":"unsupported"
               },
               {
                  "type":"regex",
                  "filter":"\/wsm-pm.*",
                  "method":"unsupported"
               },
               {
                  "type":"regex",
                  "filter":"\/console.*",
                  "method":"unsupported"
               },
               {
                  "type":"regex",
                  "filter":"\/console-help.*",
                  "method":"unsupported"
               },
               {
                  "type":"regex",
                  "filter":"\/wlstestclient.*",
                  "method":"unsupported"
               },
               {
                  "type":"regex",
                  "filter":"\/wls_utc.*",
                  "method":"unsupported"
               },
               {
                  "type":"regex",
                  "filter":"\/mejb.*",
                  "method":"unsupported"
               },
               {
                  "type":"regex",
                  "filter":"\/bea_wls_deployment_internal.*",
                  "method":"unsupported"
               },
               {
                  "type":"regex",
                  "filter":"\/bea_wls_internal.*",
                  "method":"unsupported"
               },
               {
                  "type":"regex",
                  "filter":"\/bea_wls9_async_response.*",
                  "method":"unsupported"
               },
               {
                  "type":"regex",
                  "filter":"\/bea_wls_async_response.*",
                  "method":"unsupported"
               },
               {
                  "type":"regex",
                  "filter":"\/wls-wsat.*",
                  "method":"unsupported"
               },
               {
                  "type":"regex",
                  "filter":"\/wls-cat.*",
                  "method":"unsupported"
               },
               {
                  "type":"regex",
                  "filter":"\/wsil-wls.*",
                  "method":"unsupported"
               },
               {
                  "type":"regex",
                  "filter":".*",
                  "method":"public"
               }
            ]
         }
      ],
      "version":"2.3"
   }
}
Back to Top