---
title: NftSocketKey enum | Wartiva GraphQL API
description: NftSocketKey specifies the type of socket information to query in a socket expression. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/nft-socket-key.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL enum

# `NftSocketKey` enum

NftSocketKey specifies the type of socket information to query in a socket expression. Socket expressions match properties of the socket associated with a packet. Reference: [nftables — Socket expression](https://wiki.nftables.org/wiki-nftables/index.php/Socket_matches)

## Values

| Enum Value | Description |
|---|---|
| `TRANSPARENT` | Query if the socket has IP_TRANSPARENT set (NFT_SOCKET_TRANSPARENT). |
| `MARK` | Query the socket mark (NFT_SOCKET_MARK). |
| `WILDCARD` | Query if the socket is a wildcard (unbound) socket (NFT_SOCKET_WILDCARD). |
| `CGROUPV2` | Query the cgroup v2 ID associated with the socket (NFT_SOCKET_CGROUPV2). |

## Used by

- [`SocketExpression`](https://wartiva.com/api-docs/types/socket-expression.html) type: SocketExpression represents an nftables expression for querying information about the socket associated with a packet, if one exists.

## Example

### Example

```json
"TRANSPARENT"

```

---

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