@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
110 lines (109 loc) • 3.92 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* > **Warning**: Container Registry is deprecated. Effective March 18, 2025, Container Registry is shut down and writing images to Container Registry is unavailable. Resource will be removed in future major release.
*
* This data source fetches the project name, and provides the appropriate URLs to use for container registry for this project.
*
* The URLs are computed entirely offline - as long as the project exists, they will be valid, but this data source does not contact Google Container Registry (GCR) at any point.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const debian = gcp.container.getRegistryImage({
* name: "debian",
* });
* export const gcrLocation = debian.then(debian => debian.imageUrl);
* ```
*/
export declare function getRegistryImage(args: GetRegistryImageArgs, opts?: pulumi.InvokeOptions): Promise<GetRegistryImageResult>;
/**
* A collection of arguments for invoking getRegistryImage.
*/
export interface GetRegistryImageArgs {
/**
* The image digest to fetch, if any.
*/
digest?: string;
/**
* The image name.
*/
name: string;
/**
* The project ID that this image is attached to. If not provider, provider project will be used instead.
*/
project?: string;
/**
* The GCR region to use. As of this writing, one of `asia`, `eu`, and `us`. See [the documentation](https://cloud.google.com/container-registry/docs/pushing-and-pulling) for additional information.
*/
region?: string;
/**
* The tag to fetch, if any.
*/
tag?: string;
}
/**
* A collection of values returned by getRegistryImage.
*/
export interface GetRegistryImageResult {
readonly digest?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The URL at which the image can be accessed.
*/
readonly imageUrl: string;
readonly name: string;
readonly project: string;
readonly region?: string;
readonly tag?: string;
}
/**
* > **Warning**: Container Registry is deprecated. Effective March 18, 2025, Container Registry is shut down and writing images to Container Registry is unavailable. Resource will be removed in future major release.
*
* This data source fetches the project name, and provides the appropriate URLs to use for container registry for this project.
*
* The URLs are computed entirely offline - as long as the project exists, they will be valid, but this data source does not contact Google Container Registry (GCR) at any point.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const debian = gcp.container.getRegistryImage({
* name: "debian",
* });
* export const gcrLocation = debian.then(debian => debian.imageUrl);
* ```
*/
export declare function getRegistryImageOutput(args: GetRegistryImageOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRegistryImageResult>;
/**
* A collection of arguments for invoking getRegistryImage.
*/
export interface GetRegistryImageOutputArgs {
/**
* The image digest to fetch, if any.
*/
digest?: pulumi.Input<string>;
/**
* The image name.
*/
name: pulumi.Input<string>;
/**
* The project ID that this image is attached to. If not provider, provider project will be used instead.
*/
project?: pulumi.Input<string>;
/**
* The GCR region to use. As of this writing, one of `asia`, `eu`, and `us`. See [the documentation](https://cloud.google.com/container-registry/docs/pushing-and-pulling) for additional information.
*/
region?: pulumi.Input<string>;
/**
* The tag to fetch, if any.
*/
tag?: pulumi.Input<string>;
}