Oracle Cloud Infrastructure · JSON Structure

Object Storage Create Bucket Details Structure

Details for creating a new bucket.

Type: object Properties: 7 Required: 2
Cloud ComputingEnterprise CloudInfrastructure as a ServiceOraclePlatform as a Service

CreateBucketDetails is a JSON Structure definition published by Oracle Cloud Infrastructure, describing 7 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

name compartmentId publicAccessType storageTier objectEventsEnabled versioning freeformTags

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/object-storage-create-bucket-details-structure.json",
  "name": "CreateBucketDetails",
  "description": "Details for creating a new bucket.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the bucket.",
      "example": "my-new-bucket"
    },
    "compartmentId": {
      "type": "string",
      "description": "The OCID of the compartment.",
      "example": "ocid1.compartment.oc1..abcdefg123456"
    },
    "publicAccessType": {
      "type": "string",
      "description": "The public access type.",
      "enum": "['NoPublicAccess', 'ObjectRead', 'ObjectReadWithoutList']",
      "default": "NoPublicAccess",
      "example": "NoPublicAccess"
    },
    "storageTier": {
      "type": "string",
      "description": "The storage tier type.",
      "enum": "['Standard', 'Archive']",
      "default": "Standard",
      "example": "Standard"
    },
    "objectEventsEnabled": {
      "type": "boolean",
      "description": "Whether events are emitted for object state changes.",
      "default": false,
      "example": false
    },
    "versioning": {
      "type": "string",
      "description": "The versioning status.",
      "enum": "['Enabled', 'Disabled']",
      "example": "Enabled"
    },
    "freeformTags": {
      "type": "object",
      "example": {
        "key1": "value1"
      }
    }
  },
  "required": [
    "name",
    "compartmentId"
  ]
}