Service Fabric List Service
Gets the list of service resources created in the specified Service Fabric application resource.
Gets all service resources created or in the process of being created in the Service Fabric application resource.
Request
Method | Request URI |
---|---|
GET | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}/services?api-version=2017-07-01-preview |
Parameters
Name | Type | Required | Location |
---|---|---|---|
subscriptionId | string | Yes | Path |
resourceGroupName | string | Yes | Path |
clusterName | string | Yes | Path |
applicationName | string | Yes | Path |
api-version | string | Yes | Query |
subscriptionId
Type: string
Required: Yes
The customer subscription identifier.
resourceGroupName
Type: string
Required: Yes
The name of the resource group.
clusterName
Type: string
Required: Yes
The name of the cluster resource.
applicationName
Type: string
Required: Yes
The name of the application resource.
api-version
Type: string
Required: Yes
Default: 2017-07-01-preview
The version of the Service Fabric resource provider API. This is a required parameter and it's value must be "2017-07-01-preview" for this specification.
Responses
HTTP Status Code | Description | Response Schema |
---|---|---|
200 (OK) | The operation completed successfully. |
ServiceResourceList |
All other status codes | The detailed error response. |
ErrorModel |
Examples
Get a list of service resources
Request
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp/services?api-version=2017-07-01-preview
200 Response
Body
{
"value": [
{
"type": "services",
"location": "eastus",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp/services/myService",
"name": "myCluster",
"tags": {},
"etag": "W/\"636462502183671257\"",
"properties": {
"provisioningState": "Updating",
"serviceKind": "Stateless",
"serviceTypeName": "myServiceType",
"partitionDescription": {
"partitionScheme": "Singleton"
},
"serviceLoadMetrics": [
{
"name": "metric1",
"weight": "Low"
}
],
"instanceCount": "1"
}
}
],
"nextLink": ""
}