你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Billing Profiles - Get Eligibility To Detach Payment Method
验证是否可以将默认付款方式与计费配置文件分离。 协议类型为 Microsoft 客户协议的计费帐户支持该操作。
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/validateDetachPaymentMethodEligibility?api-version=2019-10-01-preview
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
billing
|
path | True |
string |
唯一标识计费帐户的 ID。 |
billing
|
path | True |
string |
唯一标识计费配置文件的 ID。 |
api-version
|
query | True |
string |
要与客户端请求一起使用的 API 版本。 当前版本为 2019-10-01-preview。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
没问题。 请求已成功。 |
|
Other Status Codes |
描述操作失败原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Validate |
Validate |
ValidateDetachPaymentMethodEligibilityFailure
Sample Request
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/validateDetachPaymentMethodEligibility?api-version=2019-10-01-preview
Sample Response
{
"isEligible": false,
"errorDetails": [
{
"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."
}
]
}
ValidateDetachPaymentMethodEligibilitySuccess
Sample Request
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/validateDetachPaymentMethodEligibility?api-version=2019-10-01-preview
Sample Response
{
"isEligible": true
}
定义
名称 | 说明 |
---|---|
detach |
分离付款方式资格验证的错误代码。 |
Detach |
分离付款方式资格验证的结果。 |
Detach |
分离付款方式资格验证的错误详细信息。 |
Error |
错误的详细信息。 |
Error |
错误响应指示服务无法处理传入请求。 错误消息中提供了原因。 |
Error |
detachPaymentMethodEligibilityErrorCode
分离付款方式资格验证的错误代码。
名称 | 类型 | 说明 |
---|---|---|
AzureSubscriptions |
string |
|
OutstandingCharges |
string |
|
PendingCharges |
string |
|
RecurringCharges |
string |
|
ReservedInstances |
string |
DetachPaymentMethodEligibilityResult
分离付款方式资格验证的结果。
名称 | 类型 | 说明 |
---|---|---|
errorDetails |
分离付款方式资格错误的列表。 |
|
isEligible |
boolean |
指定付款方式是否有资格与计费对象信息分离。 |
DetachPaymentMethodErrorDetails
分离付款方式资格验证的错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
code |
分离付款方式资格验证的错误代码。 |
|
message |
string |
分离付款方式资格验证的错误消息。 |
ErrorDetails
错误的详细信息。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误代码。 |
details |
错误的子详细信息。 |
|
message |
string |
指示操作失败原因的错误消息。 |
target |
string |
特定错误的目标。 |
ErrorResponse
错误响应指示服务无法处理传入请求。 错误消息中提供了原因。
名称 | 类型 | 说明 |
---|---|---|
error |
错误的详细信息。 |
ErrorSubDetails
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误代码。 |
message |
string |
指示操作失败原因的错误消息。 |
target |
string |
特定错误的目标。 |