1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. artifactregistry
  5. getTag
Google Cloud v8.41.1 published on Monday, Aug 25, 2025 by Pulumi

gcp.artifactregistry.getTag

Explore with Pulumi AI

gcp logo
Google Cloud v8.41.1 published on Monday, Aug 25, 2025 by Pulumi

    This data source fetches information of a tag from a provided Artifact Registry repository.

    Example Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    variables:
      myTags:
        fn::invoke:
          function: gcp:artifactregistry:getTags
          arguments:
            location: us-central1
            repositoryId: example-repo
            packageName: example-package
            tagName: latest
    

    Using getTag

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getTag(args: GetTagArgs, opts?: InvokeOptions): Promise<GetTagResult>
    function getTagOutput(args: GetTagOutputArgs, opts?: InvokeOptions): Output<GetTagResult>
    def get_tag(location: Optional[str] = None,
                package_name: Optional[str] = None,
                project: Optional[str] = None,
                repository_id: Optional[str] = None,
                tag_name: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetTagResult
    def get_tag_output(location: Optional[pulumi.Input[str]] = None,
                package_name: Optional[pulumi.Input[str]] = None,
                project: Optional[pulumi.Input[str]] = None,
                repository_id: Optional[pulumi.Input[str]] = None,
                tag_name: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetTagResult]
    func GetTag(ctx *Context, args *GetTagArgs, opts ...InvokeOption) (*GetTagResult, error)
    func GetTagOutput(ctx *Context, args *GetTagOutputArgs, opts ...InvokeOption) GetTagResultOutput

    > Note: This function is named GetTag in the Go SDK.

    public static class GetTag 
    {
        public static Task<GetTagResult> InvokeAsync(GetTagArgs args, InvokeOptions? opts = null)
        public static Output<GetTagResult> Invoke(GetTagInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTagResult> getTag(GetTagArgs args, InvokeOptions options)
    public static Output<GetTagResult> getTag(GetTagArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcp:artifactregistry/getTag:getTag
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Location string
    The location of the artifact registry.
    PackageName string
    The name of the package.
    RepositoryId string
    The last part of the repository name to fetch from.
    TagName string
    The name of the tag.
    Project string
    The project ID in which the resource belongs. If it is not provided, the provider project is used.
    Location string
    The location of the artifact registry.
    PackageName string
    The name of the package.
    RepositoryId string
    The last part of the repository name to fetch from.
    TagName string
    The name of the tag.
    Project string
    The project ID in which the resource belongs. If it is not provided, the provider project is used.
    location String
    The location of the artifact registry.
    packageName String
    The name of the package.
    repositoryId String
    The last part of the repository name to fetch from.
    tagName String
    The name of the tag.
    project String
    The project ID in which the resource belongs. If it is not provided, the provider project is used.
    location string
    The location of the artifact registry.
    packageName string
    The name of the package.
    repositoryId string
    The last part of the repository name to fetch from.
    tagName string
    The name of the tag.
    project string
    The project ID in which the resource belongs. If it is not provided, the provider project is used.
    location str
    The location of the artifact registry.
    package_name str
    The name of the package.
    repository_id str
    The last part of the repository name to fetch from.
    tag_name str
    The name of the tag.
    project str
    The project ID in which the resource belongs. If it is not provided, the provider project is used.
    location String
    The location of the artifact registry.
    packageName String
    The name of the package.
    repositoryId String
    The last part of the repository name to fetch from.
    tagName String
    The name of the tag.
    project String
    The project ID in which the resource belongs. If it is not provided, the provider project is used.

    getTag Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Name string
    The name of the tag, for example: projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1. If the package part contains slashes, the slashes are escaped.
    PackageName string
    RepositoryId string
    TagName string
    Version string
    The version of the tag.
    Project string
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Name string
    The name of the tag, for example: projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1. If the package part contains slashes, the slashes are escaped.
    PackageName string
    RepositoryId string
    TagName string
    Version string
    The version of the tag.
    Project string
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    name String
    The name of the tag, for example: projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1. If the package part contains slashes, the slashes are escaped.
    packageName String
    repositoryId String
    tagName String
    version String
    The version of the tag.
    project String
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    name string
    The name of the tag, for example: projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1. If the package part contains slashes, the slashes are escaped.
    packageName string
    repositoryId string
    tagName string
    version string
    The version of the tag.
    project string
    id str
    The provider-assigned unique ID for this managed resource.
    location str
    name str
    The name of the tag, for example: projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1. If the package part contains slashes, the slashes are escaped.
    package_name str
    repository_id str
    tag_name str
    version str
    The version of the tag.
    project str
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    name String
    The name of the tag, for example: projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1. If the package part contains slashes, the slashes are escaped.
    packageName String
    repositoryId String
    tagName String
    version String
    The version of the tag.
    project String

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud v8.41.1 published on Monday, Aug 25, 2025 by Pulumi