- [HTTP request](https://docs.cloud.google.com/deploy/docs/api/reference/rest/v1/projects.locations/getConfig#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/deploy/docs/api/reference/rest/v1/projects.locations/getConfig#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/deploy/docs/api/reference/rest/v1/projects.locations/getConfig#body.request_body)
- [Response body](https://docs.cloud.google.com/deploy/docs/api/reference/rest/v1/projects.locations/getConfig#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/deploy/docs/api/reference/rest/v1/projects.locations/getConfig#body.Config.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/deploy/docs/api/reference/rest/v1/projects.locations/getConfig#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/deploy/docs/api/reference/rest/v1/projects.locations/getConfig#body.aspect_1)
- [SkaffoldVersion](https://docs.cloud.google.com/deploy/docs/api/reference/rest/v1/projects.locations/getConfig#SkaffoldVersion)
  - [JSON representation](https://docs.cloud.google.com/deploy/docs/api/reference/rest/v1/projects.locations/getConfig#SkaffoldVersion.SCHEMA_REPRESENTATION)
- [Try it!](https://docs.cloud.google.com/deploy/docs/api/reference/rest/v1/projects.locations/getConfig#try-it)

Gets the configuration for a location.

### HTTP request

Choose a location:
<button value="global" default="">global</button> <button value="asia-south1">asia-south1</button> <button value="asia-south2">asia-south2</button> <button value="us-central1">us-central1</button> <button value="us-east1">us-east1</button> <button value="us-east4">us-east4</button> <button value="us-east5">us-east5</button> <button value="us-east7">us-east7</button> <button value="us-south1">us-south1</button> <button value="us-west1">us-west1</button> <button value="us-west2">us-west2</button> <button value="us-west3">us-west3</button> <button value="us-west4">us-west4</button>   
`GET https://clouddeploy.googleapis.com/v1/{name=projects/*/locations/*/config}`

<br />

The URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. Name of requested configuration. |

### Request body

The request body must be empty.

### Response body

Service-wide configuration.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "name": string, "supportedVersions": [ { object (`https://docs.cloud.google.com/deploy/docs/api/reference/rest/v1/projects.locations/getConfig#SkaffoldVersion`) } ], "defaultSkaffoldVersion": string, "defaultToolVersions": { object (`https://docs.cloud.google.com/deploy/docs/api/reference/rest/v1/projects.locations.deliveryPipelines.releases#ToolVersions`) } } ``` |

| Fields ||
|---|---|
| `name` | `string` Name of the configuration. |
| `supportedVersions[]` | ``object (`https://docs.cloud.google.com/deploy/docs/api/reference/rest/v1/projects.locations/getConfig#SkaffoldVersion`)`` All supported versions of Skaffold. |
| `defaultSkaffoldVersion` | `string` Default Skaffold version that is assigned when a Release is created without specifying a Skaffold version. |
| `defaultToolVersions` | ``object (`https://docs.cloud.google.com/deploy/docs/api/reference/rest/v1/projects.locations.deliveryPipelines.releases#ToolVersions`)`` Output only. Default tool versions. These tool versions are assigned when a Release is created without specifying tool versions. |

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:

- `clouddeploy.config.get`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).

## SkaffoldVersion

Details of a supported Skaffold version.

| JSON representation |
|---|
| ``` { "version": string, "maintenanceModeTime": string, "supportExpirationTime": string, "supportEndDate": { object (`https://docs.cloud.google.com/deploy/docs/api/reference/rest/v1/projects.locations.deployPolicies#Date`) } } ``` |

| Fields ||
|---|---|
| `version` | `string` Release version number. For example, "1.20.3". |
| `maintenanceModeTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` The time at which this version of Skaffold will enter maintenance mode. 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"`. |
| `supportExpirationTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` The time at which this version of Skaffold will no longer be supported. 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"`. |
| `supportEndDate` | ``object (`https://docs.cloud.google.com/deploy/docs/api/reference/rest/v1/projects.locations.deployPolicies#Date`)`` Date when this version is expected to no longer be supported. |