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

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

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

## Request

- Base URL: `https://file.googleapis.com`
- URL: `https://file.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/instances`
- Auth: 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`

Lists all instances in a project for either a specified location or for all locations.

## 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

- ListInstancesResponse: ListInstancesResponse is the result of ListInstancesRequest.
  - `instances` Instance[]: A list of instances in the project for the specified location. If the `{location}` value in the request is "-", the response contains a list of instances from all locations. If any location is unreachable, the response will only return instances in reachable locations and the "unreachable" field will be populated with a list of unreachable locations.
    - `capacityStepSizeGb` string, int64: Output only. The incremental increase or decrease in capacity, designated in some number of GB.
    - `createTime` string, google-datetime: Output only. The time when the instance was created.
    - `customPerformanceSupported` boolean: Output only. Indicates whether this instance supports configuring its performance. If true, the user can configure the instance's performance by using the 'performance_config' field.
    - `deletionProtectionEnabled` boolean: Optional. Indicates whether the instance is protected against deletion.
    - `deletionProtectionReason` string: Optional. The reason for enabling deletion protection.
    - `description` string: The description of the instance (2048 characters or less).
    - `directoryServices` DirectoryServicesConfig: Directory Services configuration for Kerberos-based authentication.
      - `ldap` LdapConfig: LdapConfig contains all the parameters for connecting to LDAP servers.
        - `domain` string: Required. The LDAP domain name in the format of `my-domain.com`.
        - `groupsOu` string: Optional. The groups Organizational Unit (OU) is optional. This parameter is a hint to allow faster lookup in the LDAP namespace. In case that this parameter is not provided, Filestore instance will query the whole LDAP namespace.
        - `servers` string[]: Required. The servers names are used for specifying the LDAP servers names. The LDAP servers names can come with two formats: 1. DNS name, for example: `ldap.example1.com`, `ldap.example2.com`. 2. IP address, for example: `10.0.0.1`, `10.0.0.2`, `10.0.0.3`. All servers names must be in the same format: either all DNS names or all IP addresses.
        - `usersOu` string: Optional. The users Organizational Unit (OU) is optional. This parameter is a hint to allow faster lookup in the LDAP namespace. In case that this parameter is not provided, Filestore instance will query the whole LDAP namespace.
    - `etag` string: Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.
    - `fileShares` FileShareConfig[]: File system shares on the instance. For this version, only a single file share is supported.
      - `capacityGb` string, int64: File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes.
      - `name` string: Required. The name of the file share. Must use 1-16 characters for the basic service tier and 1-63 characters for all other service tiers. Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must start with a letter. Immutable.
      - `nfsExportOptions` NfsExportOptions[]: Nfs Export Options. There is a limit of 10 export options per file share.
        - `accessMode` 'ACCESS_MODE_UNSPECIFIED' | 'READ_ONLY' | 'READ_WRITE': Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE.
        - `anonGid` string, int64: An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
        - `anonUid` string, int64: An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
        - `ipRanges` string[]: List of either an IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the file share. Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned. The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions.
        - `network` string: Optional. The source VPC network for ip_ranges. Required for instances using Private Service Connect, optional otherwise. If provided, must be the same network specified in the `NetworkConfig.network` field.
        - `squashMode` 'SQUASH_MODE_UNSPECIFIED' | 'NO_ROOT_SQUASH' | 'ROOT_SQUASH': Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
      - `sourceBackup` string: The resource name of the backup, in the format `projects/{project_number}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.
      - `sourceBackupdrBackup` string: The resource name of the BackupDR backup, in the format `projects/{project_id}/locations/{location_id}/backupVaults/{backupvault_id}/dataSources/{datasource_id}/backups/{backup_id}`,
    - `kmsKeyName` string: KMS key name used for data encryption.
    - `labels` object: Resource labels to represent user provided metadata.
    - `maxCapacityGb` string, int64: Output only. The maximum capacity of the instance in GB.
    - `minCapacityGb` string, int64: Output only. The minimum capacity of the instance in GB.
    - `name` string: Output only. The resource name of the instance, in the format `projects/{project}/locations/{location}/instances/{instance}`.
    - `networks` NetworkConfig[]: VPC networks to which the instance is connected. For this version, only a single network is supported.
      - `connectMode` 'CONNECT_MODE_UNSPECIFIED' | 'DIRECT_PEERING' | 'PRIVATE_SERVICE_ACCESS' | 'PRIVATE_SERVICE_CONNECT': The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING.
      - `ipAddresses` string[]: Output only. IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
      - `modes` string[]: Internet protocol versions for which the instance has IP addresses assigned.
      - `network` string: The name of the Google Compute Engine [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected.
      - `pscConfig` PscConfig: Private Service Connect configuration.
        - `endpointProject` string: Optional. Consumer service project in which the Private Service Connect endpoint would be set up. This is optional, and only relevant in case the network is a shared VPC. If this is not specified, the endpoint would be setup in the VPC host project.
        - `requestedIpAddress` string: Optional. Immutable. Optional: The desired IP address for the instance. If not specified, an IP will be automatically allocated. The IP must be from the subnetwork range configured in the Service Connection Policy. This effective ip address is set in the ip_addresses field. use 3 instead of 2 to avoid conflict with the reserved_ip_range field.
      - `reservedIpRange` string: Optional, reserved_ip_range can have one of the following two types of values. * CIDR range value when using DIRECT_PEERING connect mode. * [Allocated IP address range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode. When the name of an allocated IP address range is specified, it must be one of the ranges associated with the private service access connection. When specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for Enterprise tier in one of the [internal IP address ranges](https://www.arin.net/reference/research/statistics/address_filters/) that identifies the range of IP addresses reserved for this instance. For example, 10.0.0.0/29, 192.168.0.0/24 or 192.168.0.0/26, respectively. The range you specify can't overlap with either existing subnets or assigned IP address ranges for other Filestore instances in the selected VPC network.
    - `performanceConfig` PerformanceConfig: Used for setting the performance configuration. If the user doesn't specify PerformanceConfig, automatically provision the default performance settings as described in https://cloud.google.com/filestore/docs/performance. Larger instances will be linearly set to more IOPS. If the instance's capacity is increased or decreased, its performance will be automatically adjusted upwards or downwards accordingly (respectively).
      - `fixedIops` FixedIOPS: Fixed IOPS (input/output operations per second) parameters.
        - `maxIops` string, int64: Required. Maximum IOPS.
      - `iopsPerTb` IOPSPerTB: IOPS per TB. Filestore defines TB as 1024^4 bytes (TiB).
        - `maxIopsPerTb` string, int64: Required. Maximum IOPS per TiB.
    - `performanceLimits` PerformanceLimits: The enforced performance limits, calculated from the instance's performance configuration.
      - `maxIops` string, int64: Output only. The maximum IOPS.
      - `maxReadIops` string, int64: Output only. The maximum read IOPS.
      - `maxReadThroughputBps` string, int64: Output only. The maximum read throughput in bytes per second.
      - `maxWriteIops` string, int64: Output only. The maximum write IOPS.
      - `maxWriteThroughputBps` string, int64: Output only. The maximum write throughput in bytes per second.
    - `protocol` 'FILE_PROTOCOL_UNSPECIFIED' | 'NFS_V3' | 'NFS_V4_1': Immutable. The protocol indicates the access protocol for all shares in the instance. This field is immutable and it cannot be changed after the instance has been created. Default value: `NFS_V3`.
    - `replication` Replication: Optional. The configuration used to replicate an instance.
      - `replicas` ReplicaConfig[]: Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
        - `lastActiveSyncTime` string, google-datetime: Output only. The timestamp of the latest replication snapshot taken on the active instance and is already replicated safely.
        - `peerInstance` string: Optional. The name of the source instance for the replica, in the format `projects/{project}/locations/{location}/instances/{instance}`. This field is required when creating a replica.
        - `state` 'STATE_UNSPECIFIED' | 'CREATING' | 'READY' | 'REMOVING' | 'FAILED' | 'PROMOTING' | 'PAUSING' | 'PAUSED' | 'RESUMING': Output only. The replica state.
        - `stateReasons` string[]: Output only. Additional information about the replication state, if available.
        - `stateUpdateTime` string, google-datetime: Output only. The time when the replica state was updated.
      - `role` 'ROLE_UNSPECIFIED' | 'ACTIVE' | 'STANDBY': Optional. The replication role. When creating a new replica, this field must be set to `STANDBY`.
    - `satisfiesPzi` boolean: Output only. Reserved for future use.
    - `satisfiesPzs` boolean: Output only. Reserved for future use.
    - `state` 'STATE_UNSPECIFIED' | 'CREATING' | 'READY' | 'REPAIRING' | 'DELETING' | 'ERROR' | 'RESTORING' | 'SUSPENDED' | 'SUSPENDING' | 'RESUMING' | 'REVERTING' | 'PROMOTING': Output only. The instance state.
    - `statusMessage` string: Output only. Additional information about the instance state, if available.
    - `suspensionReasons` string[]: Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
    - `tags` object: Optional. Input only. Immutable. Tag key-value pairs bound to this resource. Each key must be a namespaced name and each value a short name. Example: "123456789012/environment" : "production", "123456789013/costCenter" : "marketing" See the documentation for more information: - Namespaced name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key - Short name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
    - `tier` 'TIER_UNSPECIFIED' | 'STANDARD' | 'PREMIUM' | 'BASIC_HDD' | 'BASIC_SSD' | 'HIGH_SCALE_SSD' | 'ENTERPRISE' | 'ZONAL' | 'REGIONAL': The service tier of the instance.
  - `nextPageToken` string: The token you can use to retrieve the next page of results. Not returned if there are no more results in the list.
  - `unreachable` string[]: Unordered list. Locations that could not be reached.

---

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