import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * List VM-VM Anti-Affinity policies details with support for pagination, filtering, and sorting. * * ## Example * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * // List all VM-VM Anti-Affinity policies * const allPolicies = nutanix.getVmAntiAffinityPoliciesV2({}); * // List with pagination * const paginatedPolicies = nutanix.getVmAntiAffinityPoliciesV2({ * page: 0, * limit: 10, * }); * // List with filtering * const filteredPolicies = nutanix.getVmAntiAffinityPoliciesV2({ * filter: "name eq 'my-policy'", * }); * // List with ordering * const sortedPolicies = nutanix.getVmAntiAffinityPoliciesV2({ * orderBy: "name asc", * }); * // List with multiple filters * const complexPolicies = nutanix.getVmAntiAffinityPoliciesV2({ * filter: "startswith(name, 'ha-')", * orderBy: "create_time desc", * page: 0, * limit: 20, * }); * ``` * */ export declare function getVmAntiAffinityPoliciesV2(args?: GetVmAntiAffinityPoliciesV2Args, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getVmAntiAffinityPoliciesV2. */ export interface GetVmAntiAffinityPoliciesV2Args { /** * A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the OData V4.01 URL conventions. For example, `$filter=name eq 'my-policy'` would filter the result on policy name 'my-policy', `$filter=startswith(name, 'ha-')` would filter on policy names starting with 'ha-'. The filter can be applied to the following fields: */ filter?: string; /** * A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set. */ limit?: number; /** * A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using `asc` or descending order using `desc`. If `asc` or `desc` are not specified, the resources will be sorted in ascending order by default. For example, `name asc` would sort policies by name in ascending order, `updateTime desc` would sort by update time in descending order. The orderBy can be applied to the following fields: */ orderBy?: string; /** * A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results. */ page?: number; } /** * A collection of values returned by getVmAntiAffinityPoliciesV2. */ export interface GetVmAntiAffinityPoliciesV2Result { readonly filter?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly limit?: number; readonly orderBy?: string; readonly page?: number; /** * List of all VM-VM Anti-Affinity policies */ readonly policies: outputs.GetVmAntiAffinityPoliciesV2Policy[]; } /** * List VM-VM Anti-Affinity policies details with support for pagination, filtering, and sorting. * * ## Example * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * // List all VM-VM Anti-Affinity policies * const allPolicies = nutanix.getVmAntiAffinityPoliciesV2({}); * // List with pagination * const paginatedPolicies = nutanix.getVmAntiAffinityPoliciesV2({ * page: 0, * limit: 10, * }); * // List with filtering * const filteredPolicies = nutanix.getVmAntiAffinityPoliciesV2({ * filter: "name eq 'my-policy'", * }); * // List with ordering * const sortedPolicies = nutanix.getVmAntiAffinityPoliciesV2({ * orderBy: "name asc", * }); * // List with multiple filters * const complexPolicies = nutanix.getVmAntiAffinityPoliciesV2({ * filter: "startswith(name, 'ha-')", * orderBy: "create_time desc", * page: 0, * limit: 20, * }); * ``` * */ export declare function getVmAntiAffinityPoliciesV2Output(args?: GetVmAntiAffinityPoliciesV2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getVmAntiAffinityPoliciesV2. */ export interface GetVmAntiAffinityPoliciesV2OutputArgs { /** * A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the OData V4.01 URL conventions. For example, `$filter=name eq 'my-policy'` would filter the result on policy name 'my-policy', `$filter=startswith(name, 'ha-')` would filter on policy names starting with 'ha-'. The filter can be applied to the following fields: */ filter?: pulumi.Input; /** * A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set. */ limit?: pulumi.Input; /** * A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using `asc` or descending order using `desc`. If `asc` or `desc` are not specified, the resources will be sorted in ascending order by default. For example, `name asc` would sort policies by name in ascending order, `updateTime desc` would sort by update time in descending order. The orderBy can be applied to the following fields: */ orderBy?: pulumi.Input; /** * A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results. */ page?: pulumi.Input; } //# sourceMappingURL=getVmAntiAffinityPoliciesV2.d.ts.map