import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * This lists all accessible OVAs using the default pagination, which can be customized. * * ## Example Usage * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * // Fetch all OVAs * const example = nutanix.getOvasV2({}); * // filtered ovas on disk format * const exampleFilteredDiskFormat = nutanix.getOvasV2({ * filter: "diskFormat eq Vmm.Content.OvaDiskFormat'QCOW2'", * }); * // filtered ovas on name * const exampleFilteredName = nutanix.getOvasV2({ * filter: "name eq 'example-ova'", * }); * // filtered ovas on parentVm * const exampleFilteredParentVm = nutanix.getOvasV2({ * filter: "parentVm eq 'LinuxServer_VM'", * }); * // filtered ovas on sizeBytes * const exampleFilteredSize = nutanix.getOvasV2({ * filter: "sizeBytes eq 57", * }); * // limit, select, orderby and select example * const example2 = nutanix.getOvasV2({ * filter: "startswith(parentVm, 'Linux')", * limit: 10, * select: "diskFormat,extId,name,vmConfig,checksum", * orderBy: "name desc", * }); * ``` * */ export declare function getOvasV2(args?: GetOvasV2Args, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getOvasV2. */ export interface GetOvasV2Args { /** * 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. The filter can be applied to the following fields: * - diskFormat * - name * - parentVm * - sizeBytes */ 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. The orderby can be applied to the following fields: * - createTime * - lastUpdateTime * - name * - sizeBytes */ 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 URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the \$select must conform to the OData V4.01 URL conventions. If a \$select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned. it can be applied to the following fields: * - clusterLocationExtIds * - createTime * - createdBy * - diskFormat * - extId * - lastUpdateTime * - links * - name * - parentVm * - sizeBytes * - tenantId * - vmConfig */ select?: string; } /** * A collection of values returned by getOvasV2. */ export interface GetOvasV2Result { /** * 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. The filter can be applied to the following fields: * - diskFormat * - name * - parentVm * - sizeBytes */ readonly filter?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: 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. */ readonly 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. The orderby can be applied to the following fields: * - createTime * - lastUpdateTime * - name * - sizeBytes */ readonly orderBy?: string; /** * List of all OVAs */ readonly ovas: outputs.GetOvasV2Ova[]; /** * 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. */ readonly page?: number; /** * A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the \$select must conform to the OData V4.01 URL conventions. If a \$select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned. it can be applied to the following fields: * - clusterLocationExtIds * - createTime * - createdBy * - diskFormat * - extId * - lastUpdateTime * - links * - name * - parentVm * - sizeBytes * - tenantId * - vmConfig */ readonly select?: string; } /** * This lists all accessible OVAs using the default pagination, which can be customized. * * ## Example Usage * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * // Fetch all OVAs * const example = nutanix.getOvasV2({}); * // filtered ovas on disk format * const exampleFilteredDiskFormat = nutanix.getOvasV2({ * filter: "diskFormat eq Vmm.Content.OvaDiskFormat'QCOW2'", * }); * // filtered ovas on name * const exampleFilteredName = nutanix.getOvasV2({ * filter: "name eq 'example-ova'", * }); * // filtered ovas on parentVm * const exampleFilteredParentVm = nutanix.getOvasV2({ * filter: "parentVm eq 'LinuxServer_VM'", * }); * // filtered ovas on sizeBytes * const exampleFilteredSize = nutanix.getOvasV2({ * filter: "sizeBytes eq 57", * }); * // limit, select, orderby and select example * const example2 = nutanix.getOvasV2({ * filter: "startswith(parentVm, 'Linux')", * limit: 10, * select: "diskFormat,extId,name,vmConfig,checksum", * orderBy: "name desc", * }); * ``` * */ export declare function getOvasV2Output(args?: GetOvasV2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getOvasV2. */ export interface GetOvasV2OutputArgs { /** * 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. The filter can be applied to the following fields: * - diskFormat * - name * - parentVm * - sizeBytes */ 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. The orderby can be applied to the following fields: * - createTime * - lastUpdateTime * - name * - sizeBytes */ 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; /** * A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the \$select must conform to the OData V4.01 URL conventions. If a \$select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned. it can be applied to the following fields: * - clusterLocationExtIds * - createTime * - createdBy * - diskFormat * - extId * - lastUpdateTime * - links * - name * - parentVm * - sizeBytes * - tenantId * - vmConfig */ select?: pulumi.Input; } //# sourceMappingURL=getOvasV2.d.ts.map