@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
101 lines (100 loc) • 3.04 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Gets information about a baremetal operating system.
* For more information, see [the documentation](https://developers.scaleway.com/en/products/baremetal/api).
*
* 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";
*
* const byName = scaleway.getBaremetalOs({
* name: "Ubuntu",
* version: "20.04 LTS (Focal Fossa)",
* });
* const byId = scaleway.getBaremetalOs({
* osId: "03b7f4ba-a6a1-4305-984e-b54fafbf1681",
* });
* ```
*/
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 documentation](https://developers.scaleway.com/en/products/baremetal/api).
*
* 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";
*
* const byName = scaleway.getBaremetalOs({
* name: "Ubuntu",
* version: "20.04 LTS (Focal Fossa)",
* });
* const byId = scaleway.getBaremetalOs({
* osId: "03b7f4ba-a6a1-4305-984e-b54fafbf1681",
* });
* ```
*/
export declare function getBaremetalOsOutput(args?: GetBaremetalOsOutputArgs, opts?: pulumi.InvokeOptions): 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>;
}