---
title: "Gets the name of the Service Fabric application for a service."
method: GET
path: "/Services/{serviceId}/$/GetApplicationName"
tags: ["Service"]
---

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

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

Gets the name of the application for the specified service. A 404 FABRIC_E_SERVICE_DOES_NOT_EXIST error is returned if a service with the provided service ID does not exist.

## Path parameters

- `serviceId` string, required

## Query parameters

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

## Response `200`

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

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

## 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)
