@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
97 lines • 2.85 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Gets information about a baremetal option.
* For more information, see the [API documentation](https://developers.scaleway.com/en/products/baremetal/api).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* // Get info by option name
* const byName = scaleway.elasticmetal.getOption({
* name: "Remote Access",
* });
* // Get info by option id
* const byId = scaleway.elasticmetal.getOption({
* optionId: "931df052-d713-4674-8b58-96a63244c8e2",
* });
* ```
*/
export declare function getOption(args?: GetOptionArgs, opts?: pulumi.InvokeOptions): Promise<GetOptionResult>;
/**
* A collection of arguments for invoking getOption.
*/
export interface GetOptionArgs {
/**
* The option name. Only one of `name` and `optionId` should be specified.
*/
name?: string;
/**
* The option id. Only one of `name` and `optionId` should be specified.
*/
optionId?: string;
/**
* `zone`) The zone in which the option exists.
*/
zone?: string;
}
/**
* A collection of values returned by getOption.
*/
export interface GetOptionResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Is false if the option could not be added or removed.
*/
readonly manageable: boolean;
/**
* The name of the option.
*/
readonly name?: string;
readonly optionId?: string;
readonly zone?: string;
}
/**
* Gets information about a baremetal option.
* For more information, see the [API documentation](https://developers.scaleway.com/en/products/baremetal/api).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* // Get info by option name
* const byName = scaleway.elasticmetal.getOption({
* name: "Remote Access",
* });
* // Get info by option id
* const byId = scaleway.elasticmetal.getOption({
* optionId: "931df052-d713-4674-8b58-96a63244c8e2",
* });
* ```
*/
export declare function getOptionOutput(args?: GetOptionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOptionResult>;
/**
* A collection of arguments for invoking getOption.
*/
export interface GetOptionOutputArgs {
/**
* The option name. Only one of `name` and `optionId` should be specified.
*/
name?: pulumi.Input<string | undefined>;
/**
* The option id. Only one of `name` and `optionId` should be specified.
*/
optionId?: pulumi.Input<string | undefined>;
/**
* `zone`) The zone in which the option exists.
*/
zone?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getOption.d.ts.map