Oracle Cloud Infrastructure · JSON Structure

Iam Compartment Structure

A compartment for organizing cloud resources.

Type: object Properties: 6
Cloud ComputingEnterprise CloudInfrastructure as a ServiceOraclePlatform as a Service

Compartment is a JSON Structure definition published by Oracle Cloud Infrastructure, describing 6 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id compartmentId name description lifecycleState timeCreated

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/oracle-cloud/refs/heads/main/json-structure/iam-compartment-structure.json",
  "name": "Compartment",
  "description": "A compartment for organizing cloud resources.",
  "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": "my-compartment"
    },
    "description": {
      "type": "string",
      "example": "example-value"
    },
    "lifecycleState": {
      "type": "string",
      "enum": "['CREATING', 'ACTIVE', 'INACTIVE', 'DELETING', 'DELETED']",
      "example": "CREATING"
    },
    "timeCreated": {
      "type": "datetime",
      "example": "2026-04-18T10:30:00Z"
    }
  }
}