> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# admin_show_shards

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/admin_show_shards.rs#L17-L20)
pub async fn [admin\_show\_shards](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/admin-show-shards.md#method.admin_show_shards)( \&self, ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[AdminShowShardsResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.AdminShowShardsResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Show the mapping of the shards to the ranksShow the mapping of shards to the corresponding rank and tom. The response message contains list of 16384 (total number of shards in the system) Rank and TOM numbers corresponding to each shard.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/admin_show_shards.rs#L32-L46)
pub async fn [admin\_show\_shards\_with\_opts](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/admin-show-shards.md#method.admin_show_shards_with_opts)( \&self, options: [AdminShowShardsRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.AdminShowShardsRequestOptions.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[AdminShowShardsResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.AdminShowShardsResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Show the mapping of the shards to the ranksShow the mapping of shards to the corresponding rank and tom. The response message contains list of 16384 (total number of shards in the system) Rank and TOM numbers corresponding to each shard.

##### Arguments

<ul>
  <li>`options` - The optional parameters; any left unset take the server’s defaults.</li>
</ul>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/admin_show_shards.rs#L49-L60)
pub async fn [admin\_show\_shards\_raw](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/admin-show-shards.md#method.admin_show_shards_raw)( \&self, request: &[AdminShowShardsRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.AdminShowShardsRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[AdminShowShardsResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.AdminShowShardsResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`AdminShowShardsRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.AdminShowShardsRequest) to the `/admin/show/shards` endpoint.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/admin_show_shards.rs#L64-L76)
pub async fn [admin\_show\_shards\_from\_url](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/admin-show-shards.md#method.admin_show_shards_from_url)( \&self, url: &[str](https://doc.rust-lang.org/1.98.1/std/primitive.str.html), request: &[AdminShowShardsRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.AdminShowShardsRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[AdminShowShardsResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.AdminShowShardsResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`AdminShowShardsRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.AdminShowShardsRequest) to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.