Oracle Cloud Infrastructure · JSON Structure

Networking Create Vcn Details Structure

CreateVcnDetails schema from oracle-cloud-networking-openapi.yaml

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

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

Properties

compartmentId cidrBlocks displayName dnsLabel 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/networking-create-vcn-details-structure.json",
  "name": "CreateVcnDetails",
  "description": "CreateVcnDetails schema from oracle-cloud-networking-openapi.yaml",
  "type": "object",
  "properties": {
    "compartmentId": {
      "type": "string",
      "description": "The OCID of the compartment.",
      "example": "ocid1.resource.oc1.iad.abcdefg123456"
    },
    "cidrBlocks": {
      "type": "array",
      "description": "List of CIDR blocks for the VCN.",
      "example": "['10.0.0.0/16']",
      "items": {
        "type": "string"
      }
    },
    "displayName": {
      "type": "string",
      "description": "A user-friendly name.",
      "example": "my-vcn"
    },
    "dnsLabel": {
      "type": "string",
      "description": "DNS label for the VCN.",
      "example": "myvcn"
    },
    "freeformTags": {
      "type": "object",
      "example": {
        "key1": "value1"
      }
    }
  },
  "required": [
    "compartmentId",
    "cidrBlocks"
  ]
}