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

gcp.artifactregistry.getVersion

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 version from a provided Artifact Registry repository.

    Using getVersion

    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 getVersion(args: GetVersionArgs, opts?: InvokeOptions): Promise<GetVersionResult>
    function getVersionOutput(args: GetVersionOutputArgs, opts?: InvokeOptions): Output<GetVersionResult>
    def get_version(location: Optional[str] = None,
                    package_name: Optional[str] = None,
                    project: Optional[str] = None,
                    repository_id: Optional[str] = None,
                    version_name: Optional[str] = None,
                    view: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetVersionResult
    def get_version_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,
                    version_name: Optional[pulumi.Input[str]] = None,
                    view: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetVersionResult]
    func GetVersion(ctx *Context, args *GetVersionArgs, opts ...InvokeOption) (*GetVersionResult, error)
    func GetVersionOutput(ctx *Context, args *GetVersionOutputArgs, opts ...InvokeOption) GetVersionResultOutput

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

    public static class GetVersion 
    {
        public static Task<GetVersionResult> InvokeAsync(GetVersionArgs args, InvokeOptions? opts = null)
        public static Output<GetVersionResult> Invoke(GetVersionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVersionResult> getVersion(GetVersionArgs args, InvokeOptions options)
    public static Output<GetVersionResult> getVersion(GetVersionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcp:artifactregistry/getVersion:getVersion
      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.
    VersionName string
    The name of the version.
    Project string
    The project ID in which the resource belongs. If it is not provided, the provider project is used.
    View string
    The view, which determines what version information is returned in a response. Possible values are "BASIC" and "FULL". Defaults to "BASIC".
    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.
    VersionName string
    The name of the version.
    Project string
    The project ID in which the resource belongs. If it is not provided, the provider project is used.
    View string
    The view, which determines what version information is returned in a response. Possible values are "BASIC" and "FULL". Defaults to "BASIC".
    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.
    versionName String
    The name of the version.
    project String
    The project ID in which the resource belongs. If it is not provided, the provider project is used.
    view String
    The view, which determines what version information is returned in a response. Possible values are "BASIC" and "FULL". Defaults to "BASIC".
    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.
    versionName string
    The name of the version.
    project string
    The project ID in which the resource belongs. If it is not provided, the provider project is used.
    view string
    The view, which determines what version information is returned in a response. Possible values are "BASIC" and "FULL". Defaults to "BASIC".
    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.
    version_name str
    The name of the version.
    project str
    The project ID in which the resource belongs. If it is not provided, the provider project is used.
    view str
    The view, which determines what version information is returned in a response. Possible values are "BASIC" and "FULL". Defaults to "BASIC".
    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.
    versionName String
    The name of the version.
    project String
    The project ID in which the resource belongs. If it is not provided, the provider project is used.
    view String
    The view, which determines what version information is returned in a response. Possible values are "BASIC" and "FULL". Defaults to "BASIC".

    getVersion Result

    The following output properties are available:

    Annotations Dictionary<string, string>
    Client specified annotations.
    CreateTime string
    The time, as a RFC 3339 string, this package was created.
    Description string
    Description of the version, as specified in its metadata.
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Name string
    The name of the version, for example: projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/version1. If the package part contains slashes, the slashes are escaped.
    PackageName string
    RelatedTags List<GetVersionRelatedTag>
    A list of related tags. Will contain up to 100 tags that reference this version.
    RepositoryId string
    UpdateTime string
    The time, as a RFC 3339 string, this package was last updated. This includes publishing a new version of the package.
    VersionName string
    Project string
    View string
    Annotations map[string]string
    Client specified annotations.
    CreateTime string
    The time, as a RFC 3339 string, this package was created.
    Description string
    Description of the version, as specified in its metadata.
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Name string
    The name of the version, for example: projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/version1. If the package part contains slashes, the slashes are escaped.
    PackageName string
    RelatedTags []GetVersionRelatedTag
    A list of related tags. Will contain up to 100 tags that reference this version.
    RepositoryId string
    UpdateTime string
    The time, as a RFC 3339 string, this package was last updated. This includes publishing a new version of the package.
    VersionName string
    Project string
    View string
    annotations Map<String,String>
    Client specified annotations.
    createTime String
    The time, as a RFC 3339 string, this package was created.
    description String
    Description of the version, as specified in its metadata.
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    name String
    The name of the version, for example: projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/version1. If the package part contains slashes, the slashes are escaped.
    packageName String
    relatedTags List<GetVersionRelatedTag>
    A list of related tags. Will contain up to 100 tags that reference this version.
    repositoryId String
    updateTime String
    The time, as a RFC 3339 string, this package was last updated. This includes publishing a new version of the package.
    versionName String
    project String
    view String
    annotations {[key: string]: string}
    Client specified annotations.
    createTime string
    The time, as a RFC 3339 string, this package was created.
    description string
    Description of the version, as specified in its metadata.
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    name string
    The name of the version, for example: projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/version1. If the package part contains slashes, the slashes are escaped.
    packageName string
    relatedTags GetVersionRelatedTag[]
    A list of related tags. Will contain up to 100 tags that reference this version.
    repositoryId string
    updateTime string
    The time, as a RFC 3339 string, this package was last updated. This includes publishing a new version of the package.
    versionName string
    project string
    view string
    annotations Mapping[str, str]
    Client specified annotations.
    create_time str
    The time, as a RFC 3339 string, this package was created.
    description str
    Description of the version, as specified in its metadata.
    id str
    The provider-assigned unique ID for this managed resource.
    location str
    name str
    The name of the version, for example: projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/version1. If the package part contains slashes, the slashes are escaped.
    package_name str
    related_tags Sequence[GetVersionRelatedTag]
    A list of related tags. Will contain up to 100 tags that reference this version.
    repository_id str
    update_time str
    The time, as a RFC 3339 string, this package was last updated. This includes publishing a new version of the package.
    version_name str
    project str
    view str
    annotations Map<String>
    Client specified annotations.
    createTime String
    The time, as a RFC 3339 string, this package was created.
    description String
    Description of the version, as specified in its metadata.
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    name String
    The name of the version, for example: projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/version1. If the package part contains slashes, the slashes are escaped.
    packageName String
    relatedTags List<Property Map>
    A list of related tags. Will contain up to 100 tags that reference this version.
    repositoryId String
    updateTime String
    The time, as a RFC 3339 string, this package was last updated. This includes publishing a new version of the package.
    versionName String
    project String
    view String

    Supporting Types

    GetVersionRelatedTag

    Name string
    The name of the version, for example: projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/version1. If the package part contains slashes, the slashes are escaped.
    Version string
    Name string
    The name of the version, for example: projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/version1. If the package part contains slashes, the slashes are escaped.
    Version string
    name String
    The name of the version, for example: projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/version1. If the package part contains slashes, the slashes are escaped.
    version String
    name string
    The name of the version, for example: projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/version1. If the package part contains slashes, the slashes are escaped.
    version string
    name str
    The name of the version, for example: projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/version1. If the package part contains slashes, the slashes are escaped.
    version str
    name String
    The name of the version, for example: projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/version1. If the package part contains slashes, the slashes are escaped.
    version 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