---
title: "Gets the name of the Service Fabric service for a partition."
method: GET
path: "/Partitions/{partitionId}/$/GetServiceName"
tags: ["Partition"]
---

# Gets the name of the Service Fabric service for a partition.

`GET /Partitions/{partitionId}/$/GetServiceName`

Gets name of the service for the specified partition. A 404 error is returned if the partition ID does not exist in the cluster.

## Path parameters

- `partitionId` string, uuid, required

## Query parameters

- `api-version` '6.0', required
- `timeout` integer

## Response `200`

Information about the name of the service for the specified partition.

- ServiceNameInfo — Information about the service name.
  - `Id` string — The identity of the service. This ID is an encoded representation of the service name. This is used in the REST APIs to identify the service resource. Starting in version 6.0, hierarchical names are delimited with the "\~" character. For example, if the service name is "fabric:/myapp/app1/svc1", the service identity would be "myapp~app1\~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions.
  - `Name` string — The full name of the service with 'fabric:' URI scheme.

## Other responses

- `default` — The detailed error response.

---

[API](https://skmtc.net/azure/apis/service-fabric-client-apis.md) · [All operations](https://skmtc.net/azure/apis/service-fabric-client-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/service-fabric-client-apis/versions/6df9f2f4d542/schema)
