Managed Service for MongoDB API, gRPC: ClusterService.GetShard
Written by
Updated at October 17, 2024
Returns the specified shard.
gRPC request
rpc GetShard (GetClusterShardRequest) returns (Shard)
GetClusterShardRequest
{
"clusterId": "string",
"shardName": "string"
}
Field |
Description |
clusterId |
string Required field. ID of the MongoDB cluster that the shard belongs to. |
shardName |
string Required field. Name of the MongoDB shard to return. |
Shard
{
"name": "string",
"clusterId": "string"
}
Field |
Description |
name |
string Name of the shard. |
clusterId |
string ID of the cluster that the shard belongs to. |