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

RelatedAttributeConditionalExpression

Represents the leaf level type expression to express constraint as value of realted attribute to the target. Example - Constraint traget attribute ‘X’ (example in Constraint), if destinationGroups contains ‘vCeneter’ then allow only values “HTTPS”, “HTTP” for attribute X. { “target”:{ “target_resource_type”:“CommunicationEntry”, “attribute”:“services”, “path_prefix”: “/infra/domains/{{DOMAIN}}/edge-communication-maps/default/communication-entries/” }, “constraint_expression”: { “resource_type”: “RelatedAttributeConditionalExpression”, “related_attribute”:{ “attribute”:“destinationGroups” }, “condition” : { “operator”:“INCLUDES”, “rhs_value”: ["/infra/domains/mgw/groups/VCENTER"], “value_constraint”: { “resource_type”: “ValueConstraintExpression”, “operator”:“INCLUDES”, “values”:["/infra/services/HTTP", “/infra/services/HTTPS”] } } } }


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,
	"condition": {
		"operator": "INCLUDES",
		"rhs_value": [
			"string"
		],
		"value_constraint": {
			"_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,
			"description": "string",
			"display_name": "string",
			"id": "string",
			"operator": "INCLUDES",
			"resource_type": "ValueConstraintExpression",
			"tags": [
				{
					"scope": "string",
					"tag": "string"
				}
			],
			"values": [
				"string"
			]
		}
	},
	"description": "string",
	"display_name": "string",
	"id": "string",
	"related_attribute": {
		"attribute": "string"
	},
	"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?