@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
72 lines (71 loc) • 2.45 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get the list of OS versions supported by IMS image within HuaweiCloud.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const test = pulumi.output(huaweicloud.Ims.getOsVersions());
* ```
*/
export declare function getOsVersions(args?: GetOsVersionsArgs, opts?: pulumi.InvokeOptions): Promise<GetOsVersionsResult>;
/**
* A collection of arguments for invoking getOsVersions.
*/
export interface GetOsVersionsArgs {
/**
* Specifies the region in which to query the resource.
* If omitted, the provider-level region will be used.
*/
region?: string;
/**
* Specifies the label value for the OS versions.
* Multiple tags separated by commas, e.g. **bms,uefi**.
* The valid values are as follows:
* + **bms**: OS versions that supports BMS image type.
* + **uefi**: OS versions that supports UEFI boot mode.
* + **arm**: OS versions based on ARM architecture.
* + **x86**: OS versions based on x86 architecture.
*/
tag?: string;
}
/**
* A collection of values returned by getOsVersions.
*/
export interface GetOsVersionsResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The OS version details.
*/
readonly osVersions: outputs.Ims.GetOsVersionsOsVersion[];
readonly region: string;
readonly tag?: string;
}
export declare function getOsVersionsOutput(args?: GetOsVersionsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetOsVersionsResult>;
/**
* A collection of arguments for invoking getOsVersions.
*/
export interface GetOsVersionsOutputArgs {
/**
* Specifies the region in which to query the resource.
* If omitted, the provider-level region will be used.
*/
region?: pulumi.Input<string>;
/**
* Specifies the label value for the OS versions.
* Multiple tags separated by commas, e.g. **bms,uefi**.
* The valid values are as follows:
* + **bms**: OS versions that supports BMS image type.
* + **uefi**: OS versions that supports UEFI boot mode.
* + **arm**: OS versions based on ARM architecture.
* + **x86**: OS versions based on x86 architecture.
*/
tag?: pulumi.Input<string>;
}