published on Tuesday, May 26, 2026 by Piers Karsenbarg
published on Tuesday, May 26, 2026 by Piers Karsenbarg
Provides a resource to create, read, update, and delete VM-Host Affinity policies. VM-Host Affinity policies ensure that VMs in specific categories are placed on hosts in specified categories. This enables better control over VM placement for compliance, performance, or licensing requirements. For more information on VM-Host Affinity Policies, see the AHV Administration Guide.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";
// Create VM categories
const vmAffinityCategory = new nutanix.CategoryV2("vm_affinity_category", {
key: "vm-host-affinity",
value: "vm-affinity-group-1",
});
// Create host categories
const hostAffinityCategory = new nutanix.CategoryV2("host_affinity_category", {
key: "vm-host-affinity",
value: "host-affinity-group-1",
});
// Create VM-Host Affinity policy
const example = new nutanix.VmHostAffinityPolicyV2("example", {
name: "vm-host-affinity-policy",
description: "Policy to place VMs on specific hosts",
vmCategories: [vmAffinityCategory.id],
hostCategories: [hostAffinityCategory.id],
});
import pulumi
import pulumi_nutanix as nutanix
# Create VM categories
vm_affinity_category = nutanix.CategoryV2("vm_affinity_category",
key="vm-host-affinity",
value="vm-affinity-group-1")
# Create host categories
host_affinity_category = nutanix.CategoryV2("host_affinity_category",
key="vm-host-affinity",
value="host-affinity-group-1")
# Create VM-Host Affinity policy
example = nutanix.VmHostAffinityPolicyV2("example",
name="vm-host-affinity-policy",
description="Policy to place VMs on specific hosts",
vm_categories=[vm_affinity_category.id],
host_categories=[host_affinity_category.id])
package main
import (
"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create VM categories
vmAffinityCategory, err := nutanix.NewCategoryV2(ctx, "vm_affinity_category", &nutanix.CategoryV2Args{
Key: pulumi.String("vm-host-affinity"),
Value: pulumi.String("vm-affinity-group-1"),
})
if err != nil {
return err
}
// Create host categories
hostAffinityCategory, err := nutanix.NewCategoryV2(ctx, "host_affinity_category", &nutanix.CategoryV2Args{
Key: pulumi.String("vm-host-affinity"),
Value: pulumi.String("host-affinity-group-1"),
})
if err != nil {
return err
}
// Create VM-Host Affinity policy
_, err = nutanix.NewVmHostAffinityPolicyV2(ctx, "example", &nutanix.VmHostAffinityPolicyV2Args{
Name: pulumi.String("vm-host-affinity-policy"),
Description: pulumi.String("Policy to place VMs on specific hosts"),
VmCategories: pulumi.StringArray{
vmAffinityCategory.ID(),
},
HostCategories: pulumi.StringArray{
hostAffinityCategory.ID(),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = PiersKarsenbarg.Nutanix;
return await Deployment.RunAsync(() =>
{
// Create VM categories
var vmAffinityCategory = new Nutanix.CategoryV2("vm_affinity_category", new()
{
Key = "vm-host-affinity",
Value = "vm-affinity-group-1",
});
// Create host categories
var hostAffinityCategory = new Nutanix.CategoryV2("host_affinity_category", new()
{
Key = "vm-host-affinity",
Value = "host-affinity-group-1",
});
// Create VM-Host Affinity policy
var example = new Nutanix.VmHostAffinityPolicyV2("example", new()
{
Name = "vm-host-affinity-policy",
Description = "Policy to place VMs on specific hosts",
VmCategories = new[]
{
vmAffinityCategory.Id,
},
HostCategories = new[]
{
hostAffinityCategory.Id,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.CategoryV2;
import com.pulumi.nutanix.CategoryV2Args;
import com.pulumi.nutanix.VmHostAffinityPolicyV2;
import com.pulumi.nutanix.VmHostAffinityPolicyV2Args;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// Create VM categories
var vmAffinityCategory = new CategoryV2("vmAffinityCategory", CategoryV2Args.builder()
.key("vm-host-affinity")
.value("vm-affinity-group-1")
.build());
// Create host categories
var hostAffinityCategory = new CategoryV2("hostAffinityCategory", CategoryV2Args.builder()
.key("vm-host-affinity")
.value("host-affinity-group-1")
.build());
// Create VM-Host Affinity policy
var example = new VmHostAffinityPolicyV2("example", VmHostAffinityPolicyV2Args.builder()
.name("vm-host-affinity-policy")
.description("Policy to place VMs on specific hosts")
.vmCategories(vmAffinityCategory.id())
.hostCategories(hostAffinityCategory.id())
.build());
}
}
resources:
# Create VM categories
vmAffinityCategory:
type: nutanix:CategoryV2
name: vm_affinity_category
properties:
key: vm-host-affinity
value: vm-affinity-group-1
# Create host categories
hostAffinityCategory:
type: nutanix:CategoryV2
name: host_affinity_category
properties:
key: vm-host-affinity
value: host-affinity-group-1
# Create VM-Host Affinity policy
example:
type: nutanix:VmHostAffinityPolicyV2
properties:
name: vm-host-affinity-policy
description: Policy to place VMs on specific hosts
vmCategories:
- ${vmAffinityCategory.id}
hostCategories:
- ${hostAffinityCategory.id}
pulumi {
required_providers {
nutanix = {
source = "pulumi/nutanix"
}
}
}
# Create VM categories
resource "nutanix_categoryv2" "vm_affinity_category" {
key = "vm-host-affinity"
value = "vm-affinity-group-1"
}
# Create host categories
resource "nutanix_categoryv2" "host_affinity_category" {
key = "vm-host-affinity"
value = "host-affinity-group-1"
}
# Create VM-Host Affinity policy
resource "nutanix_vmhostaffinitypolicyv2" "example" {
name = "vm-host-affinity-policy"
description = "Policy to place VMs on specific hosts"
vm_categories = [nutanix_categoryv2.vm_affinity_category.id]
host_categories = [nutanix_categoryv2.host_affinity_category.id]
}
Example Import
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";
// First, get the ext_id of the policy
const policies = nutanix.getVmHostAffinityPoliciesV2({});
// Create the configuration
const imported = new nutanix.VmHostAffinityPolicyV2("imported", {});
import pulumi
import pulumi_nutanix as nutanix
# First, get the ext_id of the policy
policies = nutanix.get_vm_host_affinity_policies_v2()
# Create the configuration
imported = nutanix.VmHostAffinityPolicyV2("imported")
package main
import (
"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// First, get the ext_id of the policy
_, err := nutanix.GetVmHostAffinityPoliciesV2(ctx, &nutanix.GetVmHostAffinityPoliciesV2Args{}, nil)
if err != nil {
return err
}
// Create the configuration
_, err = nutanix.NewVmHostAffinityPolicyV2(ctx, "imported", nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = PiersKarsenbarg.Nutanix;
return await Deployment.RunAsync(() =>
{
// First, get the ext_id of the policy
var policies = Nutanix.GetVmHostAffinityPoliciesV2.Invoke();
// Create the configuration
var imported = new Nutanix.VmHostAffinityPolicyV2("imported");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.NutanixFunctions;
import com.pulumi.nutanix.inputs.GetVmHostAffinityPoliciesV2Args;
import com.pulumi.nutanix.VmHostAffinityPolicyV2;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// First, get the ext_id of the policy
final var policies = NutanixFunctions.getVmHostAffinityPoliciesV2(GetVmHostAffinityPoliciesV2Args.builder()
.build());
// Create the configuration
var imported = new VmHostAffinityPolicyV2("imported");
}
}
resources:
# Create the configuration
imported:
type: nutanix:VmHostAffinityPolicyV2
variables:
# First, get the ext_id of the policy
policies:
fn::invoke:
function: nutanix:getVmHostAffinityPoliciesV2
arguments: {}
pulumi {
required_providers {
nutanix = {
source = "pulumi/nutanix"
}
}
}
data "nutanix_getvmhostaffinitypoliciesv2" "policies" {
}
# Create the configuration
resource "nutanix_vmhostaffinitypolicyv2" "imported" {
}
# First, get the ext_id of the policy
See detailed information in Nutanix VM-Host Affinity Policies V4
Create VmHostAffinityPolicyV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VmHostAffinityPolicyV2(name: string, args: VmHostAffinityPolicyV2Args, opts?: CustomResourceOptions);@overload
def VmHostAffinityPolicyV2(resource_name: str,
args: VmHostAffinityPolicyV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def VmHostAffinityPolicyV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
host_categories: Optional[Sequence[str]] = None,
vm_categories: Optional[Sequence[str]] = None,
description: Optional[str] = None,
name: Optional[str] = None)func NewVmHostAffinityPolicyV2(ctx *Context, name string, args VmHostAffinityPolicyV2Args, opts ...ResourceOption) (*VmHostAffinityPolicyV2, error)public VmHostAffinityPolicyV2(string name, VmHostAffinityPolicyV2Args args, CustomResourceOptions? opts = null)
public VmHostAffinityPolicyV2(String name, VmHostAffinityPolicyV2Args args)
public VmHostAffinityPolicyV2(String name, VmHostAffinityPolicyV2Args args, CustomResourceOptions options)
type: nutanix:VmHostAffinityPolicyV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "nutanix_vmhostaffinitypolicyv2" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args VmHostAffinityPolicyV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VmHostAffinityPolicyV2Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VmHostAffinityPolicyV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VmHostAffinityPolicyV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VmHostAffinityPolicyV2Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var vmHostAffinityPolicyV2Resource = new Nutanix.VmHostAffinityPolicyV2("vmHostAffinityPolicyV2Resource", new()
{
HostCategories = new[]
{
"string",
},
VmCategories = new[]
{
"string",
},
Description = "string",
Name = "string",
});
example, err := nutanix.NewVmHostAffinityPolicyV2(ctx, "vmHostAffinityPolicyV2Resource", &nutanix.VmHostAffinityPolicyV2Args{
HostCategories: pulumi.StringArray{
pulumi.String("string"),
},
VmCategories: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
resource "nutanix_vmhostaffinitypolicyv2" "vmHostAffinityPolicyV2Resource" {
host_categories = ["string"]
vm_categories = ["string"]
description = "string"
name = "string"
}
var vmHostAffinityPolicyV2Resource = new VmHostAffinityPolicyV2("vmHostAffinityPolicyV2Resource", VmHostAffinityPolicyV2Args.builder()
.hostCategories("string")
.vmCategories("string")
.description("string")
.name("string")
.build());
vm_host_affinity_policy_v2_resource = nutanix.VmHostAffinityPolicyV2("vmHostAffinityPolicyV2Resource",
host_categories=["string"],
vm_categories=["string"],
description="string",
name="string")
const vmHostAffinityPolicyV2Resource = new nutanix.VmHostAffinityPolicyV2("vmHostAffinityPolicyV2Resource", {
hostCategories: ["string"],
vmCategories: ["string"],
description: "string",
name: "string",
});
type: nutanix:VmHostAffinityPolicyV2
properties:
description: string
hostCategories:
- string
name: string
vmCategories:
- string
VmHostAffinityPolicyV2 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VmHostAffinityPolicyV2 resource accepts the following input properties:
- Host
Categories List<string> - List of host category external IDs that define where the VMs can be placed. Hosts with these categories will be used for VM placement.
- Vm
Categories List<string> - List of VM category external IDs that this policy applies to. VMs with these categories will be subject to the affinity placement rules.
- Description string
- A description of the VM-Host Affinity policy.
- Name string
- The name of the VM-Host Affinity policy.
- Host
Categories []string - List of host category external IDs that define where the VMs can be placed. Hosts with these categories will be used for VM placement.
- Vm
Categories []string - List of VM category external IDs that this policy applies to. VMs with these categories will be subject to the affinity placement rules.
- Description string
- A description of the VM-Host Affinity policy.
- Name string
- The name of the VM-Host Affinity policy.
- host_
categories list(string) - List of host category external IDs that define where the VMs can be placed. Hosts with these categories will be used for VM placement.
- vm_
categories list(string) - List of VM category external IDs that this policy applies to. VMs with these categories will be subject to the affinity placement rules.
- description string
- A description of the VM-Host Affinity policy.
- name string
- The name of the VM-Host Affinity policy.
- host
Categories List<String> - List of host category external IDs that define where the VMs can be placed. Hosts with these categories will be used for VM placement.
- vm
Categories List<String> - List of VM category external IDs that this policy applies to. VMs with these categories will be subject to the affinity placement rules.
- description String
- A description of the VM-Host Affinity policy.
- name String
- The name of the VM-Host Affinity policy.
- host
Categories string[] - List of host category external IDs that define where the VMs can be placed. Hosts with these categories will be used for VM placement.
- vm
Categories string[] - List of VM category external IDs that this policy applies to. VMs with these categories will be subject to the affinity placement rules.
- description string
- A description of the VM-Host Affinity policy.
- name string
- The name of the VM-Host Affinity policy.
- host_
categories Sequence[str] - List of host category external IDs that define where the VMs can be placed. Hosts with these categories will be used for VM placement.
- vm_
categories Sequence[str] - List of VM category external IDs that this policy applies to. VMs with these categories will be subject to the affinity placement rules.
- description str
- A description of the VM-Host Affinity policy.
- name str
- The name of the VM-Host Affinity policy.
- host
Categories List<String> - List of host category external IDs that define where the VMs can be placed. Hosts with these categories will be used for VM placement.
- vm
Categories List<String> - List of VM category external IDs that this policy applies to. VMs with these categories will be subject to the affinity placement rules.
- description String
- A description of the VM-Host Affinity policy.
- name String
- The name of the VM-Host Affinity policy.
Outputs
All input properties are implicitly available as output properties. Additionally, the VmHostAffinityPolicyV2 resource produces the following output properties:
- Create
Time string - The timestamp when the policy was created.
- Created
By Dictionary<string, string> - Information about the entity that created the policy.
- Ext
Id string - The external identifier of the policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated Dictionary<string, string>By - Information about the entity that last updated the policy.
- Num
Compliant intVms - Number of VMs which are compliant with the VM-host affinity policy.
- Num
Hosts int - Number of hosts associated with the VM-host affinity policy.
- Num
Non intCompliant Vms - Number of VMs which are not compliant with the VM-host affinity policy.
- Num
Vms int - Number of VMs associated with the VM-host affinity policy.
- Update
Time string - The timestamp when the policy was last updated.
- Create
Time string - The timestamp when the policy was created.
- Created
By map[string]string - Information about the entity that created the policy.
- Ext
Id string - The external identifier of the policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated map[string]stringBy - Information about the entity that last updated the policy.
- Num
Compliant intVms - Number of VMs which are compliant with the VM-host affinity policy.
- Num
Hosts int - Number of hosts associated with the VM-host affinity policy.
- Num
Non intCompliant Vms - Number of VMs which are not compliant with the VM-host affinity policy.
- Num
Vms int - Number of VMs associated with the VM-host affinity policy.
- Update
Time string - The timestamp when the policy was last updated.
- create_
time string - The timestamp when the policy was created.
- created_
by map(string) - Information about the entity that created the policy.
- ext_
id string - The external identifier of the policy.
- id string
- The provider-assigned unique ID for this managed resource.
- last_
updated_ map(string)by - Information about the entity that last updated the policy.
- num_
compliant_ numbervms - Number of VMs which are compliant with the VM-host affinity policy.
- num_
hosts number - Number of hosts associated with the VM-host affinity policy.
- num_
non_ numbercompliant_ vms - Number of VMs which are not compliant with the VM-host affinity policy.
- num_
vms number - Number of VMs associated with the VM-host affinity policy.
- update_
time string - The timestamp when the policy was last updated.
- create
Time String - The timestamp when the policy was created.
- created
By Map<String,String> - Information about the entity that created the policy.
- ext
Id String - The external identifier of the policy.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated Map<String,String>By - Information about the entity that last updated the policy.
- num
Compliant IntegerVms - Number of VMs which are compliant with the VM-host affinity policy.
- num
Hosts Integer - Number of hosts associated with the VM-host affinity policy.
- num
Non IntegerCompliant Vms - Number of VMs which are not compliant with the VM-host affinity policy.
- num
Vms Integer - Number of VMs associated with the VM-host affinity policy.
- update
Time String - The timestamp when the policy was last updated.
- create
Time string - The timestamp when the policy was created.
- created
By {[key: string]: string} - Information about the entity that created the policy.
- ext
Id string - The external identifier of the policy.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated {[key: string]: string}By - Information about the entity that last updated the policy.
- num
Compliant numberVms - Number of VMs which are compliant with the VM-host affinity policy.
- num
Hosts number - Number of hosts associated with the VM-host affinity policy.
- num
Non numberCompliant Vms - Number of VMs which are not compliant with the VM-host affinity policy.
- num
Vms number - Number of VMs associated with the VM-host affinity policy.
- update
Time string - The timestamp when the policy was last updated.
- create_
time str - The timestamp when the policy was created.
- created_
by Mapping[str, str] - Information about the entity that created the policy.
- ext_
id str - The external identifier of the policy.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated_ Mapping[str, str]by - Information about the entity that last updated the policy.
- num_
compliant_ intvms - Number of VMs which are compliant with the VM-host affinity policy.
- num_
hosts int - Number of hosts associated with the VM-host affinity policy.
- num_
non_ intcompliant_ vms - Number of VMs which are not compliant with the VM-host affinity policy.
- num_
vms int - Number of VMs associated with the VM-host affinity policy.
- update_
time str - The timestamp when the policy was last updated.
- create
Time String - The timestamp when the policy was created.
- created
By Map<String> - Information about the entity that created the policy.
- ext
Id String - The external identifier of the policy.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated Map<String>By - Information about the entity that last updated the policy.
- num
Compliant NumberVms - Number of VMs which are compliant with the VM-host affinity policy.
- num
Hosts Number - Number of hosts associated with the VM-host affinity policy.
- num
Non NumberCompliant Vms - Number of VMs which are not compliant with the VM-host affinity policy.
- num
Vms Number - Number of VMs associated with the VM-host affinity policy.
- update
Time String - The timestamp when the policy was last updated.
Look up Existing VmHostAffinityPolicyV2 Resource
Get an existing VmHostAffinityPolicyV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: VmHostAffinityPolicyV2State, opts?: CustomResourceOptions): VmHostAffinityPolicyV2@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
created_by: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
ext_id: Optional[str] = None,
host_categories: Optional[Sequence[str]] = None,
last_updated_by: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
num_compliant_vms: Optional[int] = None,
num_hosts: Optional[int] = None,
num_non_compliant_vms: Optional[int] = None,
num_vms: Optional[int] = None,
update_time: Optional[str] = None,
vm_categories: Optional[Sequence[str]] = None) -> VmHostAffinityPolicyV2func GetVmHostAffinityPolicyV2(ctx *Context, name string, id IDInput, state *VmHostAffinityPolicyV2State, opts ...ResourceOption) (*VmHostAffinityPolicyV2, error)public static VmHostAffinityPolicyV2 Get(string name, Input<string> id, VmHostAffinityPolicyV2State? state, CustomResourceOptions? opts = null)public static VmHostAffinityPolicyV2 get(String name, Output<String> id, VmHostAffinityPolicyV2State state, CustomResourceOptions options)resources: _: type: nutanix:VmHostAffinityPolicyV2 get: id: ${id}import {
to = nutanix_vmhostaffinitypolicyv2.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Create
Time string - The timestamp when the policy was created.
- Created
By Dictionary<string, string> - Information about the entity that created the policy.
- Description string
- A description of the VM-Host Affinity policy.
- Ext
Id string - The external identifier of the policy.
- Host
Categories List<string> - List of host category external IDs that define where the VMs can be placed. Hosts with these categories will be used for VM placement.
- Last
Updated Dictionary<string, string>By - Information about the entity that last updated the policy.
- Name string
- The name of the VM-Host Affinity policy.
- Num
Compliant intVms - Number of VMs which are compliant with the VM-host affinity policy.
- Num
Hosts int - Number of hosts associated with the VM-host affinity policy.
- Num
Non intCompliant Vms - Number of VMs which are not compliant with the VM-host affinity policy.
- Num
Vms int - Number of VMs associated with the VM-host affinity policy.
- Update
Time string - The timestamp when the policy was last updated.
- Vm
Categories List<string> - List of VM category external IDs that this policy applies to. VMs with these categories will be subject to the affinity placement rules.
- Create
Time string - The timestamp when the policy was created.
- Created
By map[string]string - Information about the entity that created the policy.
- Description string
- A description of the VM-Host Affinity policy.
- Ext
Id string - The external identifier of the policy.
- Host
Categories []string - List of host category external IDs that define where the VMs can be placed. Hosts with these categories will be used for VM placement.
- Last
Updated map[string]stringBy - Information about the entity that last updated the policy.
- Name string
- The name of the VM-Host Affinity policy.
- Num
Compliant intVms - Number of VMs which are compliant with the VM-host affinity policy.
- Num
Hosts int - Number of hosts associated with the VM-host affinity policy.
- Num
Non intCompliant Vms - Number of VMs which are not compliant with the VM-host affinity policy.
- Num
Vms int - Number of VMs associated with the VM-host affinity policy.
- Update
Time string - The timestamp when the policy was last updated.
- Vm
Categories []string - List of VM category external IDs that this policy applies to. VMs with these categories will be subject to the affinity placement rules.
- create_
time string - The timestamp when the policy was created.
- created_
by map(string) - Information about the entity that created the policy.
- description string
- A description of the VM-Host Affinity policy.
- ext_
id string - The external identifier of the policy.
- host_
categories list(string) - List of host category external IDs that define where the VMs can be placed. Hosts with these categories will be used for VM placement.
- last_
updated_ map(string)by - Information about the entity that last updated the policy.
- name string
- The name of the VM-Host Affinity policy.
- num_
compliant_ numbervms - Number of VMs which are compliant with the VM-host affinity policy.
- num_
hosts number - Number of hosts associated with the VM-host affinity policy.
- num_
non_ numbercompliant_ vms - Number of VMs which are not compliant with the VM-host affinity policy.
- num_
vms number - Number of VMs associated with the VM-host affinity policy.
- update_
time string - The timestamp when the policy was last updated.
- vm_
categories list(string) - List of VM category external IDs that this policy applies to. VMs with these categories will be subject to the affinity placement rules.
- create
Time String - The timestamp when the policy was created.
- created
By Map<String,String> - Information about the entity that created the policy.
- description String
- A description of the VM-Host Affinity policy.
- ext
Id String - The external identifier of the policy.
- host
Categories List<String> - List of host category external IDs that define where the VMs can be placed. Hosts with these categories will be used for VM placement.
- last
Updated Map<String,String>By - Information about the entity that last updated the policy.
- name String
- The name of the VM-Host Affinity policy.
- num
Compliant IntegerVms - Number of VMs which are compliant with the VM-host affinity policy.
- num
Hosts Integer - Number of hosts associated with the VM-host affinity policy.
- num
Non IntegerCompliant Vms - Number of VMs which are not compliant with the VM-host affinity policy.
- num
Vms Integer - Number of VMs associated with the VM-host affinity policy.
- update
Time String - The timestamp when the policy was last updated.
- vm
Categories List<String> - List of VM category external IDs that this policy applies to. VMs with these categories will be subject to the affinity placement rules.
- create
Time string - The timestamp when the policy was created.
- created
By {[key: string]: string} - Information about the entity that created the policy.
- description string
- A description of the VM-Host Affinity policy.
- ext
Id string - The external identifier of the policy.
- host
Categories string[] - List of host category external IDs that define where the VMs can be placed. Hosts with these categories will be used for VM placement.
- last
Updated {[key: string]: string}By - Information about the entity that last updated the policy.
- name string
- The name of the VM-Host Affinity policy.
- num
Compliant numberVms - Number of VMs which are compliant with the VM-host affinity policy.
- num
Hosts number - Number of hosts associated with the VM-host affinity policy.
- num
Non numberCompliant Vms - Number of VMs which are not compliant with the VM-host affinity policy.
- num
Vms number - Number of VMs associated with the VM-host affinity policy.
- update
Time string - The timestamp when the policy was last updated.
- vm
Categories string[] - List of VM category external IDs that this policy applies to. VMs with these categories will be subject to the affinity placement rules.
- create_
time str - The timestamp when the policy was created.
- created_
by Mapping[str, str] - Information about the entity that created the policy.
- description str
- A description of the VM-Host Affinity policy.
- ext_
id str - The external identifier of the policy.
- host_
categories Sequence[str] - List of host category external IDs that define where the VMs can be placed. Hosts with these categories will be used for VM placement.
- last_
updated_ Mapping[str, str]by - Information about the entity that last updated the policy.
- name str
- The name of the VM-Host Affinity policy.
- num_
compliant_ intvms - Number of VMs which are compliant with the VM-host affinity policy.
- num_
hosts int - Number of hosts associated with the VM-host affinity policy.
- num_
non_ intcompliant_ vms - Number of VMs which are not compliant with the VM-host affinity policy.
- num_
vms int - Number of VMs associated with the VM-host affinity policy.
- update_
time str - The timestamp when the policy was last updated.
- vm_
categories Sequence[str] - List of VM category external IDs that this policy applies to. VMs with these categories will be subject to the affinity placement rules.
- create
Time String - The timestamp when the policy was created.
- created
By Map<String> - Information about the entity that created the policy.
- description String
- A description of the VM-Host Affinity policy.
- ext
Id String - The external identifier of the policy.
- host
Categories List<String> - List of host category external IDs that define where the VMs can be placed. Hosts with these categories will be used for VM placement.
- last
Updated Map<String>By - Information about the entity that last updated the policy.
- name String
- The name of the VM-Host Affinity policy.
- num
Compliant NumberVms - Number of VMs which are compliant with the VM-host affinity policy.
- num
Hosts Number - Number of hosts associated with the VM-host affinity policy.
- num
Non NumberCompliant Vms - Number of VMs which are not compliant with the VM-host affinity policy.
- num
Vms Number - Number of VMs associated with the VM-host affinity policy.
- update
Time String - The timestamp when the policy was last updated.
- vm
Categories List<String> - List of VM category external IDs that this policy applies to. VMs with these categories will be subject to the affinity placement rules.
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanixTerraform Provider.
published on Tuesday, May 26, 2026 by Piers Karsenbarg