共用方式為


Batch Account - Delete

刪除指定的 Batch 帳戶。

DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}?api-version=2023-05-01

URI 參數

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

string

Batch 帳戶的名稱。

Regex 模式: ^[a-zA-Z0-9]+$

resourceGroupName
path True

string

包含 Batch 帳戶的資源組名。

subscriptionId
path True

string

Azure 訂用帳戶識別碼。 這是 GUID 格式字串 (例如 000000000-0000-0000-0000-00000-000000000000)

api-version
query True

string

要與 HTTP 要求搭配使用的 API 版本。

回應

名稱 類型 Description
200 OK

作業成功。

202 Accepted

作業將會以異步方式完成。

標題

  • Location: string
  • Retry-After: integer
204 No Content

NoContent -- 帳戶不存在於訂用帳戶中。

Other Status Codes

CloudError

描述作業失敗原因的錯誤回應。

安全性

azure_auth

Azure Active Directory OAuth2 Flow

類型: oauth2
Flow: implicit
授權 URL: https://login.microsoftonline.com/common/oauth2/authorize

範圍

名稱 Description
user_impersonation 模擬您的用戶帳戶

範例

BatchAccountDelete

範例要求

DELETE https://management.azure.com/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct?api-version=2023-05-01

範例回覆

Location: https://management.azure.com/subscriptions/subid/providers/Microsoft.Batch/locations/japaneast/accountOperationResults/sampleacct-30a022cb-a64f-4fd5-9289-8b38b342e9de?api-version=2023-05-01

定義

名稱 Description
CloudError

Batch 服務的錯誤回應。

CloudErrorBody

Batch 服務的錯誤回應。

CloudError

Batch 服務的錯誤回應。

名稱 類型 Description
error

CloudErrorBody

錯誤回應的本文。

CloudErrorBody

Batch 服務的錯誤回應。

名稱 類型 Description
code

string

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

details

CloudErrorBody[]

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

message

string

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

target

string

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