Google Cloud v8.41.1 published on Monday, Aug 25, 2025 by Pulumi
gcp.artifactregistry.getVersion
Explore with Pulumi AI
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.
- Package
Name string - The name of the package.
- Repository
Id string - The last part of the repository name to fetch from.
- Version
Name 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.
- Package
Name string - The name of the package.
- Repository
Id string - The last part of the repository name to fetch from.
- Version
Name 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.
- package
Name String - The name of the package.
- repository
Id String - The last part of the repository name to fetch from.
- version
Name 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.
- package
Name string - The name of the package.
- repository
Id string - The last part of the repository name to fetch from.
- version
Name 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.
- package
Name String - The name of the package.
- repository
Id String - The last part of the repository name to fetch from.
- version
Name 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.
- Create
Time 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. - Package
Name string - List<Get
Version Related Tag> - A list of related tags. Will contain up to 100 tags that reference this version.
- Repository
Id string - Update
Time string - The time, as a RFC 3339 string, this package was last updated. This includes publishing a new version of the package.
- Version
Name string - Project string
- View string
- Annotations map[string]string
- Client specified annotations.
- Create
Time 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. - Package
Name string - []Get
Version Related Tag - A list of related tags. Will contain up to 100 tags that reference this version.
- Repository
Id string - Update
Time string - The time, as a RFC 3339 string, this package was last updated. This includes publishing a new version of the package.
- Version
Name string - Project string
- View string
- annotations Map<String,String>
- Client specified annotations.
- create
Time 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. - package
Name String - List<Get
Version Related Tag> - A list of related tags. Will contain up to 100 tags that reference this version.
- repository
Id String - update
Time String - The time, as a RFC 3339 string, this package was last updated. This includes publishing a new version of the package.
- version
Name String - project String
- view String
- annotations {[key: string]: string}
- Client specified annotations.
- create
Time 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. - package
Name string - Get
Version Related Tag[] - A list of related tags. Will contain up to 100 tags that reference this version.
- repository
Id string - update
Time string - The time, as a RFC 3339 string, this package was last updated. This includes publishing a new version of the package.
- version
Name 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 - Sequence[Get
Version Related Tag] - 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.
- create
Time 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. - package
Name String - List<Property Map>
- A list of related tags. Will contain up to 100 tags that reference this version.
- repository
Id String - update
Time String - The time, as a RFC 3339 string, this package was last updated. This includes publishing a new version of the package.
- version
Name String - project String
- view String
Supporting Types
GetVersionRelatedTag
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.