---
title: "Get Google Cloud Usage Cost config"
method: GET
path: "/api/v2/cost/gcp_uc_config/{cloud_account_id}"
tags: ["Cloud Cost Management"]
---

# Get Google Cloud Usage Cost config

`GET /api/v2/cost/gcp_uc_config/{cloud_account_id}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/cost/gcp_uc_config/{cloud_account_id}`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token` scopes: `cloud_cost_management_read`

Get a specific Google Cloud Usage Cost config.

## Path parameters

- `cloud_account_id` integer, required

## Response `200`

OK

- GcpUcConfigResponse: The definition of `GcpUcConfigResponse` object.
  - `data` GcpUcConfigResponseData: The definition of `GcpUcConfigResponseData` object.
    - `attributes` GcpUcConfigResponseDataAttributes: The definition of `GcpUcConfigResponseDataAttributes` object.
      - `account_id` string: The `attributes` `account_id`.
      - `bucket_name` string: The `attributes` `bucket_name`.
      - `created_at` string: The `attributes` `created_at`.
      - `dataset` string: The `attributes` `dataset`.
      - `error_messages` string[], nullable: The `attributes` `error_messages`.
      - `export_prefix` string: The `attributes` `export_prefix`.
      - `export_project_name` string: The `attributes` `export_project_name`.
      - `months` integer: The `attributes` `months`.
      - `project_id` string: The `attributes` `project_id`.
      - `service_account` string: The `attributes` `service_account`.
      - `status` string: The `attributes` `status`.
      - `status_updated_at` string: The `attributes` `status_updated_at`.
      - `updated_at` string: The `attributes` `updated_at`.
    - `id` string: The `GcpUcConfigResponseData` `id`.
    - `type` 'gcp_uc_config', required: Google Cloud Usage Cost config resource type.

## Other responses

- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
