Pembaruan Service Fabric
Updates sumber daya aplikasi Service Fabric.
Perbarui sumber daya aplikasi Service Fabric dengan nama yang ditentukan.
Minta
Metode | Permintaan URI |
---|---|
PATCH | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applications/{applicationName}?api-version=2017-07-01-preview |
Parameter
Nama | Jenis | Diperlukan | Lokasi |
---|---|---|---|
subscriptionId | string | Ya | Jalur |
resourceGroupName | string | Ya | Jalur |
clusterName | string | Ya | Jalur |
applicationName | string | Ya | Jalur |
versi-api | string | Ya | Kueri |
parameter | ApplicationResourceUpdate | Ya | Isi |
subscriptionId
Jenis: string
Diperlukan: Ya
Pengidentifikasi langganan pelanggan.
resourceGroupName
Jenis: string
Diperlukan: Ya
Nama grup sumber daya.
clusterName
Jenis: string
Diperlukan: Ya
Nama sumber daya kluster.
applicationName
Jenis: string
Diperlukan: Ya
Nama sumber daya aplikasi.
versi-api
Jenis: string
Diperlukan: Ya
Default: Pratinjau 2017-07-01
Versi API penyedia sumber daya Service Fabric. Ini adalah parameter yang diperlukan dan nilainya harus "2017-07-01-preview" untuk spesifikasi ini.
parameter
Jenis: ApplicationResourceUpdate
Diperlukan: Ya
Sumber daya aplikasi untuk operasi patch.
Respons
Kode Status HTTP | Deskripsi | Skema Respons |
---|---|---|
202 (Diterima) | Permintaan diterima dan operasi akan selesai secara asinkron. |
ApplicationResourceUpdate |
Semua kode status lainnya | Respons kesalahan terperinci. |
ErrorModel |
Contoh
Menambal aplikasi
Minta
PATCH https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp?api-version=2017-07-01-preview
Isi
{
"type": "applications",
"location": "eastus",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp",
"name": "myCluster",
"tags": {},
"properties": {
"typeName": "myAppType",
"typeVersion": "1.0",
"removeApplicationCapacity": false,
"metrics": [
{
"name": "metric1",
"reservationCapacity": "1",
"maximumCapacity": "3",
"totalApplicationCapacity": "5"
}
]
}
}
Respons 202
Header
Retry-After: 10
Location: http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/a553eb63-c332-40df-8ace-eb8d34a9b298?api-version=2017-07-01-preview
Isi
{
"type": "applications",
"location": "eastus",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applications/myApp",
"name": "myCluster",
"tags": {},
"etag": "W/\"636462502180261858\"",
"properties": {
"provisioningState": "Updating",
"typeName": "myAppType",
"typeVersion": "1.0",
"removeApplicationCapacity": false,
"metrics": [
{
"name": "metric1",
"reservationCapacity": "1",
"maximumCapacity": "3",
"totalApplicationCapacity": "5"
}
]
}
}