UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

126 lines (125 loc) 3.38 kB
import * as pulumi from "@pulumi/pulumi"; /** * Gets information about a registry image. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const myImage = scaleway.getRegistryImage({ * imageId: "11111111-1111-1111-1111-111111111111", * namespaceId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ export declare function getRegistryImage(args?: GetRegistryImageArgs, opts?: pulumi.InvokeOptions): Promise<GetRegistryImageResult>; /** * A collection of arguments for invoking getRegistryImage. */ export interface GetRegistryImageArgs { /** * The image ID. * Only one of `name` and `imageId` should be specified. */ imageId?: string; /** * The image name. * Only one of `name` and `imageId` should be specified. */ name?: string; /** * The namespace ID in which the image is. */ namespaceId?: string; /** * `projectId`) The ID of the project the image is associated with. */ projectId?: string; /** * `region`) The region in which the image exists. */ region?: string; /** * The tags associated with the registry image */ tags?: string[]; } /** * A collection of values returned by getRegistryImage. */ export interface GetRegistryImageResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly imageId?: string; readonly name?: string; readonly namespaceId: string; /** * The organization ID the image is associated with. */ readonly organizationId: string; readonly projectId: string; readonly region: string; /** * The size of the registry image. */ readonly size: number; /** * The tags associated with the registry image */ readonly tags: string[]; /** * The privacy policy of the registry image. */ readonly visibility: string; } /** * Gets information about a registry image. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const myImage = scaleway.getRegistryImage({ * imageId: "11111111-1111-1111-1111-111111111111", * namespaceId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ export declare function getRegistryImageOutput(args?: GetRegistryImageOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRegistryImageResult>; /** * A collection of arguments for invoking getRegistryImage. */ export interface GetRegistryImageOutputArgs { /** * The image ID. * Only one of `name` and `imageId` should be specified. */ imageId?: pulumi.Input<string>; /** * The image name. * Only one of `name` and `imageId` should be specified. */ name?: pulumi.Input<string>; /** * The namespace ID in which the image is. */ namespaceId?: pulumi.Input<string>; /** * `projectId`) The ID of the project the image is associated with. */ projectId?: pulumi.Input<string>; /** * `region`) The region in which the image exists. */ region?: pulumi.Input<string>; /** * The tags associated with the registry image */ tags?: pulumi.Input<pulumi.Input<string>[]>; }