Share feedback
Answers are generated based on the documentation.

Experimental

Schema

NetworkPolicy

Type: object

NetworkPolicy is an inline policy request materialized in the governance plane.
allowNetworks

Type: array

allow_networks are exact network names or CIDRs allowed by this document.
Array item

Type: string

All schema constraints and annotations
{
  "type": "string"
}
All schema constraints and annotations
{
  "description": "allow_networks are exact network names or CIDRs allowed by this document.",
  "items": {
    "type": "string"
  },
  "type": "array"
}
denyNetworks

Type: array

deny_networks are exact network names or CIDRs denied by this document.
Array item

Type: string

All schema constraints and annotations
{
  "type": "string"
}
All schema constraints and annotations
{
  "description": "deny_networks are exact network names or CIDRs denied by this document.",
  "items": {
    "type": "string"
  },
  "type": "array"
}
mode · required

Type: string

mode is required and cannot be UNSPECIFIED.
All schema constraints and annotations
{
  "description": "mode is required and cannot be UNSPECIFIED.",
  "enum": [
    "denyAll"
  ],
  "not": {
    "enum": [
      "unspecified"
    ]
  },
  "title": "NetworkPolicyMode",
  "type": "string"
}
All schema constraints and annotations
{
  "additionalProperties": false,
  "description": "NetworkPolicy is an inline policy request materialized in the governance plane.",
  "properties": {
    "allowNetworks": {
      "description": "allow_networks are exact network names or CIDRs allowed by this document.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "denyNetworks": {
      "description": "deny_networks are exact network names or CIDRs denied by this document.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "mode": {
      "description": "mode is required and cannot be UNSPECIFIED.",
      "enum": [
        "denyAll"
      ],
      "not": {
        "enum": [
          "unspecified"
        ]
      },
      "title": "NetworkPolicyMode",
      "type": "string"
    }
  },
  "required": [
    "mode"
  ],
  "title": "NetworkPolicy",
  "type": "object"
}