---
title: "List Cloud Cost Management OCI configs"
method: GET
path: "/api/v2/cost/oci_config"
tags: ["Cloud Cost Management"]
---

# List Cloud Cost Management OCI configs

`GET /api/v2/cost/oci_config`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/cost/oci_config`
- 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`

List the OCI configs.

## Response `200`

OK

- OCIConfigsResponse: List of OCI configs.
  - `data` OCIConfig[], required: An OCI config.
    - `attributes` OCIConfigAttributes, required: Attributes for an OCI config.
      - `account_id` string, required: The OCID of the OCI tenancy.
      - `created_at` string, required: The timestamp when the OCI config was created.
      - `error_messages` string[], nullable: The error messages for the OCI config.
      - `status` string, required: The status of the OCI config.
      - `status_updated_at` string, required: The timestamp when the OCI config status was last updated.
      - `updated_at` string, required: The timestamp when the OCI config was last updated.
    - `id` string, required: The ID of the OCI config.
    - `type` 'oci_config', required: Type of OCI config.

## Other responses

- `403`: Forbidden
- `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)
