Google Cloud v8.41.1 published on Monday, Aug 25, 2025 by Pulumi
gcp.artifactregistry.getTag
Explore with Pulumi AI
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.
- Package
Name string - The name of the package.
- Repository
Id string - The last part of the repository name to fetch from.
- Tag
Name 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.
- Package
Name string - The name of the package.
- Repository
Id string - The last part of the repository name to fetch from.
- Tag
Name 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.
- package
Name String - The name of the package.
- repository
Id String - The last part of the repository name to fetch from.
- tag
Name 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.
- package
Name string - The name of the package.
- repository
Id string - The last part of the repository name to fetch from.
- tag
Name 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.
- package
Name String - The name of the package.
- repository
Id String - The last part of the repository name to fetch from.
- tag
Name 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. - Package
Name string - Repository
Id string - Tag
Name 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. - Package
Name string - Repository
Id string - Tag
Name 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. - package
Name String - repository
Id String - tag
Name 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. - package
Name string - repository
Id string - tag
Name 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. - package
Name String - repository
Id String - tag
Name 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.