---
title: Set type | Wartiva GraphQL API
description: Set represents an nftables set object. Wartiva GraphQL API reference with arguments, fields, and examples. Browse related operations and types.
url: https://wartiva.com/api-docs/types/set.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `Set` type

Set represents an nftables set object. Sets are efficient data structures that store collections of elements (like IP addresses, ports) and can be used to quickly check for membership or map keys to values within rules.

## Fields

| Field Name | Description |
|---|---|
| `id` - [`Uint32!`](https://wartiva.com/api-docs/types/uint32.html) | The internal numeric ID of the set, unique within the current transaction. |
| `name` - [`String!`](https://wartiva.com/api-docs/types/string.html) | The human-readable name of the set. |
| `isMap` - [`Boolean!`](https://wartiva.com/api-docs/types/boolean.html) | If true, this set functions as a map, storing key-value pairs instead of just keys. |
| `timeout` - [`Duration!`](https://wartiva.com/api-docs/types/duration.html) | The default timeout duration for elements added to this set. |
| `dataType` - [`SetDatatype!`](https://wartiva.com/api-docs/types/set-datatype.html) | The data type of the elements stored in this set (e.g., IPV4_ADDR, INTEGER, STRING). |
| `comment` - [`String!`](https://wartiva.com/api-docs/types/string.html) | An optional descriptive comment for the set. |
| `size` - [`Uint32!`](https://wartiva.com/api-docs/types/uint32.html) | The maximum size (number of elements) the set can hold. |
| `flags` - [`[SetFlags!]`](https://wartiva.com/api-docs/types/set-flags.html) | Flags that define the behavior and properties of the set. |

## Used by

- [`Table`](https://wartiva.com/api-docs/types/table.html) type: Table is a container for chains and rules.

## Example

### Example

```json
{
  "id": "1073741824",
  "name": "xyz789",
  "isMap": true,
  "timeout": "600000000",
  "dataType": "INVALID",
  "comment": "abc123",
  "size": "1073741824",
  "flags": ["CONSTANT"]
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
