---
title: Get an Elastic Cloud integration account
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > API Reference > Elastic Cloud Integration
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Get an Elastic Cloud integration account{% #get-an-elastic-cloud-integration-account %}

{% tab title="v2" %}
**Note**: This endpoint is in preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
| Datadog site      | API endpoint                                                                                        |
| ----------------- | --------------------------------------------------------------------------------------------------- |
| ap1.datadoghq.com | GET https://api.ap1.datadoghq.com/api/v2/integration-interfaces/elastic-cloud/accounts/{account_id} |
| ap2.datadoghq.com | GET https://api.ap2.datadoghq.com/api/v2/integration-interfaces/elastic-cloud/accounts/{account_id} |
| app.datadoghq.eu  | GET https://api.datadoghq.eu/api/v2/integration-interfaces/elastic-cloud/accounts/{account_id}      |
| app.ddog-gov.com  | GET https://api.ddog-gov.com/api/v2/integration-interfaces/elastic-cloud/accounts/{account_id}      |
| us2.ddog-gov.com  | GET https://api.us2.ddog-gov.com/api/v2/integration-interfaces/elastic-cloud/accounts/{account_id}  |
| uk1.datadoghq.com | GET https://api.uk1.datadoghq.com/api/v2/integration-interfaces/elastic-cloud/accounts/{account_id} |
| app.datadoghq.com | GET https://api.datadoghq.com/api/v2/integration-interfaces/elastic-cloud/accounts/{account_id}     |
| us3.datadoghq.com | GET https://api.us3.datadoghq.com/api/v2/integration-interfaces/elastic-cloud/accounts/{account_id} |
| us5.datadoghq.com | GET https://api.us5.datadoghq.com/api/v2/integration-interfaces/elastic-cloud/accounts/{account_id} |

### Overview

Get an Elastic Cloud integration account. This endpoint requires the `integrations_read` permission.

### Arguments

#### Path Parameters

| Name                         | Type   | Description                                   |
| ---------------------------- | ------ | --------------------------------------------- |
| account_id [*required*] | string | Unique identifier of the integration account. |

### Response

{% tab title="200" %}
OK
{% tab title="Model" %}
Response payload for a single Elastic Cloud integration account.

| Parent field                                 | Field                                        | Type          | Description                                                                                                                                                                                                                                                          |
| -------------------------------------------- | -------------------------------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|                                              | data [*required*]                       | object        | Data envelope of an Elastic Cloud integration account, including server-assigned identity.                                                                                                                                                                           |
| data                                         | attributes [*required*]                 | object        | Attributes of an Elastic Cloud integration account returned in responses.                                                                                                                                                                                            |
| attributes                                   | authentication                               |  <oneOf> | Authentication configured on the Elastic Cloud integration account.                                                                                                                                                                                                  |
| authentication                               | <auth_type=basic>                            | object        | The basic authentication method and username configured on the account.                                                                                                                                                                                              |
| <auth_type=basic>                            | auth_type [*required*]                  | enum          | The authentication method type. Allowed enum values: `basic`                                                                                                                                                                                                         |
| <auth_type=basic>                            | username [*required*]                   | string        | Non-secret username or public identifier for the credential pair.                                                                                                                                                                                                    |
| attributes                                   | dataflows                                    | object        | Data Datadog collects from Elastic Cloud, keyed by dataflow id.                                                                                                                                                                                                      |
| dataflows                                    | elastic-cloud-detailed-index-stats           | object        | Primary shard metrics broken down per index, rather than aggregated across the cluster.                                                                                                                                                                              |
| elastic-cloud-detailed-index-stats           | enabled                                      | boolean       | Whether Datadog collects this data.                                                                                                                                                                                                                                  |
| elastic-cloud-detailed-index-stats           | status                                       | object        | Read-only collection status of a dataflow.                                                                                                                                                                                                                           |
| status                                       | health                                       | enum          | Collection health of a single dataflow. Allowed enum values: `DATAFLOW_HEALTH_OK,DATAFLOW_HEALTH_BROKEN,DATAFLOW_HEALTH_UNKNOWN`                                                                                                                                     |
| status                                       | message                                      | string        | Human-readable detail, populated when the dataflow is not healthy.                                                                                                                                                                                                   |
| status                                       | updated_at                                   | date-time     | Time the status was last computed.                                                                                                                                                                                                                                   |
| dataflows                                    | elastic-cloud-index-stats                    | object        | Metrics for individual indices. Only the indices granted to the role of the user in `authentication` are collected.                                                                                                                                                  |
| elastic-cloud-index-stats                    | enabled                                      | boolean       | Whether Datadog collects this data.                                                                                                                                                                                                                                  |
| elastic-cloud-index-stats                    | status                                       | object        | Read-only collection status of a dataflow.                                                                                                                                                                                                                           |
| status                                       | health                                       | enum          | Collection health of a single dataflow. Allowed enum values: `DATAFLOW_HEALTH_OK,DATAFLOW_HEALTH_BROKEN,DATAFLOW_HEALTH_UNKNOWN`                                                                                                                                     |
| status                                       | message                                      | string        | Human-readable detail, populated when the dataflow is not healthy.                                                                                                                                                                                                   |
| status                                       | updated_at                                   | date-time     | Time the status was last computed.                                                                                                                                                                                                                                   |
| dataflows                                    | elastic-cloud-metrics                        | object        | Node-level statistics for the clusters in your deployment, such as the number of nodes and the number of documents on each node. This is the integration's baseline collection: it is always on and cannot be turned off, which is why it appears in responses only. |
| elastic-cloud-metrics                        | enabled                                      | boolean       | Whether Datadog collects this data. Always `true`, because this collection cannot be turned off.                                                                                                                                                                     |
| elastic-cloud-metrics                        | status                                       | object        | Read-only collection status of a dataflow.                                                                                                                                                                                                                           |
| status                                       | health                                       | enum          | Collection health of a single dataflow. Allowed enum values: `DATAFLOW_HEALTH_OK,DATAFLOW_HEALTH_BROKEN,DATAFLOW_HEALTH_UNKNOWN`                                                                                                                                     |
| status                                       | message                                      | string        | Human-readable detail, populated when the dataflow is not healthy.                                                                                                                                                                                                   |
| status                                       | updated_at                                   | date-time     | Time the status was last computed.                                                                                                                                                                                                                                   |
| dataflows                                    | elastic-cloud-pending-task-stats             | object        | Metrics for cluster-level changes that have been submitted but not yet executed.                                                                                                                                                                                     |
| elastic-cloud-pending-task-stats             | enabled                                      | boolean       | Whether Datadog collects this data.                                                                                                                                                                                                                                  |
| elastic-cloud-pending-task-stats             | status                                       | object        | Read-only collection status of a dataflow.                                                                                                                                                                                                                           |
| status                                       | health                                       | enum          | Collection health of a single dataflow. Allowed enum values: `DATAFLOW_HEALTH_OK,DATAFLOW_HEALTH_BROKEN,DATAFLOW_HEALTH_UNKNOWN`                                                                                                                                     |
| status                                       | message                                      | string        | Human-readable detail, populated when the dataflow is not healthy.                                                                                                                                                                                                   |
| status                                       | updated_at                                   | date-time     | Time the status was last computed.                                                                                                                                                                                                                                   |
| dataflows                                    | elastic-cloud-primary-shard-graceful-timeout | object        | Tolerance for slow primary shard requests, keeping the rest of the collection running when a primary shard request times out instead of failing the run. Only has an effect alongside `elastic-cloud-primary-shard-stats`.                                           |
| elastic-cloud-primary-shard-graceful-timeout | enabled                                      | boolean       | Whether this tolerance is applied.                                                                                                                                                                                                                                   |
| elastic-cloud-primary-shard-graceful-timeout | status                                       | object        | Read-only collection status of a dataflow.                                                                                                                                                                                                                           |
| status                                       | health                                       | enum          | Collection health of a single dataflow. Allowed enum values: `DATAFLOW_HEALTH_OK,DATAFLOW_HEALTH_BROKEN,DATAFLOW_HEALTH_UNKNOWN`                                                                                                                                     |
| status                                       | message                                      | string        | Human-readable detail, populated when the dataflow is not healthy.                                                                                                                                                                                                   |
| status                                       | updated_at                                   | date-time     | Time the status was last computed.                                                                                                                                                                                                                                   |
| dataflows                                    | elastic-cloud-primary-shard-stats            | object        | Metrics covering only the cluster's primary shards.                                                                                                                                                                                                                  |
| elastic-cloud-primary-shard-stats            | enabled                                      | boolean       | Whether Datadog collects this data.                                                                                                                                                                                                                                  |
| elastic-cloud-primary-shard-stats            | status                                       | object        | Read-only collection status of a dataflow.                                                                                                                                                                                                                           |
| status                                       | health                                       | enum          | Collection health of a single dataflow. Allowed enum values: `DATAFLOW_HEALTH_OK,DATAFLOW_HEALTH_BROKEN,DATAFLOW_HEALTH_UNKNOWN`                                                                                                                                     |
| status                                       | message                                      | string        | Human-readable detail, populated when the dataflow is not healthy.                                                                                                                                                                                                   |
| status                                       | updated_at                                   | date-time     | Time the status was last computed.                                                                                                                                                                                                                                   |
| dataflows                                    | elastic-cloud-shard-allocation-stats         | object        | Metrics for how many shards are allocated to each data node, and the disk space they use.                                                                                                                                                                            |
| elastic-cloud-shard-allocation-stats         | enabled                                      | boolean       | Whether Datadog collects this data.                                                                                                                                                                                                                                  |
| elastic-cloud-shard-allocation-stats         | status                                       | object        | Read-only collection status of a dataflow.                                                                                                                                                                                                                           |
| status                                       | health                                       | enum          | Collection health of a single dataflow. Allowed enum values: `DATAFLOW_HEALTH_OK,DATAFLOW_HEALTH_BROKEN,DATAFLOW_HEALTH_UNKNOWN`                                                                                                                                     |
| status                                       | message                                      | string        | Human-readable detail, populated when the dataflow is not healthy.                                                                                                                                                                                                   |
| status                                       | updated_at                                   | date-time     | Time the status was last computed.                                                                                                                                                                                                                                   |
| dataflows                                    | elastic-cloud-slm-stats                      | object        | Metrics about the actions taken by snapshot lifecycle management. Requires the `read_slm` Elasticsearch cluster privilege on the role of the user in `authentication`; without it this dataflow collects no data.                                                    |
| elastic-cloud-slm-stats                      | enabled                                      | boolean       | Whether Datadog collects this data.                                                                                                                                                                                                                                  |
| elastic-cloud-slm-stats                      | status                                       | object        | Read-only collection status of a dataflow.                                                                                                                                                                                                                           |
| status                                       | health                                       | enum          | Collection health of a single dataflow. Allowed enum values: `DATAFLOW_HEALTH_OK,DATAFLOW_HEALTH_BROKEN,DATAFLOW_HEALTH_UNKNOWN`                                                                                                                                     |
| status                                       | message                                      | string        | Human-readable detail, populated when the dataflow is not healthy.                                                                                                                                                                                                   |
| status                                       | updated_at                                   | date-time     | Time the status was last computed.                                                                                                                                                                                                                                   |
| attributes                                   | name [*required*]                       | string        | Human-readable name of the Elastic Cloud integration account.                                                                                                                                                                                                        |
| attributes                                   | settings [*required*]                   | object        | Settings configured on the Elastic Cloud integration account.                                                                                                                                                                                                        |
| settings                                     | tags                                         | string        | Comma-separated list of custom tags for this Elastic Cloud deployment.                                                                                                                                                                                               |
| settings                                     | url [*required*]                        | string        | Elastic Cloud deployment URL.                                                                                                                                                                                                                                        |
| data                                         | id [*required*]                         | string        | Server-generated unique identifier of the Elastic Cloud integration account.                                                                                                                                                                                         |
| data                                         | type [*required*]                       | enum          | The type of the integration account resource. Always `integration-account`. Allowed enum values: `integration-account`                                                                                                                                               |

{% /tab %}

{% tab title="Example" %}

```json
{
  "data": {
    "attributes": {
      "authentication": {
        "auth_type": "basic",
        "username": "datadog"
      },
      "dataflows": {
        "elastic-cloud-detailed-index-stats": {
          "enabled": true,
          "status": {
            "health": "DATAFLOW_HEALTH_OK",
            "message": "",
            "updated_at": "2026-06-25T08:30:50Z"
          }
        },
        "elastic-cloud-index-stats": {
          "enabled": true,
          "status": {
            "health": "DATAFLOW_HEALTH_OK",
            "message": "",
            "updated_at": "2026-06-25T08:30:50Z"
          }
        },
        "elastic-cloud-metrics": {
          "enabled": true,
          "status": {
            "health": "DATAFLOW_HEALTH_OK",
            "message": "",
            "updated_at": "2026-06-25T08:30:50Z"
          }
        },
        "elastic-cloud-pending-task-stats": {
          "enabled": true,
          "status": {
            "health": "DATAFLOW_HEALTH_OK",
            "message": "",
            "updated_at": "2026-06-25T08:30:50Z"
          }
        },
        "elastic-cloud-primary-shard-graceful-timeout": {
          "enabled": true,
          "status": {
            "health": "DATAFLOW_HEALTH_OK",
            "message": "",
            "updated_at": "2026-06-25T08:30:50Z"
          }
        },
        "elastic-cloud-primary-shard-stats": {
          "enabled": true,
          "status": {
            "health": "DATAFLOW_HEALTH_OK",
            "message": "",
            "updated_at": "2026-06-25T08:30:50Z"
          }
        },
        "elastic-cloud-shard-allocation-stats": {
          "enabled": true,
          "status": {
            "health": "DATAFLOW_HEALTH_OK",
            "message": "",
            "updated_at": "2026-06-25T08:30:50Z"
          }
        },
        "elastic-cloud-slm-stats": {
          "enabled": true,
          "status": {
            "health": "DATAFLOW_HEALTH_OK",
            "message": "",
            "updated_at": "2026-06-25T08:30:50Z"
          }
        }
      },
      "name": "elastic-cloud-prod",
      "settings": {
        "tags": "env:prod,team:saasint",
        "url": "https://example.es.us-central1.gcp.cloud.es.io:9243"
      }
    },
    "id": "953a0060-81ec-4221-aed4-d4733b59cd96",
    "type": "integration-account"
  }
}
```

{% /tab %}

{% /tab %}

{% tab title="400" %}
Bad Request
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="403" %}
Forbidden
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="404" %}
Not Found
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="429" %}
Too many requests
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

