Oracle Cloud Infrastructure · JSON Structure

Networking Subnet Structure

A subnet in a virtual cloud network.

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

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

Properties

id compartmentId vcnId displayName cidrBlock availabilityDomain dnsLabel prohibitPublicIpOnVnic routeTableId securityListIds 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/networking-subnet-structure.json",
  "name": "Subnet",
  "description": "A subnet in a virtual cloud network.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The OCID of the subnet.",
      "example": "ocid1.subnet.oc1.iad.abcdefg123456"
    },
    "compartmentId": {
      "type": "string",
      "example": "ocid1.resource.oc1.iad.abcdefg123456"
    },
    "vcnId": {
      "type": "string",
      "description": "The OCID of the VCN.",
      "example": "ocid1.resource.oc1.iad.abcdefg123456"
    },
    "displayName": {
      "type": "string",
      "example": "public-subnet-1"
    },
    "cidrBlock": {
      "type": "string",
      "description": "The CIDR block of the subnet.",
      "example": "10.0.0.0/24"
    },
    "availabilityDomain": {
      "type": "string",
      "description": "The availability domain.",
      "example": "Uocm:US-ASHBURN-AD-1"
    },
    "dnsLabel": {
      "type": "string",
      "example": "myresource"
    },
    "prohibitPublicIpOnVnic": {
      "type": "boolean",
      "description": "Whether VNICs can have public IPs.",
      "example": true
    },
    "routeTableId": {
      "type": "string",
      "example": "ocid1.resource.oc1.iad.abcdefg123456"
    },
    "securityListIds": {
      "type": "array",
      "example": "['example-value']",
      "items": {
        "type": "string"
      }
    },
    "lifecycleState": {
      "type": "string",
      "enum": "['PROVISIONING', 'AVAILABLE', 'TERMINATING', 'TERMINATED']",
      "example": "PROVISIONING"
    },
    "timeCreated": {
      "type": "datetime",
      "example": "2026-04-18T10:30:00Z"
    }
  }
}