# portIdentityKeys

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

@shumoku/core · 0.4.0 · function

# portIdentityKeys

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

Enumerate Port identity keys in priority order. Port matching happens \*within\* a parent node cluster — the same \`ifName\` on a different chassis is a different port. The caller is responsible for that scoping; this list is just the per-port priority order.

```
portIdentityKeys(identity: Identity | undefined): IdentityKey[]
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `identity` | `Identity | undefined` | No additional description. | `—` |

## Returns

```
IdentityKey[]
```

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