### Code Example

##### 
                  \# Path parameters export account_id="CHANGE_ME" \# Use a Personal Access Token or Service Access Token export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"  \# Curl command curl -X GET "https://api.datadoghq.com/api/v2/integration-interfaces/elastic-cloud/accounts/${account_id}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" 
                
##### 

```python
"""
Get an Elastic Cloud integration account returns "OK" response
"""

from os import environ
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v2.api.elastic_cloud_integration_api import ElasticCloudIntegrationApi

configuration = Configuration()
configuration.access_token = environ["DD_BEARER_TOKEN"]
configuration.unstable_operations["get_elastic_cloud_integration_account"] = True
with ApiClient(configuration) as api_client:
    api_instance = ElasticCloudIntegrationApi(api_client)
    response = api_instance.get_elastic_cloud_integration_account(
        account_id="account_id",
    )

    print(response)
```

#### Instructions

First [install the library and its dependencies](https://docs.datadoghq.com/api/latest.md?code-lang=python) and then save the example to `example.py` and run following commands:
    DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" python3 "example.py"
##### 

```ruby
# Get an Elastic Cloud integration account returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
  config.access_token = ENV["DD_BEARER_TOKEN"]
  config.unstable_operations["v2.get_elastic_cloud_integration_account".to_sym] = true
end
api_instance = DatadogAPIClient::V2::ElasticCloudIntegrationAPI.new
p api_instance.get_elastic_cloud_integration_account("account_id")
```

#### Instructions

First [install the library and its dependencies](https://docs.datadoghq.com/api/latest.md?code-lang=ruby) and then save the example to `example.rb` and run following commands:
    DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" rb "example.rb"
##### 

```go
// Get an Elastic Cloud integration account returns "OK" response

package main

import (
	"context"
	"encoding/json"
	"fmt"
	"os"

	"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
	"github.com/DataDog/datadog-api-client-go/v2/api/datadogV2"
)

func main() {
	ctx := datadog.NewDefaultContext(context.Background())
	ctx = context.WithValue(ctx, datadog.ContextAccessToken, os.Getenv("DD_BEARER_TOKEN"))
	configuration := datadog.NewConfiguration()
	configuration.SetUnstableOperationEnabled("v2.GetElasticCloudIntegrationAccount", true)
	apiClient := datadog.NewAPIClient(configuration)
	api := datadogV2.NewElasticCloudIntegrationApi(apiClient)
	resp, r, err := api.GetElasticCloudIntegrationAccount(ctx, "account_id")

	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ElasticCloudIntegrationApi.GetElasticCloudIntegrationAccount`: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}

	responseContent, _ := json.MarshalIndent(resp, "", "  ")
	fmt.Fprintf(os.Stdout, "Response from `ElasticCloudIntegrationApi.GetElasticCloudIntegrationAccount`:\n%s\n", responseContent)
}
```

#### Instructions

First [install the library and its dependencies](https://docs.datadoghq.com/api/latest.md?code-lang=go) and then save the example to `main.go` and run following commands:
    DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" go run "main.go"
##### 

```java
// Get an Elastic Cloud integration account returns "OK" response

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.ElasticCloudIntegrationApi;
import com.datadog.api.client.v2.model.ElasticCloudIntegrationAccountResponse;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = ApiClient.getDefaultApiClient();
    defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));
    defaultClient.setUnstableOperationEnabled("v2.getElasticCloudIntegrationAccount", true);
    ElasticCloudIntegrationApi apiInstance = new ElasticCloudIntegrationApi(defaultClient);

    try {
      ElasticCloudIntegrationAccountResponse result =
          apiInstance.getElasticCloudIntegrationAccount("account_id");
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println(
          "Exception when calling ElasticCloudIntegrationApi#getElasticCloudIntegrationAccount");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}
