InfraPolicy
An infra policy object that defines vm to host and other types of affinities.
{
"id": "string",
"name": "string",
"description": "string",
"vcComputePolicyName": "string",
"isMandatory": false,
"policyRule": {
"operator": "string",
"rules": [
"PolicyRule Object"
],
"workloadPolicyRule": {
"guestOsRule": {
"operator": "string",
"value": "string"
},
"guestOsFamilyRule": {
"operator": "string",
"value": "string"
},
"labelSelectorRules": [
{
"operator": "string",
"ruleKey": "string",
"values": [
"string"
]
}
]
}
},
"compatibleRegionZones": [
{
"region": {
"name": "string",
"id": "string"
},
"zones": [
{
"name": "string",
"id": "string"
}
]
}
],
"creationStatus": "string",
"creationTime": "string",
"syncedToVCenters": false
}
The URN of the infra policy.
The name of the infra policy. Must adhere to Kubernetes naming standards (RFC 1123 DNS label format) - must be no longer than 63 characters, start and end with a lowercase letter or number, and may contain lowercase letters, numbers, and hyphens.
The description of the infra policy.
The name of the vCenter compute policy to be used.
Indicates if the policy is mandatory.
A compute policy rule that defines the criteria against which the policy will be evaluated for a VM. A PolicyRule can contain either a workloadPolicyRule or a list of nested PolicyRules combined with a boolean operator. The nested rules in the 'rules' field are evaluated using the boolean operation specified in the 'operator' field. The workloadPolicyRule is always AND'd together with the results of the nested rules.
The list of region-zone mappings that are compatible with this infra policy.
The creation status of the infra policy. Possible values are:
- PENDING
- SUCCESS
- FAILED
The ISO-8601 timestamp representing when this infra policy was created.
Indicates whether this VCFA infra policy definition is in sync across all vCenters that participate in this policy. A vCenter participates if it has a matching vCenter compute policy name defined in the VCFA infra policy.