UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

105 lines 3.23 kB
import * as pulumi from "@pulumi/pulumi"; /** * Gets information about a baremetal operating system. * For more information, see the [API documentation](https://www.scaleway.com/en/developers/api/elastic-metal/#path-os-list-available-oses). * * You can also use the [scaleway-cli](https://github.com/scaleway/scaleway-cli) with `scw baremetal os list` to list all available operating systems. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * // Get info by os name and version * const byName = scaleway.elasticmetal.getOs({ * name: "Ubuntu", * version: "20.04 LTS (Focal Fossa)", * }); * // Get info by os id * const byId = scaleway.elasticmetal.getOs({ * osId: "03b7f4ba-a6a1-4305-984e-b54fafbf1681", * }); * ``` */ export declare function getOs(args?: GetOsArgs, opts?: pulumi.InvokeOptions): Promise<GetOsResult>; /** * A collection of arguments for invoking getOs. */ export interface GetOsArgs { /** * The os name. Only one of `name` and `osId` should be specified. */ name?: string; /** * The operating system id. Only one of `name` and `osId` should be specified. */ osId?: string; /** * The os version. */ version?: string; /** * `zone`) The zone in which the os exists. */ zone?: string; } /** * A collection of values returned by getOs. */ export interface GetOsResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name?: string; readonly osId?: string; readonly version?: string; readonly zone?: string; } /** * Gets information about a baremetal operating system. * For more information, see the [API documentation](https://www.scaleway.com/en/developers/api/elastic-metal/#path-os-list-available-oses). * * You can also use the [scaleway-cli](https://github.com/scaleway/scaleway-cli) with `scw baremetal os list` to list all available operating systems. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * // Get info by os name and version * const byName = scaleway.elasticmetal.getOs({ * name: "Ubuntu", * version: "20.04 LTS (Focal Fossa)", * }); * // Get info by os id * const byId = scaleway.elasticmetal.getOs({ * osId: "03b7f4ba-a6a1-4305-984e-b54fafbf1681", * }); * ``` */ export declare function getOsOutput(args?: GetOsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOsResult>; /** * A collection of arguments for invoking getOs. */ export interface GetOsOutputArgs { /** * The os name. Only one of `name` and `osId` should be specified. */ name?: pulumi.Input<string | undefined>; /** * The operating system id. Only one of `name` and `osId` should be specified. */ osId?: pulumi.Input<string | undefined>; /** * The os version. */ version?: pulumi.Input<string | undefined>; /** * `zone`) The zone in which the os exists. */ zone?: pulumi.Input<string | undefined>; } //# sourceMappingURL=getOs.d.ts.map