Skip to main content

maven_artifacts

Creates, updates, deletes, gets or lists a maven_artifacts resource.

Overview

Namemaven_artifacts
TypeResource
Idgoogle.artifactregistry.maven_artifacts

Fields

NameDatatypeDescription
namestringRequired. registry_location, project_id, repository_name and maven_artifact forms a unique artifact For example, "projects/test-project/locations/us-west4/repositories/test-repo/mavenArtifacts/ com.google.guava:guava:31.0-jre", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and "com.google.guava:guava:31.0-jre" is the maven artifact.
artifactIdstringArtifact ID for the artifact.
createTimestringOutput only. Time the artifact was created.
groupIdstringGroup ID for the artifact. Example: com.google.guava
pomUristringRequired. URL to access the pom file of the artifact. Example: us-west4-maven.pkg.dev/test-project/test-repo/com/google/guava/guava/31.0/guava-31.0.pom
updateTimestringOutput only. Time the artifact was updated.
versionstringVersion of this artifact.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, mavenArtifactsId, projectsId, repositoriesIdGets a maven artifact.
listSELECTlocationsId, projectsId, repositoriesIdLists maven artifacts.

SELECT examples

Lists maven artifacts.

SELECT
name,
artifactId,
createTime,
groupId,
pomUri,
updateTime,
version
FROM google.artifactregistry.maven_artifacts
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND repositoriesId = '{{ repositoriesId }}';