{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/nutanix/main/json-schema/nutanix-subnet-intent-input-schema.json", "title": "SubnetIntentInput", "description": "Input for creating or updating a subnet.", "x-generated": "2026-10-04", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/nutanix-subnets-api-openapi.yml#/components/schemas/SubnetIntentInput", "type": "object", "required": [ "spec", "metadata" ], "properties": { "spec": { "type": "object", "properties": { "name": { "type": "string", "description": "The name of the subnet." }, "resources": { "type": "object", "properties": { "subnet_type": { "type": "string", "description": "The type of subnet.", "enum": [ "VLAN", "OVERLAY" ] }, "vlan_id": { "type": "integer", "description": "VLAN ID for VLAN-type subnets." }, "ip_config": { "type": "object", "properties": { "subnet_ip": { "type": "string", "description": "Subnet IP address." }, "prefix_length": { "type": "integer", "description": "Network prefix length." }, "default_gateway_ip": { "type": "string", "description": "Default gateway IP address." }, "pool_list": { "type": "array", "items": { "type": "object", "properties": { "range": { "type": "string", "description": "IP range in the format start_ip end_ip." } } } } } } } }, "cluster_reference": { "$ref": "#/$defs/Reference" } } }, "metadata": { "$ref": "#/$defs/EntityMetadata" } }, "$defs": { "EntityMetadata": { "type": "object", "description": "Metadata for an entity.", "properties": { "kind": { "type": "string", "description": "The kind of entity." }, "uuid": { "type": "string", "format": "uuid", "description": "The UUID of the entity." }, "spec_version": { "type": "integer", "description": "Version number of the spec." }, "categories": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Categories assigned to the entity as key-value pairs." }, "owner_reference": { "$ref": "#/$defs/Reference" }, "project_reference": { "$ref": "#/$defs/Reference" } } }, "Reference": { "type": "object", "description": "A reference to another entity.", "required": [ "kind", "uuid" ], "properties": { "kind": { "type": "string", "description": "The kind of entity being referenced." }, "uuid": { "type": "string", "format": "uuid", "description": "The UUID of the referenced entity." }, "name": { "type": "string", "description": "The name of the referenced entity." } } } } }