# portIdentityKeys

Canonical: https://docs.shumoku.dev/en/library/api/portIdentityKeys
Language: en

@shumoku/core · 0.6.1 · function

# portIdentityKeys

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/observation/identity.ts#L69)

A port's identity keys in priority order. Ports are matched within one node cluster — the same name on another chassis is another port; the caller scopes the lookup. \`ifIndex\` is last: many agents renumber it across reboots.

```
portIdentityKeys(keys: PortKeys | undefined): IdentityKey[]
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `keys` | `PortKeys | undefined` | No additional description. | `—` |

## Returns

```
IdentityKey[]
```

[`libs/@shumoku/core/src/libs/@shumoku/core/src/observation/identity.ts:69`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/libs/@shumoku/core/src/observation/identity.ts#L69)
