@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
82 lines (81 loc) • 2.51 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 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://api-marketplace.scaleway.com/images?page=1&per_page=100)
* 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 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.InvokeOptions): pulumi.Output<GetMarketplaceImageResult>;
/**
* A collection of arguments for invoking getMarketplaceImage.
*/
export interface GetMarketplaceImageOutputArgs {
/**
* 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://api-marketplace.scaleway.com/images?page=1&per_page=100)
* to find the right `label`.
*/
label: pulumi.Input<string>;
/**
* `zone`) The zone in which the image exists.
*/
zone?: pulumi.Input<string>;
}