Policy

An IAM policy with authorization statements.

Cloud ComputingEnterprise CloudInfrastructure as a ServiceOraclePlatform as a Service

Properties

Name Type Description
id string
compartmentId string
name string
description string
statements array
lifecycleState string
timeCreated string
View JSON Schema on GitHub

JSON Schema

iam-policy-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/oracle-cloud/refs/heads/main/json-schema/iam-policy-schema.json",
  "title": "Policy",
  "description": "An IAM policy with authorization statements.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "example": "ocid1.resource.oc1.iad.abcdefg123456"
    },
    "compartmentId": {
      "type": "string",
      "example": "ocid1.resource.oc1.iad.abcdefg123456"
    },
    "name": {
      "type": "string",
      "example": "AllowAdmins"
    },
    "description": {
      "type": "string",
      "example": "example-value"
    },
    "statements": {
      "type": "array",
      "example": "['Allow group Administrators to manage all-resources in tenancy']",
      "items": {
        "type": "string"
      }
    },
    "lifecycleState": {
      "type": "string",
      "enum": "['CREATING', 'ACTIVE', 'INACTIVE', 'DELETING', 'DELETED']",
      "example": "CREATING"
    },
    "timeCreated": {
      "type": "string",
      "format": "date-time",
      "example": "2026-04-18T10:30:00Z"
    }
  }
}