你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Payment Methods - Delete At Billing Profile

删除付款方式链接,并从计费对象信息中删除付款方式。 只有协议类型为 Microsoft 客户协议的计费帐户支持该操作。

DELETE https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethodLinks/{paymentMethodName}?api-version=2021-10-01

URI 参数

名称 必需 类型 说明
billingAccountName
path True

string

唯一标识计费帐户的 ID。

billingProfileName
path True

string

唯一标识计费对象信息的 ID。

paymentMethodName
path True

string

唯一标识付款方式的 ID。

api-version
query True

string

要与客户端请求一起使用的 API 的版本。 当前版本为 2021-10-01。

响应

名称 类型 说明
200 OK

没问题。 请求已成功。

202 Accepted

已接受

Headers

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

找不到资源。

Other Status Codes

DetachPaymentMethodEligibilityResult

冲突。 付款方式不能与计费对象信息分离。

Other Status Codes

ErrorResponse

描述操作失败原因的错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 流。

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

Scopes

名称 说明
user_impersonation 模拟用户帐户

示例

PaymentMethodAtBillingProfileDelete

Sample Request

DELETE https://management.azure.com/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000032:00000000-0000-0000-0000-000000000099_2019-05-31/billingProfiles/ABC1-A1CD-AB1-BP1/paymentMethodLinks/ABCDABCDABC0?api-version=2021-10-01

Sample Response

Location: https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethodLinks/operationResults/ed2975a8-8f77-43bb-a717-ace54326b14b?api-version=2021-10-01
Retry-After: 60
{
  "error": {
    "code": "PaymentMethodNotEligibleForDetach",
    "message": "Payment method cannot be detached from billing group.",
    "details": [
      {
        "code": "AzureSubscriptions",
        "message": "Payment method cannot be detached as there are active or disabled azure subscriptions on this billing profile."
      },
      {
        "code": "RecurringCharges",
        "message": "Payment method cannot be detached as there are recurring charges on this billing profile."
      },
      {
        "code": "ReservedInstances",
        "message": "Payment method cannot be detached as there are reserved instances on this billing profile."
      },
      {
        "code": "OutstandingCharges",
        "message": "Payment method cannot be detached as there are unpaid outstanding charges on this billing profile."
      },
      {
        "code": "PendingCharges",
        "message": "Payment method cannot be detached as there are pending charges accumulating on this billing profile."
      }
    ]
  }
}

定义

名称 说明
DetachPaymentMethodEligibilityError

错误的详细信息。

detachPaymentMethodEligibilityErrorCode

分离付款方式资格验证的错误代码。

DetachPaymentMethodEligibilityResult

错误响应指示无法将付款方式与计费对象信息分离。

DetachPaymentMethodErrorDetails

分离付款方式资格验证的错误详细信息。

ErrorDetails

错误的详细信息。

ErrorResponse

错误响应指示服务无法处理传入请求。 错误消息中提供了原因。

ErrorSubDetails

错误的子详细信息。

DetachPaymentMethodEligibilityError

错误的详细信息。

名称 类型 说明
code

string

错误代码。

details

DetachPaymentMethodErrorDetails[]

分离付款方式资格错误的列表。

message

string

错误消息。

detachPaymentMethodEligibilityErrorCode

分离付款方式资格验证的错误代码。

名称 类型 说明
AzureSubscriptions

string

OutstandingCharges

string

PendingCharges

string

RecurringCharges

string

ReservedInstances

string

DetachPaymentMethodEligibilityResult

错误响应指示无法将付款方式与计费对象信息分离。

名称 类型 说明
error

DetachPaymentMethodEligibilityError

错误的详细信息。

DetachPaymentMethodErrorDetails

分离付款方式资格验证的错误详细信息。

名称 类型 说明
code

detachPaymentMethodEligibilityErrorCode

分离付款方式资格验证的错误代码。

message

string

分离付款方式资格验证的错误消息。

ErrorDetails

错误的详细信息。

名称 类型 说明
code

string

错误代码。

details

ErrorSubDetails[]

错误的子详细信息。

message

string

指示操作失败原因的错误消息。

target

string

特定错误的目标。

ErrorResponse

错误响应指示服务无法处理传入请求。 错误消息中提供了原因。

名称 类型 说明
error

ErrorDetails

错误的详细信息。

ErrorSubDetails

错误的子详细信息。

名称 类型 说明
code

string

错误代码。

message

string

指示操作失败原因的错误消息。

target

string

特定错误的目标。