primary
API name: primary
JsonpSerializableGet explanations for shard allocations in the cluster. This API accepts the current_node, index, primary and shard parameters in the request body or in query parameters, but not in both at the same time. For unassigned shards, it provides an explanation for why the shard is unassigned. For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. Refer to the linked documentation for examples of how to troubleshoot allocation issues using this API.
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>static final JsonpDeserializer<AllocationExplainRequest>AllocationExplainRequestcluster.allocation_explain".final Stringfinal Booleanfinal Booleanfinal Stringindex()final Timestatic AllocationExplainRequestfinal Booleanprimary()rebuild()voidserialize(jakarta.json.stream.JsonGenerator generator,
JsonpMapper mapper) protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator,
JsonpMapper mapper) protected static voidfinal Integershard()toStringAllocationExplainRequestcluster.allocation_explain".
API name: current_node
API name: include_disk_info
API name: include_yes_decisions
API name: index
API name: master_timeout
API name: primary
API name: shard
serialize in interface JsonpSerializableAllocationExplainRequest.Builder initialized with field values of this instance