```

#### Instructions

First [install the library and its dependencies](https://docs.datadoghq.com/api/latest.md?code-lang=java) and then save the example to `Example.java` and run following commands:
    DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" java "Example.java"
##### 

```rust
// Get an Elastic Cloud integration account returns "OK" response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_elastic_cloud_integration::ElasticCloudIntegrationAPI;

#[tokio::main]
async fn main() {
    let mut configuration = datadog::Configuration::new();
    configuration.set_unstable_operation_enabled("v2.GetElasticCloudIntegrationAccount", true);
    let api = ElasticCloudIntegrationAPI::with_config(configuration);
    let resp = api
        .get_elastic_cloud_integration_account("account_id".to_string())
        .await;
    if let Ok(value) = resp {
        println!("{:#?}", value);
    } else {
        println!("{:#?}", resp.unwrap_err());
    }
}
```

#### Instructions

First [install the library and its dependencies](https://docs.datadoghq.com/api/latest.md?code-lang=rust) and then save the example to `src/main.rs` and run following commands:
    DD_SITE="datadoghq.com" DD_API_KEY="<API-KEY>" DD_APP_KEY="<APP-KEY>" cargo run
##### 

```typescript
/**
 * Get an Elastic Cloud integration account returns "OK" response
 */

import { client, v2 } from "@datadog/datadog-api-client";

const configuration = client.createConfiguration({
  authMethods: {
    AuthZ: {
      accessToken: process.env.DD_BEARER_TOKEN as string,
    },
  },
});
configuration.unstableOperations["v2.getElasticCloudIntegrationAccount"] = true;
const apiInstance = new v2.ElasticCloudIntegrationApi(configuration);

const params: v2.ElasticCloudIntegrationApiGetElasticCloudIntegrationAccountRequest =
  {
    accountId: "account_id",
  };

apiInstance
  .getElasticCloudIntegrationAccount(params)
  .then((data: v2.ElasticCloudIntegrationAccountResponse) => {
    console.log(
      "API called successfully. Returned data: " + JSON.stringify(data)
    );
  })
  .catch((error: any) => console.error(error));
```

#### Instructions

First [install the library and its dependencies](https://docs.datadoghq.com/api/latest.md?code-lang=typescript) and then save the example to `example.ts` and run following commands:
    DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" tsc "example.ts"
{% /tab %}
