# REST Resource: projects.locations.repositories.mavenArtifacts

- [Resource: MavenArtifact](https://docs.cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations.repositories.mavenArtifacts#MavenArtifact)
  - [JSON representation](https://docs.cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations.repositories.mavenArtifacts#MavenArtifact.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations.repositories.mavenArtifacts#METHODS_SUMMARY)

## Resource: MavenArtifact

MavenArtifact represents a maven artifact.

| JSON representation |
|---|
| ``` { "name": string, "pomUri": string, "groupId": string, "artifactId": string, "version": string, "createTime": string, "updateTime": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Required. registry_location, projectId, 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 projectId, "test-repo" is the repository_name and "com.google.guava:guava:31.0-jre" is the maven artifact. |
| `pomUri` | `string` Required. 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 |
| `groupId` | `string` Group ID for the artifact. Example: com.google.guava |
| `artifactId` | `string` Artifact ID for the artifact. |
| `version` | `string` Version of this artifact. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Time the artifact was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Time the artifact was updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations.repositories.mavenArtifacts/get` | Gets a maven artifact. |
| ### `https://docs.cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations.repositories.mavenArtifacts/list` | Lists maven artifacts. |