UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

60 lines 2.83 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getRegistryRepositoryOutput = exports.getRegistryRepository = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * > **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); * ``` */ function getRegistryRepository(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:container/getRegistryRepository:getRegistryRepository", { "project": args.project, "region": args.region, }, opts); } exports.getRegistryRepository = getRegistryRepository; /** * > **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); * ``` */ function getRegistryRepositoryOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:container/getRegistryRepository:getRegistryRepository", { "project": args.project, "region": args.region, }, opts); } exports.getRegistryRepositoryOutput = getRegistryRepositoryOutput; //# sourceMappingURL=getRegistryRepository.js.map