共用方式為


Private Zones - Delete

刪除 私用 DNS 區域。 警告:區域中的所有 DNS 記錄也會遭到刪除。 此作業無法復原。 除非移除所有虛擬網路連結,否則無法刪除 私用 DNS 區域。

DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}?api-version=2018-09-01

URI 參數

名稱 位於 必要 類型 Description
privateZoneName
path True

string

沒有終止點) 的 私用 DNS 區域名稱 (。

resourceGroupName
path True

string

資源群組的名稱。

subscriptionId
path True

string

取得用來唯一識別 Microsoft Azure 訂用帳戶的訂用帳戶認證。 訂用帳戶識別碼會構成每個服務呼叫 URI 的一部分。

api-version
query True

string

用戶端 API 版本。

要求標頭

名稱 必要 類型 Description
If-Match

string

私用 DNS 區域的ETag。 請省略此值以一律刪除目前的區域。 指定上次出現的 ETag 值,以防止意外刪除任何並行變更。

回應

名稱 類型 Description
200 OK

已刪除 私用 DNS區域。

202 Accepted

已接受 私用 DNS 區域刪除作業,並以異步方式完成。

204 No Content

找不到 私用 DNS 區域。

Other Status Codes

CloudError

默認回應。 它會根據錯誤定義還原串行化。

範例

DELETE Private DNS Zone

範例要求

DELETE https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com?api-version=2018-09-01

範例回覆

Location: https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsOperationResults/asyncOperationId?api-version=2018-09-01
Azure-AsyncOperation: https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsOperationStatuses/asyncOperationId?api-version=2018-09-01
Retry-After: 60

定義

名稱 Description
CloudError

來自服務的錯誤回應。

CloudErrorBody

來自服務的錯誤回應。

CloudError

來自服務的錯誤回應。

名稱 類型 Description
error

CloudErrorBody

雲端錯誤本文。

CloudErrorBody

來自服務的錯誤回應。

名稱 類型 Description
code

string

錯誤的識別碼。 程式碼不變,且要以程式設計方式使用。

details

CloudErrorBody[]

錯誤的其他詳細數據清單。

message

string

描述錯誤的訊息,適用於在使用者介面中顯示。

target

string

特定錯誤的目標。 例如,錯誤中屬性的名稱。