import * as pulumi from "@pulumi/pulumi"; /** * Retrieve the VM-VM Anti-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.getVmAntiAffinityPolicyV2({ * extId: "12345678-1234-1234-1234-123456789012", * }); * export const policyName = policy.then(policy => policy.name); * ``` * */ export declare function getVmAntiAffinityPolicyV2(args: GetVmAntiAffinityPolicyV2Args, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getVmAntiAffinityPolicyV2. */ export interface GetVmAntiAffinityPolicyV2Args { /** * The external identifier of a VM-VM Anti-Affinity policy. */ extId: string; } /** * A collection of values returned by getVmAntiAffinityPolicyV2. */ export interface GetVmAntiAffinityPolicyV2Result { /** * List of VM category external IDs that this policy applies to. */ readonly categories: string[]; /** * 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-VM Anti-Affinity policy. */ readonly description: string; readonly extId: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The name of the VM-VM Anti-Affinity policy. */ readonly name: string; /** * Number of compliant VMs which are part of the VM-VM anti-affinity policy. */ readonly numCompliantVms: number; /** * Number of non-compliant VMs which are part of the VM-VM anti-affinity policy. */ readonly numNonCompliantVms: number; /** * Number of VMs with compliance state as pending, which are part of the VM-VM anti-affinity policy. */ readonly numPendingVms: number; /** * The timestamp when the policy was last updated. */ readonly updateTime: string; /** * Information about the entity that last updated the policy. */ readonly updatedBy: { [key: string]: string; }; } /** * Retrieve the VM-VM Anti-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.getVmAntiAffinityPolicyV2({ * extId: "12345678-1234-1234-1234-123456789012", * }); * export const policyName = policy.then(policy => policy.name); * ``` * */ export declare function getVmAntiAffinityPolicyV2Output(args: GetVmAntiAffinityPolicyV2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getVmAntiAffinityPolicyV2. */ export interface GetVmAntiAffinityPolicyV2OutputArgs { /** * The external identifier of a VM-VM Anti-Affinity policy. */ extId: pulumi.Input; } //# sourceMappingURL=getVmAntiAffinityPolicyV2.d.ts.map