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

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

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

## Request

- Base URL: `https://workloadmanager.googleapis.com`
- URL: `https://workloadmanager.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/deployments`
- 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 Deployments in a given project and location.

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

- ListDeploymentsResponse: Message for response to listing deployments.
  - `deployments` Deployment[]: The list of deployments.
    - `createTime` string, google-datetime: Output only. Create time stamp.
    - `description` string: Description of the deployment.
    - `name` string: The name of the deployment resource. The format is 'projects/{project_id}/locations/{location_id}/deployments/{deployment_id}'.
    - `sapSystemS4Config` SapSystemS4Config: Message for SAP system workload.
      - `allowStoppingForUpdate` boolean
      - `ansibleRunnerServiceAccount` string: Ansible runner service account. Let customers bring their own service account for the Ansible runner.
      - `app` AppDetails: Message for SAP instance details.
        - `appInstanceId` string: Optional. Instance ID for app.
        - `appServiceAccount` string: Application service account. Let customers bring their own service account for the application.
        - `appVmNames` string[]: Optional. Customized VM names.
        - `ascsImage` string: Required. Image for the ASCS server.
        - `ascsInstanceId` string: Optional. Instance ID for ASCS.
        - `ascsMachineType` string: Required. ASCS machine type.
        - `ascsServiceAccount` string: ASCS service account. Let customers bring their own service account for ASCS.
        - `ascsVm` string: Optional. ASCS VM name.
        - `ersInstanceId` string: Optional. Instance ID for ERS.
        - `ersVm` string: Optional. ERS VM name.
        - `image` string: Required. Image for the app server and ASCS server.
        - `machineType` string: Required. Machine type.
        - `secretManagerSecret` string: Required. Secret Manager secret.
        - `sharedStorage` string: Optional. Storage location.
        - `sid` string: Required. The SAP SID is a three-digit server-specific unique identification code.
        - `vmsMultiplier` integer: Required. VMs multiplier.
      - `database` DatabaseDetails: Message for SAP instance details.
        - `databaseServiceAccount` string: Database service account. Let customers bring their own SA for the database.
        - `diskType` string: Required. Disk type.
        - `image` string: Required. Image for the database server.
        - `instanceId` string: Optional. Instance ID.
        - `machineType` string: Required. Machine type.
        - `primaryDbVm` string: Optional. Primary DB VM name.
        - `secondaryDbVm` string: Optional. Secondary DB VM name.
        - `secretManagerSecret` string: Required. Secret Manager secret.
        - `sid` string: Required. The SID is a three-digit server-specific unique identification code.
      - `deploymentModel` 'DEPLOYMENT_MODEL_UNSPECIFIED' | 'DISTRIBUTED' | 'DISTRIBUTED_HA': Required. Supports non-HA and HA models.
      - `environmentType` 'ENVIRONMENT_TYPE_UNSPECIFIED' | 'NON_PRODUCTION' | 'PRODUCTION': Required. Deployment environment.
      - `gcpProjectId` string: The project that infrastructure is deployed in. Currently only supports the same project where the deployment resource exists.
      - `location` LocationDetails: Message for SAP instance details.
        - `createCommsFirewall` boolean: Optional. Create firewall. If true, creates a firewall for the deployment. This field provides an option to not always create a firewall for the deployment.
        - `customTags` string[]: Optional. Network tags.
        - `deploymentDnsEnabled` boolean: Optional. When the user skips DNS configuration in the UI, `deployment_dns_enabled` is false; otherwise `deployment_dns_enabled` is true.
        - `dnsZone` string: Optional. DNS zone name.
        - `dnsZoneNameSuffix` string: Optional. DNS zone name suffix.
        - `internetAccess` 'INTERNETACCESS_UNSPECIFIED' | 'ALLOW_EXTERNAL_IP' | 'CONFIGURE_NAT'
        - `networkProject` string: Optional. Network project.
        - `regionName` string: Required. Region name.
        - `subnetName` string: Required. Subnet name.
        - `vpcName` string: Required. VPC name.
        - `zone1Name` string: Required. Zone 1 name.
        - `zone2Name` string: Optional. Zone 2 name.
      - `mediaBucketName` string: Required. Media bucket name.
      - `sapBootDiskImage` string: Optional. SAP boot disk image.
      - `scalingMethod` 'SCALE_METHOD_UNSPECIFIED' | 'SCALE_UP' | 'SCALE_OUT': Required. Supports scale up and scale out.
      - `version` 'VERSION_UNSPECIFIED' | 'S4_HANA_2021' | 'S4_HANA_2022' | 'S4_HANA_2023': Required. SAP HANA version.
      - `vmPrefix` string: VM prefix.
    - `serviceAccount` string: User-specified Service Account (SA) credentials to be used for Cloud Build. Format: `projects/{projectID}/serviceAccounts/{serviceAccount}` The default Cloud Build SA will be used initially if this field is not set during deployment creation.
    - `sqlServerWorkload` SqlServerWorkload: Message for MS SQL workload.
      - `activeDirectory` ActiveDirectory: Active Directory details.
        - `dnsAddress` string: Optional. DNS IP address.
        - `domain` string: Optional. Human readable form of a domain such as `example.com`.
        - `domainUsername` string: Optional. Domain username.
        - `secretManagerSecret` string: Required. Secret Manager secret.
        - `type` 'ACTIVE_DIRECTORY_TYPE_UNSPECIFIED' | 'GCP_MANAGED' | 'SELF_MANAGED': Required. Active Directory type.
      - `computeEngineServiceAccount` string: Compute Engine service account. Let customers bring their own service account for Compute Engine.
      - `database` Database: Database details.
        - `diskType` string: Required. Disk type.
        - `floatingIpAddress` string: Optional. Only useful for Linux High Availability setup.
        - `machineType` string: Required. Machine type.
        - `secondarySoleTenantNode` string: Optional. The name of a secondary-sole-tenant node/node group.
        - `secondarySoleTenantNodeType` string: Optional. The type of a secondary-sole-tenant node/node group. E.g., compute.googleapis.com/node-name.
        - `secretManagerSecret` string: Required. Secret Manager secret.
        - `smt` boolean: Required. Whether simultaneous multithreading is enabled or not.
        - `soleTenantNode` string: Optional. The name of a primary sole-tenant node/node group.
        - `soleTenantNodeType` string: Optional. The type of a primary sole-tenant node/node group. E.g., compute.googleapis.com/node-name.
        - `tempdbOnSsd` boolean: Required. Whether to have TempDB on local SSD.
        - `tenancyModel` 'TENANCY_MODEL_UNSPECIFIED' | 'SHARED' | 'SOLE_TENANT': Required. SHARED or SOLE_TENANT.
      - `deploymentModel` 'DEPLOYMENT_MODEL_UNSPECIFIED' | 'HIGH_AVAILABILITY' | 'SINGLE_INSTANCE': Required. HIGH_AVAILABILITY or SINGLE_INSTANCE.
      - `environmentType` 'ENVIRONMENT_TYPE_UNSPECIFIED' | 'NON_PRODUCTION' | 'PRODUCTION': Required. Deployment environment.
      - `fciType` 'FCI_TYPE_UNSPECIFIED' | 'SHARED_DISK' | 'S2D': Optional. SHARED_DISK or S2D.
      - `haType` 'HA_TYPE_UNSPECIFIED' | 'AOAG' | 'FCI': Optional. AOAG or FCI. It is only needed for the High Availability deployment mode.
      - `isSqlPayg` boolean: Required. SQL licensing type.
      - `location` SqlLocationDetails: Location and networking details for configuring SQL server workload.
        - `dnsZone` string: Optional. Create a new DNS zone when the field is empty. Only shown for `Using an existing DNS`. List of existing DNS zones. Terraform variable name: existing_dns_zone_name.
        - `gcpProjectId` string: Required. The project that infrastructure is deployed in. Currently only supports the same project where the deployment resource exists.
        - `internetAccess` 'INTERNET_ACCESS_UNSPECIFIED' | 'ALLOW_EXTERNAL_IP' | 'CONFIGURE_NAT': Required. Internet Access.
        - `network` string: Required. Network name.
        - `primaryZone` string: Required. Primary zone.
        - `region` string: Required. Region name.
        - `secondaryZone` string: Optional. Secondary zone cannot be the same as primary_zone and is only for High Availability deployment mode.
        - `subnetwork` string: Required. Subnetwork name.
        - `tertiaryZone` string: Optional. Tertiary zone cannot be the same as primary_zone and secondary_zone, and it is only for High Availability deployment mode.
      - `mediaBucket` string: Required. Name of the media storing SQL server installation files.
      - `operatingSystemType` 'OPERATING_SYSTEM_TYPE_UNSPECIFIED' | 'WINDOWS' | 'UBUNTU' | 'RED_HAT_ENTERPRISE_LINUX' | 'SUSE': Required. The type of the operating system the SQL server is going to run on top of.
      - `osImage` string: Required. The image of the operating system.
      - `osImageType` 'OS_IMAGE_TYPE_UNSPECIFIED' | 'PUBLIC_IMAGE' | 'CUSTOM_IMAGE': Optional. OS image type. It's used to create boot disks for VM instances. When either Windows licensing type or SQL licensing type is BYOL, this option is disabled and defaults to a custom image.
      - `pacemaker` Pacemaker: Pacemaker configuration.
        - `bucketNameNodeCertificates` string: Required. Bucket location for node certificates.
        - `pacemakerCluster` string: Required. Pacemaker cluster name.
        - `pacemakerClusterSecret` string: Required. Pacemaker cluster secret name.
        - `pacemakerClusterUsername` string: Required. Pacemaker cluster username.
        - `sqlPacemakerSecret` string: Required. SQL Pacemaker secret name.
        - `sqlPacemakerUsername` string: Required. SQL Pacemaker username.
      - `sqlServerEdition` 'SQL_SERVER_EDITION_TYPE_UNSPECIFIED' | 'SQL_SERVER_EDITION_TYPE_DEVELOPER' | 'SQL_SERVER_EDITION_TYPE_ENTERPRISE' | 'SQL_SERVER_EDITION_TYPE_STANDARD' | 'SQL_SERVER_EDITION_TYPE_WEB': Optional. SQL Server Edition type, only applicable when the operating system is Linux.
      - `sqlServerVersion` 'SQL_SERVER_VERSION_TYPE_UNSPECIFIED' | 'SQL_SERVER_VERSION_TYPE_2017' | 'SQL_SERVER_VERSION_TYPE_2019' | 'SQL_SERVER_VERSION_TYPE_2022': Optional. 2017, 2019, or 2022.
      - `vmPrefix` string: Required. Should be unique in the project.
    - `state` 'STATE_UNSPECIFIED' | 'CREATING' | 'ACTIVE' | 'UPDATING' | 'DELETING' | 'FAILED': Output only. Current state of the deployment.
    - `terraformVariables` object: Optional. terraform_variables represents all the Terraform variables for the deployment workload. The key is the name of the Terraform variable, and the value is the TerraformVariable. For example: { "project_id": { "input_value": { "string_value": "my-project-id" } }, "zone": { "input_value": { "string_value": "us-central1-a" } } }
    - `updateTime` string, google-datetime: Output only. Update time stamp.
    - `workerPool` string: Optional. The user-specified Cloud Build worker pool resource in which the Cloud Build job will execute. Format: `projects/{project}/locations/{location}/workerPools/{workerPoolId}`. If this field is unspecified, the default Cloud Build worker pool will be used.
    - `workloadType` 'WORKLOAD_TYPE_UNSPECIFIED' | 'SAP_S4' | 'SQL_SERVER' | 'ORACLE': Optional. Workload type of the deployment.
  - `nextPageToken` string: A token identifying a page of results the server should return.
  - `unreachable` string[]: Unordered list. Locations that could not be reached.

---

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