@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
91 lines (90 loc) • 2.85 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Gets local image ID of an image from its label name.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const myImage = scaleway.getMarketplaceImage({
* label: "ubuntu_jammy",
* });
* ```
*/
export declare function getMarketplaceImage(args: GetMarketplaceImageArgs, opts?: pulumi.InvokeOptions): Promise<GetMarketplaceImageResult>;
/**
* A collection of arguments for invoking getMarketplaceImage.
*/
export interface GetMarketplaceImageArgs {
/**
* The local image type, `instanceLocal` or `instanceSbs`.
*/
imageType?: string;
/**
* The instance type the image is compatible with.
* You find all the available types on the [pricing page](https://www.scaleway.com/en/pricing/).
*/
instanceType?: string;
/**
* Exact label of the desired image. You can use [this endpoint](https://www.scaleway.com/en/developers/api/marketplace/#path-marketplace-images-list-marketplace-images)
* to find the right `label`.
*/
label: string;
/**
* `zone`) The zone in which the image exists.
*/
zone?: string;
}
/**
* A collection of values returned by getMarketplaceImage.
*/
export interface GetMarketplaceImageResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly imageType?: string;
readonly instanceType?: string;
readonly label: string;
readonly zone: string;
}
/**
* Gets local image ID of an image from its label name.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const myImage = scaleway.getMarketplaceImage({
* label: "ubuntu_jammy",
* });
* ```
*/
export declare function getMarketplaceImageOutput(args: GetMarketplaceImageOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetMarketplaceImageResult>;
/**
* A collection of arguments for invoking getMarketplaceImage.
*/
export interface GetMarketplaceImageOutputArgs {
/**
* The local image type, `instanceLocal` or `instanceSbs`.
*/
imageType?: pulumi.Input<string>;
/**
* The instance type the image is compatible with.
* You find all the available types on the [pricing page](https://www.scaleway.com/en/pricing/).
*/
instanceType?: pulumi.Input<string>;
/**
* Exact label of the desired image. You can use [this endpoint](https://www.scaleway.com/en/developers/api/marketplace/#path-marketplace-images-list-marketplace-images)
* to find the right `label`.
*/
label: pulumi.Input<string>;
/**
* `zone`) The zone in which the image exists.
*/
zone?: pulumi.Input<string>;
}