Back to Redis

CLUSTER MYID

content/commands/cluster-myid.md

latest939 B
Original Source

Returns the node's id.

The CLUSTER MYID command returns the unique, auto-generated identifier that is associated with the connected cluster node.

Redis Software and Redis Cloud compatibility

| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Not supported">❌ Standard</span> <span title="Not supported"><nobr>❌ Active-Active</nobr></span> | <span title="Not supported">❌ Standard</span> <span title="Not supported"><nobr>❌ Active-Active</nobr></span> | |

Return information

{{< multitabs id="cluster-myid-return-info" tab1="RESP2" tab2="RESP3" >}}

Bulk string reply: the node ID.

-tab-sep-

Bulk string reply: the node ID.

{{< /multitabs >}}