你当前正在访问 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 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
billing
|
path | True |
string |
唯一标识计费帐户的 ID。 |
billing
|
path | True |
string |
唯一标识计费对象信息的 ID。 |
payment
|
path | True |
string |
唯一标识付款方式的 ID。 |
api-version
|
query | True |
string |
要与客户端请求一起使用的 API 的版本。 当前版本为 2021-10-01。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
没问题。 请求已成功。 |
|
202 Accepted |
已接受 Headers
|
|
204 No Content |
找不到资源。 |
|
Other Status Codes |
冲突。 付款方式不能与计费对象信息分离。 |
|
Other Status Codes |
描述操作失败原因的错误响应。 |
安全性
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
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."
}
]
}
}
定义
名称 | 说明 |
---|---|
Detach |
错误的详细信息。 |
detach |
分离付款方式资格验证的错误代码。 |
Detach |
错误响应指示无法将付款方式与计费对象信息分离。 |
Detach |
分离付款方式资格验证的错误详细信息。 |
Error |
错误的详细信息。 |
Error |
错误响应指示服务无法处理传入请求。 错误消息中提供了原因。 |
Error |
错误的子详细信息。 |
DetachPaymentMethodEligibilityError
错误的详细信息。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误代码。 |
details |
分离付款方式资格错误的列表。 |
|
message |
string |
错误消息。 |
detachPaymentMethodEligibilityErrorCode
分离付款方式资格验证的错误代码。
名称 | 类型 | 说明 |
---|---|---|
AzureSubscriptions |
string |
|
OutstandingCharges |
string |
|
PendingCharges |
string |
|
RecurringCharges |
string |
|
ReservedInstances |
string |
DetachPaymentMethodEligibilityResult
错误响应指示无法将付款方式与计费对象信息分离。
名称 | 类型 | 说明 |
---|---|---|
error |
错误的详细信息。 |
DetachPaymentMethodErrorDetails
分离付款方式资格验证的错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
code |
分离付款方式资格验证的错误代码。 |
|
message |
string |
分离付款方式资格验证的错误消息。 |
ErrorDetails
错误的详细信息。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误代码。 |
details |
错误的子详细信息。 |
|
message |
string |
指示操作失败原因的错误消息。 |
target |
string |
特定错误的目标。 |
ErrorResponse
错误响应指示服务无法处理传入请求。 错误消息中提供了原因。
名称 | 类型 | 说明 |
---|---|---|
error |
错误的详细信息。 |
ErrorSubDetails
错误的子详细信息。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误代码。 |
message |
string |
指示操作失败原因的错误消息。 |
target |
string |
特定错误的目标。 |