---
title: "GET /v1/projects/{projectsId}/locations/{locationsId}/repositories"
method: GET
path: "/v1/projects/{projectsId}/locations/{locationsId}/repositories"
tags: ["projects"]
---

# GET /v1/projects/{projectsId}/locations/{locationsId}/repositories

`GET /v1/projects/{projectsId}/locations/{locationsId}/repositories`

## Request

- Base URL: `https://artifactregistry.googleapis.com`
- URL: `https://artifactregistry.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/repositories`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform.read-only`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform.read-only`

Lists repositories.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `filter` string
- `orderBy` string
- `pageSize` integer
- `pageToken` string

## Response `200`

Successful response

- ListRepositoriesResponse: The response from listing repositories.
  - `nextPageToken` string: The token to retrieve the next page of repositories, or empty if there are no more repositories to return.
  - `repositories` Repository[]: The repositories returned.
    - `cleanupPolicies` object: Optional. Cleanup policies for this repository. Cleanup policies indicate when certain package versions can be automatically deleted. Map keys are policy IDs supplied by users during policy creation. They must unique within a repository and be under 128 characters in length.
    - `cleanupPolicyDryRun` boolean: Optional. If true, the cleanup pipeline is prevented from deleting versions in this repository.
    - `createTime` string, google-datetime: Output only. The time when the repository was created.
    - `description` string: The user-provided description of the repository.
    - `disallowUnspecifiedMode` boolean: Optional. If this is true, an unspecified repo type will be treated as error rather than defaulting to standard.
    - `dockerConfig` DockerRepositoryConfig: DockerRepositoryConfig is docker related repository details. Provides additional configuration details for repositories of the docker format type.
      - `immutableTags` boolean: The repository which enabled this flag prevents all tags from being modified, moved or deleted. This does not prevent tags from being created.
    - `format` 'FORMAT_UNSPECIFIED' | 'DOCKER' | 'MAVEN' | 'NPM' | 'APT' | 'YUM' | 'GOOGET' | 'PYTHON' | 'KFP' | 'GO' | 'GENERIC' | 'RUBY' | 'CONDA': Optional. The format of packages that are stored in the repository.
    - `kmsKeyName` string: The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form: `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. This value may not be changed after the Repository has been created.
    - `labels` object: Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.
    - `mavenConfig` MavenRepositoryConfig: MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type.
      - `allowSnapshotOverwrites` boolean: The repository with this flag will allow publishing the same snapshot versions.
      - `versionPolicy` 'VERSION_POLICY_UNSPECIFIED' | 'RELEASE' | 'SNAPSHOT': Version policy defines the versions that the registry will accept.
    - `mode` 'MODE_UNSPECIFIED' | 'STANDARD_REPOSITORY' | 'VIRTUAL_REPOSITORY' | 'REMOTE_REPOSITORY' | 'AOSS_REPOSITORY' | 'ASSURED_OSS_REPOSITORY': Optional. The mode of the repository.
    - `name` string: The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`. For each location in a project, repository names must be unique.
    - `platformLogsConfig` PlatformLogsConfig: The platform logs config for a project or a repository.
      - `loggingState` 'LOGGING_STATE_UNSPECIFIED' | 'ENABLED' | 'DISABLED': Optional. The state of the platform logs: enabled or disabled.
      - `severityLevel` 'SEVERITY_LEVEL_UNSPECIFIED' | 'DEBUG' | 'INFO' | 'NOTICE' | 'WARNING' | 'ERROR' | 'CRITICAL' | 'ALERT' | 'EMERGENCY': Optional. The severity level for the logs. Logs will be generated if their severity level is >= than the value of the severity level mentioned here.
    - `registryUri` string: Output only. The repository endpoint, for example: `us-docker.pkg.dev/my-proj/my-repo`.
    - `remoteRepositoryConfig` RemoteRepositoryConfig: Remote repository configuration.
      - `aptRepository` AptRepository: Configuration for an Apt remote repository.
        - `customRepository` GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository: Customer-specified publicly available remote repository.
          - `uri` string: An https uri reference to the upstream remote repository, for ex: "https://my.apt.registry/".
        - `publicRepository` GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository: Publicly available Apt repositories constructed from a common repository base and a custom repository path.
          - `repositoryBase` 'REPOSITORY_BASE_UNSPECIFIED' | 'DEBIAN' | 'UBUNTU' | 'DEBIAN_SNAPSHOT': A common public repository base for Apt.
          - `repositoryPath` string: A custom field to define a path to a specific repository from the base.
      - `commonRepository` CommonRemoteRepository: Common remote repository settings type.
        - `uri` string: Required. A common public repository base for remote repository.
      - `description` string: The description of the remote source.
      - `disableUpstreamValidation` boolean: Input only. A create/update remote repo option to avoid making a HEAD/GET request to validate a remote repo and any supplied upstream credentials.
      - `dockerRepository` DockerRepository: Configuration for a Docker remote repository.
        - `customRepository` GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository: Customer-specified publicly available remote repository.
          - `uri` string: An https uri reference to the custom remote repository, for ex: "https://registry-1.docker.io".
        - `publicRepository` 'PUBLIC_REPOSITORY_UNSPECIFIED' | 'DOCKER_HUB': One of the publicly available Docker repositories supported by Artifact Registry.
      - `mavenRepository` MavenRepository: Configuration for a Maven remote repository.
        - `customRepository` GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository: Customer-specified publicly available remote repository.
          - `uri` string: An https uri reference to the upstream remote repository, for ex: "https://my.maven.registry/".
        - `publicRepository` 'PUBLIC_REPOSITORY_UNSPECIFIED' | 'MAVEN_CENTRAL': One of the publicly available Maven repositories supported by Artifact Registry.
      - `noCache` NoCacheFetching: The configuration for the no-cache fetching mode, which acts as a non-caching proxy.
      - `npmRepository` NpmRepository: Configuration for a Npm remote repository.
        - `customRepository` GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository: Customer-specified publicly available remote repository.
          - `uri` string: An https uri reference to the upstream remote repository, for ex: "https://my.npm.registry/".
        - `publicRepository` 'PUBLIC_REPOSITORY_UNSPECIFIED' | 'NPMJS': One of the publicly available Npm repositories supported by Artifact Registry.
      - `pythonRepository` PythonRepository: Configuration for a Python remote repository.
        - `customRepository` GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository: Customer-specified publicly available remote repository.
          - `uri` string: An https uri reference to the upstream remote repository, for ex: "https://my.python.registry/".
        - `publicRepository` 'PUBLIC_REPOSITORY_UNSPECIFIED' | 'PYPI': One of the publicly available Python repositories supported by Artifact Registry.
      - `upstreamCredentials` UpstreamCredentials: The credentials to access the remote repository.
        - `usernamePasswordCredentials` UsernamePasswordCredentials: Username and password credentials.
          - `passwordSecretVersion` string: The Secret Manager key version that holds the password to access the remote repository. Must be in the format of `projects/{project}/secrets/{secret}/versions/{version}`.
          - `username` string: The username to access the remote repository.
      - `yumRepository` YumRepository: Configuration for a Yum remote repository.
        - `customRepository` GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository: Customer-specified publicly available remote repository.
          - `uri` string: An https uri reference to the upstream remote repository, for ex: "https://my.yum.registry/".
        - `publicRepository` GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryPublicRepository: Publicly available Yum repositories constructed from a common repository base and a custom repository path.
          - `repositoryBase` 'REPOSITORY_BASE_UNSPECIFIED' | 'CENTOS' | 'CENTOS_DEBUG' | 'CENTOS_VAULT' | 'CENTOS_STREAM' | 'ROCKY' | 'EPEL': A common public repository base for Yum.
          - `repositoryPath` string: A custom field to define a path to a specific repository from the base.
    - `satisfiesPzi` boolean: Output only. Whether or not this repository satisfies PZI.
    - `satisfiesPzs` boolean: Output only. Whether or not this repository satisfies PZS.
    - `sizeBytes` string, int64: Output only. The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.
    - `updateTime` string, google-datetime: Output only. The time when the repository was last updated.
    - `virtualRepositoryConfig` VirtualRepositoryConfig: Virtual repository configuration.
      - `upstreamPolicies` UpstreamPolicy[]: Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.
        - `id` string: The user-provided ID of the upstream policy.
        - `priority` integer: Entries with a greater priority value take precedence in the pull order.
        - `repository` string: A reference to the repository resource, for example: `projects/p1/locations/us-central1/repositories/repo1`.
    - `vulnerabilityScanningConfig` VulnerabilityScanningConfig: Config on whether to perform vulnerability scanning for resources in this repository, as well as output fields describing current state.
      - `enablementConfig` 'ENABLEMENT_CONFIG_UNSPECIFIED' | 'INHERITED' | 'DISABLED': Optional. Config for whether this repository has vulnerability scanning disabled. When unset (ENABLEMENT_CONFIG_UNSPECIFIED), this is treated as INHERITED for Docker repositories and DISABLED for non-Docker repositories.
      - `enablementState` 'ENABLEMENT_STATE_UNSPECIFIED' | 'SCANNING_UNSUPPORTED' | 'SCANNING_DISABLED' | 'SCANNING_ACTIVE': Output only. State of feature enablement, combining repository enablement config and API enablement state.
      - `enablementStateReason` string: Output only. Reason for the repository state.
      - `lastEnableTime` string, google-datetime: Output only. The last time this repository config was enabled.

## Changes

- **2026-11-07** `83834d32294c`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud-platform.read-only` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform.read-only` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/artifactregistry/changes/v1/projects/:projectsId/locations/:locationsId/repositories/get.md)

---

[API](https://skmtc.dev/google/apis/artifactregistry.md) - [All operations](https://skmtc.dev/google/apis/artifactregistry/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/artifactregistry/revisions/83834d32294c?raw)
