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

# Database

> GMI Cloud local sync: searchable entities, `.search()` filters, and operators.

The GMI Cloud plugin syncs data locally. Use `corsair.gmicloud.db.<entity>.search({ data, limit?, offset? })` with the filters listed per entity.

> [!NOTE]
>
> **New to Corsair?** See [database operations](https://docs.corsair.dev/concepts/database.md), [data synchronization](https://docs.corsair.dev/concepts/integrations.md), and [multi-tenancy](https://docs.corsair.dev/concepts/multi-tenancy.md).

## Baremetals

Path: `gmicloud.db.baremetals.search`

```ts theme={null}
const rows = await corsair.gmicloud.db.baremetals.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `consoleReady` | `boolean` | equals |
| `createdAt` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `idc` | `string` | equals, contains, startsWith, endsWith, in |
| `image` | `string` | equals, contains, startsWith, endsWith, in |
| `imageId` | `string` | equals, contains, startsWith, endsWith, in |
| `name` | `string` | equals, contains, startsWith, endsWith, in |
| `orgId` | `string` | equals, contains, startsWith, endsWith, in |
| `product` | `string` | equals, contains, startsWith, endsWith, in |
| `reason` | `string` | equals, contains, startsWith, endsWith, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***

## Containers

Path: `gmicloud.db.containers.search`

```ts theme={null}
const rows = await corsair.gmicloud.db.containers.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `createdAt` | `string` | equals, contains, startsWith, endsWith, in |
| `eipAddress` | `string` | equals, contains, startsWith, endsWith, in |
| `eipId` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `modifiedAt` | `string` | equals, contains, startsWith, endsWith, in |
| `orgId` | `string` | equals, contains, startsWith, endsWith, in |
| `reason` | `string` | equals, contains, startsWith, endsWith, in |
| `idc` | `string` | equals, contains, startsWith, endsWith, in |
| `product` | `string` | equals, contains, startsWith, endsWith, in |
| `command` | `string` | equals, contains, startsWith, endsWith, in |
| `name` | `string` | equals, contains, startsWith, endsWith, in |
| `templateId` | `string` | equals, contains, startsWith, endsWith, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***

## Elastic Ips

Path: `gmicloud.db.elasticIps.search`

```ts theme={null}
const rows = await corsair.gmicloud.db.elasticIps.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `orgId` | `string` | equals, contains, startsWith, endsWith, in |
| `maxBandwidth` | `string` | equals, contains, startsWith, endsWith, in |
| `name` | `string` | equals, contains, startsWith, endsWith, in |
| `idc` | `string` | equals, contains, startsWith, endsWith, in |
| `ipAddress` | `string` | equals, contains, startsWith, endsWith, in |
| `product` | `string` | equals, contains, startsWith, endsWith, in |
| `instanceID` | `string` | equals, contains, startsWith, endsWith, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***

## Firewalls

Path: `gmicloud.db.firewalls.search`

```ts theme={null}
const rows = await corsair.gmicloud.db.firewalls.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `description` | `string` | equals, contains, startsWith, endsWith, in |
| `name` | `string` | equals, contains, startsWith, endsWith, in |
| `idc` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `isPreset` | `boolean` | equals |
| `orgId` | `string` | equals, contains, startsWith, endsWith, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***

## Media Requests

Path: `gmicloud.db.mediaRequests.search`

```ts theme={null}
const rows = await corsair.gmicloud.db.mediaRequests.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `requestId` | `string` | equals, contains, startsWith, endsWith, in |
| `model` | `string` | equals, contains, startsWith, endsWith, in |
| `status` | `string` | equals, contains, startsWith, endsWith, in |
| `createdAt` | `number` | equals, gt, gte, lt, lte, in |
| `updatedAt` | `number` | equals, gt, gte, lt, lte, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***

## Models

Path: `gmicloud.db.models.search`

```ts theme={null}
const rows = await corsair.gmicloud.db.models.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `object` | `string` | equals, contains, startsWith, endsWith, in |
| `name` | `string` | equals, contains, startsWith, endsWith, in |
| `created` | `number` | equals, gt, gte, lt, lte, in |
| `owned_by` | `string` | equals, contains, startsWith, endsWith, in |
| `context_length` | `number` | equals, gt, gte, lt, lte, in |
| `quantization` | `string` | equals, contains, startsWith, endsWith, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***

## Sandboxes

Path: `gmicloud.db.sandboxes.search`

```ts theme={null}
const rows = await corsair.gmicloud.db.sandboxes.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `sandbox_key` | `string` | equals, contains, startsWith, endsWith, in |
| `template_id` | `string` | equals, contains, startsWith, endsWith, in |
| `idc_name` | `string` | equals, contains, startsWith, endsWith, in |
| `product` | `string` | equals, contains, startsWith, endsWith, in |
| `product_name` | `string` | equals, contains, startsWith, endsWith, in |
| `created_at` | `string` | equals, contains, startsWith, endsWith, in |
| `running_at` | `string` | equals, contains, startsWith, endsWith, in |
| `started_at` | `string` | equals, contains, startsWith, endsWith, in |
| `end_at` | `string` | equals, contains, startsWith, endsWith, in |
| `domain` | `string` | equals, contains, startsWith, endsWith, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***

## Sandbox Templates

Path: `gmicloud.db.sandboxTemplates.search`

```ts theme={null}
const rows = await corsair.gmicloud.db.sandboxTemplates.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `name` | `string` | equals, contains, startsWith, endsWith, in |
| `description` | `string` | equals, contains, startsWith, endsWith, in |
| `idc_name` | `string` | equals, contains, startsWith, endsWith, in |
| `product` | `string` | equals, contains, startsWith, endsWith, in |
| `current_build_id` | `string` | equals, contains, startsWith, endsWith, in |
| `latest_build_id` | `string` | equals, contains, startsWith, endsWith, in |
| `rebuildable` | `boolean` | equals |
| `deleted_at` | `string` | equals, contains, startsWith, endsWith, in |
| `created_at` | `string` | equals, contains, startsWith, endsWith, in |
| `updated_at` | `string` | equals, contains, startsWith, endsWith, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***


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