content/commands/cluster-myshardid.md
Returns the node's shard id.
The CLUSTER MYSHARDID command returns the unique, auto-generated identifier that is associated with the shard to which the connected cluster node belongs.
| 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> | |
{{< multitabs id="cluster-myshardid-return-info" tab1="RESP2" tab2="RESP3" >}}
Bulk string reply: the node's shard ID.
-tab-sep-
Bulk string reply: the node's shard ID.
{{< /multitabs >}}