[{"label":"Latest (v1.0)","version":"latest"}]
nsx-vmc-policy

FieldSanityConstraintExpression

Represents the field value constraint to constrain specified field value based on defined sanity checks. Example - For DNS.upstream_servers, all the IP addresses must either be public or private. { “target”: { “target_resource_type”: “DnsForwarderZone”, “attribute”: “upstreamServers”, “path_prefix”: “/infra/dns-forwarder-zones/” }, “constraint_expression”: { “resource_type”: “FieldSanityConstraintExpression”, “operator”: “OR”, “checks”: [“ALL_PUBLIC_IPS”, “ALL_PRIVATE_IPS”] } }


AllOf


This class requires all of the following:

JSON Example

{
	"_create_time": 0,
	"_create_user": "string",
	"_last_modified_time": 0,
	"_last_modified_user": "string",
	"_links": [
		{
			"action": "string",
			"href": "string",
			"rel": "string"
		}
	],
	"_protection": "string",
	"_revision": 0,
	"_schema": "string",
	"_self": {
		"action": "string",
		"href": "string",
		"rel": "string"
	},
	"_system_owned": false,
	"checks": [
		"ALL_PUBLIC_IPS"
	],
	"description": "string",
	"display_name": "string",
	"id": "string",
	"operator": "OR",
	"resource_type": "ValueConstraintExpression",
	"tags": [
		{
			"scope": "string",
			"tag": "string"
		}
	]
}

Vendor Extensions

This class contains the following vendor extensions defined in the spec:
x-vmw-nsx-module: PolicyConstraints
[{"label":"Latest (v1.0)","version":"latest"}]
nsx-vmc-policy

Feedback

Was this page helpful?