{ "description": "Network policy applied to container.", "extends": { "$ref": "DiscoveredResource }, "id": "ContainerNetworkPolicy", "module_id": "InventoryContainerObj", "properties": { "_last_sync_time": { "$ref": "EpochMsTimestamp, "can_sort": true, "description": "Timestamp of last modification", "readonly": true }, "_links": { "description": "The server will populate this field when returing the resource. Ignored on PUT and POST.", "items": { "$ref": "ResourceLink }, "readonly": true, "title": "References related to this resource", "type": "array" }, "_schema": { "readonly": true, "title": "Schema for this resource", "type": "string" }, "_self": { "$ref": "SelfResourceLink, "readonly": true, "title": "Link to this resource" }, "container_cluster_id": { "description": "Identifier of the container cluster this network policy belongs to.", "readonly": false, "required": false, "title": "Identifier of the container cluster", "type": "string" }, "container_project_id": { "description": "Identifier of the project which this network policy belongs to.", "readonly": false, "required": false, "title": "Identifier of the project", "type": "string" }, "description": { "can_sort": true, "maxLength": 1024, "title": "Description of this resource", "type": "string" }, "display_name": { "can_sort": true, "description": "Defaults to ID if not set", "maxLength": 255, "title": "Identifier to use when displaying entity in logs or GUI", "type": "string" }, "external_id": { "description": "Identifier of the container network policy.", "readonly": false, "required": true, "title": "External identifier of the container network policy", "type": "string" }, "network_errors": { "description": "List of network errors related to container network policy.", "items": { "$ref": "NetworkError }, "readonly": false, "required": false, "title": "Network errors", "type": "array" }, "network_status": { "description": "Network status of container network policy.", "enum": [ "HEALTHY", "UNHEALTHY" ], "readonly": false, "required": false, "title": "Network status of container network policy", "type": "string" }, "origin_properties": { "description": "Array of additional specific properties of container network policy in key-value format.", "items": { "$ref": "KeyValuePair }, "readonly": false, "required": false, "title": "Origin properties", "type": "array" }, "policy_type": { "description": "Type e.g. Network Policy, ASG.", "enum": [ "NETWORK_POLICY", "ASG", "ACNP", "ANP" ], "readonly": false, "required": false, "title": "Type", "type": "string" }, "resource_type": { "description": "The type of this resource.", "readonly": false, "required": true, "type": "string" }, "scope": { "description": "Specifies list of scope of discovered resource. e.g. if VHC path is associated with principal identity, who owns the discovered resource, then scope id will be VHC path and scope type will be VHC.", "items": { "$ref": "DiscoveredResourceScope }, "readonly": false, "required": false, "title": "List of scopes for discovered resource", "type": "array" }, "spec": { "description": "Container network policy specification.", "readonly": false, "required": false, "title": "Container network policy specification", "type": "string" }, "tags": { "items": { "$ref": "Tag }, "maxItems": 30, "title": "Opaque identifiers meaningful to the API user", "type": "array" } }, "title": "Container Network Policy", "type": "object" }