import * as pulumi from "@pulumi/pulumi"; /** * Retrieve the VM-Host Affinity policy details for the provided external identifier (ext_id). * * ## Example * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * const policy = nutanix.getVmHostAffinityPolicyV2({ * extId: "12345678-1234-1234-1234-123456789012", * }); * export const policyName = policy.then(policy => policy.name); * ``` * */ export declare function getVmHostAffinityPolicyV2(args: GetVmHostAffinityPolicyV2Args, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getVmHostAffinityPolicyV2. */ export interface GetVmHostAffinityPolicyV2Args { /** * The external identifier of a VM-Host Affinity policy. */ extId: string; } /** * A collection of values returned by getVmHostAffinityPolicyV2. */ export interface GetVmHostAffinityPolicyV2Result { /** * The timestamp when the policy was created. */ readonly createTime: string; /** * Information about the entity that created the policy. */ readonly createdBy: { [key: string]: string; }; /** * A description of the VM-Host Affinity policy. */ readonly description: string; readonly extId: string; /** * List of host category external IDs that define where the VMs can be placed. */ readonly hostCategories: string[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Information about the entity that last updated the policy. */ readonly lastUpdatedBy: { [key: string]: string; }; /** * The name of the VM-Host Affinity policy. */ readonly name: string; /** * Number of VMs which are compliant with the VM-host affinity policy. */ readonly numCompliantVms: number; /** * Number of hosts associated with the VM-host affinity policy. */ readonly numHosts: number; /** * Number of VMs which are not compliant with the VM-host affinity policy. */ readonly numNonCompliantVms: number; /** * Number of VMs associated with the VM-host affinity policy. */ readonly numVms: number; /** * The timestamp when the policy was last updated. */ readonly updateTime: string; /** * List of VM category external IDs that this policy applies to. */ readonly vmCategories: string[]; } /** * Retrieve the VM-Host Affinity policy details for the provided external identifier (ext_id). * * ## Example * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * const policy = nutanix.getVmHostAffinityPolicyV2({ * extId: "12345678-1234-1234-1234-123456789012", * }); * export const policyName = policy.then(policy => policy.name); * ``` * */ export declare function getVmHostAffinityPolicyV2Output(args: GetVmHostAffinityPolicyV2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getVmHostAffinityPolicyV2. */ export interface GetVmHostAffinityPolicyV2OutputArgs { /** * The external identifier of a VM-Host Affinity policy. */ extId: pulumi.Input; } //# sourceMappingURL=getVmHostAffinityPolicyV2.d.ts.map