共用方式為


Exports - Delete

要刪除匯出的作業。

DELETE https://management.azure.com/{scope}/providers/Microsoft.CostManagement/exports/{exportName}?api-version=2023-11-01

URI 參數

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

string

匯出名稱。

scope
path True

string

與導出作業相關聯的範圍。 這包括訂用帳戶範圍的 '/subscriptions/{subscriptionId}/' 資源群組範圍的 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' 、計費帳戶範圍的 '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' 和 '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' 適用於部門範圍、'/providers/Microsoft.Billing/billingAccountId}/{billingAccountId}/enrollmentAccounts/{EnrollmentAccount 範圍、'/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope 的 enrollmentAccountId}' billingProfile 範圍的 '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/{billingProfiles/{billingProfileId}'、'/providers/Microsoft.Billing/billingAccountId}/{billingProfileId}/{billingProfileId}/invoiceSections/{invoiceSectionId}' 和 '/providers/Microsoft' 。Billing/billingAccounts/{billingAccountId}/customers/{customerId}' 專屬合作夥伴。

api-version
query True

string

用於此作業的 API 版本。

回應

名稱 類型 Description
200 OK

正常。 要求成功。

Other Status Codes

ErrorResponse

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

安全性

azure_auth

Azure Active Directory OAuth2 Flow。

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

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

範例

ExportDeleteByBillingAccount
ExportDeleteByDepartment
ExportDeleteByEnrollmentAccount
ExportDeleteByManagementGroup
ExportDeleteByResourceGroup
ExportDeleteBySubscription

ExportDeleteByBillingAccount

Sample Request

DELETE https://management.azure.com/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport?api-version=2023-11-01

Sample Response

ExportDeleteByDepartment

Sample Request

DELETE https://management.azure.com/providers/Microsoft.Billing/billingAccounts/12/departments/1234/providers/Microsoft.CostManagement/exports/TestExport?api-version=2023-11-01

Sample Response

ExportDeleteByEnrollmentAccount

Sample Request

DELETE https://management.azure.com/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.CostManagement/exports/TestExport?api-version=2023-11-01

Sample Response

ExportDeleteByManagementGroup

Sample Request

DELETE https://management.azure.com/providers/Microsoft.Management/managementGroups/TestMG/providers/Microsoft.CostManagement/exports/TestExport?api-version=2023-11-01

Sample Response

ExportDeleteByResourceGroup

Sample Request

DELETE https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.CostManagement/exports/TestExport?api-version=2023-11-01

Sample Response

ExportDeleteBySubscription

Sample Request

DELETE https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/exports/TestExport?api-version=2023-11-01

Sample Response

定義

名稱 Description
ErrorDetails

錯誤的詳細數據。

ErrorResponse

錯誤回應表示服務無法處理傳入要求。 錯誤訊息中提供了原因。

某些錯誤回應:

  • 429 TooManyRequests - 要求已節流。 等候 「x-ms-ratelimit-microsoft.consumption-retry-after」 標頭中指定的時間後重試。

  • 503 ServiceUnavailable - 服務暫時無法使用。 請在等候「Retry-After」標頭中指定的時間之後重試。

ErrorDetails

錯誤的詳細數據。

名稱 類型 Description
code

string

錯誤碼。

message

string

指出作業失敗原因的錯誤訊息。

ErrorResponse

錯誤回應表示服務無法處理傳入要求。 錯誤訊息中提供了原因。

某些錯誤回應:

  • 429 TooManyRequests - 要求已節流。 等候 「x-ms-ratelimit-microsoft.consumption-retry-after」 標頭中指定的時間後重試。

  • 503 ServiceUnavailable - 服務暫時無法使用。 請在等候「Retry-After」標頭中指定的時間之後重試。

名稱 類型 Description
error

ErrorDetails

錯誤的詳細數據。