> ## 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.

# tenantResourceById

> Gets a tenant's resources by global id. Platform administration; not needed for integrations.



**query** `tenantResourceById(id: ID!): TenantResources!`

## Arguments

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

Global id of the tenant's 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 TenantResourceById($id: ID!) {
  tenantResourceById(id: $id) {
    elastic {
      cloudId
      id
      isLocal
      name
      state
    }
    id
  }
}
```

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

```json Response
{
  "data": {
    "tenantResourceById": {
      "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.