@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
107 lines (106 loc) • 3.5 kB
TypeScript
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 "@pulumi/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",
* });
* ```
*/
/** @deprecated scaleway.index/getbaremetalos.getBaremetalOs has been deprecated in favor of scaleway.elasticmetal/getos.getOs */
export declare function getBaremetalOs(args?: GetBaremetalOsArgs, opts?: pulumi.InvokeOptions): Promise<GetBaremetalOsResult>;
/**
* A collection of arguments for invoking getBaremetalOs.
*/
export interface GetBaremetalOsArgs {
/**
* 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 getBaremetalOs.
*/
export interface GetBaremetalOsResult {
/**
* 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 "@pulumi/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",
* });
* ```
*/
/** @deprecated scaleway.index/getbaremetalos.getBaremetalOs has been deprecated in favor of scaleway.elasticmetal/getos.getOs */
export declare function getBaremetalOsOutput(args?: GetBaremetalOsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBaremetalOsResult>;
/**
* A collection of arguments for invoking getBaremetalOs.
*/
export interface GetBaremetalOsOutputArgs {
/**
* The os name. Only one of `name` and `osId` should be specified.
*/
name?: pulumi.Input<string>;
/**
* The operating system id. Only one of `name` and `osId` should be specified.
*/
osId?: pulumi.Input<string>;
/**
* The os version.
*/
version?: pulumi.Input<string>;
/**
* `zone`) The zone in which the os exists.
*/
zone?: pulumi.Input<string>;
}