{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/snowflake/main/json-schema/snowflake-network-rule-schema.json", "title": "NetworkRule", "description": "A Snowflake network rule", "x-generated": "2026-10-04", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/snowflake-network-rule-api-openapi.yml#/components/schemas/NetworkRule", "type": "object", "properties": { "type": { "type": "string", "description": "Type of the network rule" }, "mode": { "type": "string", "description": "Specifies what is restricted by the network rule. Possible values: INGRESS, INTERNAL_STAGE, EGRESS" }, "value_list": { "type": "array", "items": { "type": "string" }, "description": "List of values in a network rule" }, "comment": { "type": "string", "description": "Comment for the network rule" }, "name": { "type": "string", "pattern": "^\"([^\"]|\"\")+\"|[a-zA-Z_][a-zA-Z0-9_$]*$", "description": "Name of the network rule" }, "created_on": { "type": "string", "format": "date-time", "readOnly": true, "description": "Date and time when the network rule was created" }, "database_name": { "type": "string", "pattern": "^\"([^\"]|\"\")+\"|[a-zA-Z_][a-zA-Z0-9_$]*$", "readOnly": true, "description": "Database in which the network rule is stored" }, "schema_name": { "type": "string", "pattern": "^\"([^\"]|\"\")+\"|[a-zA-Z_][a-zA-Z0-9_$]*$", "readOnly": true, "description": "Schema in which the network rule is stored" }, "owner": { "type": "string", "pattern": "^\"([^\"]|\"\")+\"|[a-zA-Z_][a-zA-Z0-9_$]*$", "readOnly": true, "description": "Role that owns the network rule" }, "owner_role_type": { "type": "string", "readOnly": true, "description": "The type of role that owns the network rule" } }, "required": [ "type", "name" ] }