@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
79 lines (78 loc) • 3.42 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 foo = gcp.container.getRegistryRepository({});
* export const gcrLocation = foo.then(foo => foo.repositoryUrl);
* ```
*/
export declare function getRegistryRepository(args?: GetRegistryRepositoryArgs, opts?: pulumi.InvokeOptions): Promise<GetRegistryRepositoryResult>;
/**
* A collection of arguments for invoking getRegistryRepository.
*/
export interface GetRegistryRepositoryArgs {
/**
* The project ID that this repository is attached to. If not provided, 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;
}
/**
* A collection of values returned by getRegistryRepository.
*/
export interface GetRegistryRepositoryResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly project: string;
readonly region?: string;
/**
* The URL at which the repository can be accessed.
*/
readonly repositoryUrl: 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 foo = gcp.container.getRegistryRepository({});
* export const gcrLocation = foo.then(foo => foo.repositoryUrl);
* ```
*/
export declare function getRegistryRepositoryOutput(args?: GetRegistryRepositoryOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRegistryRepositoryResult>;
/**
* A collection of arguments for invoking getRegistryRepository.
*/
export interface GetRegistryRepositoryOutputArgs {
/**
* The project ID that this repository is attached to. If not provided, 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>;
}