- [HTTP request](https://docs.cloud.google.com/tasks/docs/reference/rest/v2/projects.locations/getCmekConfig.md.txt#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/tasks/docs/reference/rest/v2/projects.locations/getCmekConfig.md.txt#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/tasks/docs/reference/rest/v2/projects.locations/getCmekConfig.md.txt#body.request_body)
- [Response body](https://docs.cloud.google.com/tasks/docs/reference/rest/v2/projects.locations/getCmekConfig.md.txt#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/tasks/docs/reference/rest/v2/projects.locations/getCmekConfig.md.txt#body.aspect)
- [Try it!](https://docs.cloud.google.com/tasks/docs/reference/rest/v2/projects.locations/getCmekConfig.md.txt#try-it)

Gets the CMEK config.

Gets the Customer Managed Encryption Key configured with the Cloud Tasks location. By default there is no `kmsKey` configured.

### HTTP request

`GET https://cloudtasks.googleapis.com/v2/{name=projects/*/locations/*/cmekConfig}`

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

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The config. For example: `projects/PROJECT_ID/locations/LOCATION_ID/cmekConfig` Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `cloudtasks.cmekConfig.get` |

### Request body

The request body must be empty.

### Response body

If successful, the response body contains an instance of `CmekConfig`.

### Authorization scopes

Requires one of the following OAuth scopes:

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

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