---
title: "Gets the list of partitions of a Service Fabric service."
method: GET
path: "/Services/{serviceId}/$/GetPartitions"
tags: ["Partition"]
---

# Gets the list of partitions of a Service Fabric service.

`GET /Services/{serviceId}/$/GetPartitions`

The response includes the partition ID, partitioning scheme information, keys supported by the partition, status, health, and other details about the partition.

## Path parameters

- `serviceId` string, required

## Query parameters

- `api-version` '6.4', required
- `ContinuationToken` string
- `timeout` integer

## Response `200`

List of partitions of a Service Fabric service.

- PagedServicePartitionInfoList — The list of partition in the cluster for a service. The list is paged when all of the results cannot fit in a single message. The next set of results can be obtained by executing the same query with the continuation token provided in this list.
  - `ContinuationToken` string — The continuation token parameter is used to obtain next set of results. The continuation token is included in the response of the API when the results from the system do not fit in a single response. When this value is passed to the next API call, the API returns next set of results. If there are no further results, then the continuation token is not included in the response.
  - `Items` ServicePartitionInfo[] — List of service partition information.
    - `ServiceKind` 'Invalid' | 'Stateless' | 'Stateful', required — The kind of service (Stateless or Stateful).
    - `HealthState` 'Invalid' | 'Ok' | 'Warning' | 'Error' | 'Unknown' — The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc.
    - `PartitionStatus` 'Invalid' | 'Ready' | 'NotReady' | 'InQuorumLoss' | 'Reconfiguring' | 'Deleting' — The status of the service fabric service partition.
    - `PartitionInformation` PartitionInformation — Information about the partition identity, partitioning scheme and keys supported by it.
      - `ServicePartitionKind` 'Invalid' | 'Singleton' | 'Int64Range' | 'Named', required — The kind of partitioning scheme used to partition the service.
      - `Id` string, uuid — An internal ID used by Service Fabric to uniquely identify a partition. This is a randomly generated GUID when the service was created. The partition ID is unique and does not change for the lifetime of the service. If the same service was deleted and recreated the IDs of its partitions would be different.

## Other responses

- `default` — The detailed error response.

---

[API](https://skmtc.net/azure/apis/servicefabric-servicefabric.md) · [All operations](https://skmtc.net/azure/apis/servicefabric-servicefabric/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/servicefabric-servicefabric/revisions/8fd479ce0f16/schema)
