> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# tenantResourcesByIds

> Gets several tenants' resources by global id. Fails when any id doesn't exist. Platform administration; not needed for integrations.



**query** `tenantResourcesByIds(id: [ID!]!): [TenantResources!]!`

## Arguments

**`id`**: `[ID!]!` (required)

Global ids of the tenants' resources (`TenantResources.id`).

## Returns

`[TenantResources!]!`

**`elastic`**: `ElasticDeployment!`

Search deployment that holds the tenant's data.

---

**`id`**: `ID!`

Global id of the tenant's resources. The raw id is the tenant's UUID.

## Examples

```graphql Query
query TenantResourcesByIds($id: [ID!]!) {
  tenantResourcesByIds(id: $id) {
    elastic {
      cloudId
      id
      isLocal
      name
      state
    }
    id
  }
}
```

```json Variables
{
  "id": [
    "id"
  ]
}
```

```json Response
{
  "data": {
    "tenantResourcesByIds": [
      {
        "elastic": {
          "cloudId": "string",
          "id": "string",
          "isLocal": true,
          "name": "string",
          "state": "RUNNING"
        },
        "id": "id"
      }
    ]
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.