Get a list of Policies

get

/access-governance/access-controls/20250331/policies

Returns details of all available policies with support for pagination.

Request

Query Parameters
  • Keyword to filter on. Only one keyword may be provided. Default is empty string.
  • Minimum Value: 1
    Maximum Value: 1000
    The maximum number of items to return.
    Default Value: 10
  • Minimum Length: 1
    A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
  • The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
    Default Value: timeCreated
    Allowed Values: [ "timeCreated", "displayName" ]
  • The sort order to use, either 'ASC' or 'DESC'.
    Allowed Values: [ "ASC", "DESC" ]
  • A filter to be used for finding entities with the given status.
    Default Value: ALL
    Allowed Values: [ "ALL", "ACTIVE", "DRAFT", "INACTIVE" ]
Header Parameters
  • The client request ID for tracing. The only valid characters for request IDs are letters, numbers, underscore, and dash.
Back to Top

Response

Supported Media Types

200 Response

A list of Policy Summaries
Headers
  • For pagination of a list of items. When paging through a list, if this header appears in the response, then a partial list might have been returned. Include this value as the `page` parameter for the subsequent GET request to get the next batch of items.
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : PolicyCollection
Type: object
PolicyCollection contains summarized information about Policies.
Show Source
Nested Schema : items
Type: array
List containing summarized information about Policies.
Show Source
Nested Schema : PolicySummary
Type: object
Policy Summary.
Show Source
Nested Schema : IdInfo
Type: object
Generic identifying information object.
Show Source
Nested Schema : customAttributes
Type: object
Metadata associated with the access bundle
Show Source
Nested Schema : PrimaryOwner
Type: object
Details of a primary Owner
Show Source
Nested Schema : tags
Type: array
List of tags attached to the Policy.
Show Source

400 Response

Bad Request
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

401 Response

Unauthorized
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

404 Response

Not Found
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

429 Response

Too Many Requests
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

500 Response

Internal Server Error
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

Default Response

Unknown Error
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source
Back to Top

Examples

The following example shows how to retrieve a list of policies by submitting a GET request.

cURL Example - Without Query Parameters

curl -i -X GET \
   -H "Authorization:Bearer <your access token>" \
 'https://${service-instance-url}/access-governance/access-controls/20250331/policies'

Example of the Response Body

The following example shows the contents of the response body in JSON format, including a list of all available roles:

{
    "items": [
        {
            "id": "958b9x2a-0993-4x16-8ff2-d4730307c1c0",
            "name": "Database Administration Policy",
            "description": "Defines administrative privileges for database management, including configuration settings, user management, and system maintenance.",
            "createdBy": {
                "id": "globalId.12512xx3-eedc-4d6a-b6d4-6c0f6537bad2.18.02e36bbb4b20x421b44aa046b3ceb16a",
                "name": "Amel MacLead",
                "displayName": "Amel MacLead"
            },
            "timeCreated": "2025-04-10T20:58:00.273Z",
            "timeUpdated": "2025-04-10T20:58:00.273Z",
            "status": "ACTIVE",
            "tags": null,
            "customAttributes": null,
            "primaryOwner": {
                "value": "globalId.12512xx3-eedc-4d6a-b6d4-6c0f6537bad2.18.02e36bbb4b20x421b44aa046b3ceb16a",
                "displayName": "Amel MacLead"
            },
            "isOwner": false
        },
        {
            "id": "e158axd3-8575-4xff-892f-a293aa3c3d69",
            "name": "Database Auditing Policy",
            "description": "Establishes guidelines for auditing database activity, tracking user interactions, privilege changes, and compliance monitoring.",
            "createdBy": {
                "id": "globalId.12512xx3-eedc-4d6a-b6d4-6c0f6537bad2.18.02e36bbb4b20x421b44aa046b3ceb16a",
                "name": "Amel MacLead",
                "displayName": "Amel MacLead"
            },
            "timeCreated": "2024-08-05T10:36:24.472Z",
            "timeUpdated": "2025-04-06T09:01:57.908Z",
            "status": "ACTIVE",
            "tags": null,
            "customAttributes": null,
            "primaryOwner": {
                "value": null,
                "displayName": null
            },
            "isOwner": null
        }
    ]
}
}
Back to Top