Hämta API-tjänsten
Hämtar egenskaperna för tjänsten.
Åtgärden returnerar egenskaperna för tjänsten.
Förfrågan
Metod | URI för förfrågan |
---|---|
GET | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationName}/services/{serviceName}?api-version=2018-07-01-preview |
Parametrar
Namn | Typ | Obligatorisk | Location |
---|---|---|---|
subscriptionId |
sträng | Ja | Sökväg |
resourceGroupName |
sträng | Ja | Sökväg |
applicationName |
sträng | Ja | Sökväg |
serviceName |
sträng | Ja | Sökväg |
api-version |
sträng | Ja | Söka i data |
subscriptionId
Typ: sträng
Obligatoriskt: Ja
Kundens prenumerationsidentifierare
resourceGroupName
Typ: sträng
Obligatoriskt: Ja
Azure-resursgruppsnamn
applicationName
Typ: sträng
Obligatoriskt: Ja
Programmets identitet.
serviceName
Typ: sträng
Obligatoriskt: Ja
Tjänstens identitet.
api-version
Typ: sträng
Obligatoriskt: Ja
Standard: 2018-07-01-preview
Versionen av API:et. Den här parametern krävs och dess värde måste vara 2018-07-01-preview
.
Svar
HTTP-statuskod | Description | Svarsschema |
---|---|---|
200 (OK) | OK |
ServiceResourceDescription |
Exempel
ServiceGet
Förfrågan
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp/services/helloWorldService?api-version=2018-07-01-preview
200-svar
Brödtext
{
"name": "helloWorldService",
"type": "Microsoft.ServiceFabricMesh/services",
"properties": {
"osType": "Linux",
"codePackages": [
{
"name": "helloWorldCode",
"image": "seabreeze/sbz-helloworld:1.0-alpine",
"endpoints": [
{
"name": "helloWorldListener",
"port": "80"
}
],
"resources": {
"requests": {
"memoryInGB": "1",
"cpu": "1"
}
}
},
{
"name": "helloWorldSideCar",
"image": "seabreeze/sbz-helloworld-sidecar:1.0-alpine",
"resources": {
"requests": {
"memoryInGB": "1",
"cpu": "1"
}
}
}
],
"networkRefs": [
{
"name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"
}
],
"description": "SeaBreeze Hello World Service.",
"replicaCount": "2",
"healthState": "Ok",
"status": "Unknown"
}
}