你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Billing Role Assignments - List By Enrollment Account
列出计费对象信息上调用方的角色分配。 企业协议 类型的计费帐户支持该操作。
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/{enrollmentAccountName}/billingRoleAssignments?api-version=2019-10-01-preview
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
billing
|
path | True |
string |
唯一标识计费帐户的 ID。 |
enrollment
|
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 流。
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
EnrollmentAccountRoleAssignmentList
Sample Request
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/enrollmentAccounts/{enrollmentAccountName}/billingRoleAssignments?api-version=2019-10-01-preview
Sample Response
{
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/7898901/enrollmentAccounts/225314/billingRoleAssignments/9dfd08c2-62a3-4d47-85bd-1cdba1408402",
"name": "9dfd08c2-62a3-4d47-85bd-1cdba1408402",
"properties": {
"createdOn": "2019-06-28T19:11:50.6168809+00:00",
"createdByUserEmailAddress": "test@billtest900006.onmicrosoft.com",
"roleDefinitionId": "/providers/Microsoft.Billing/billingAccounts/7898901/enrollmentAccounts/225314/billingRoleDefinitions/c15c22c0-9faf-424c-9b7e-bd91c06a240b",
"scope": "/providers/Microsoft.Billing/billingAccounts/7898901/enrollmentAccounts/225314",
"userAuthenticationType": "Organization",
"userEmailAddress": "a_owner@billtest900006.onmicrosoft.com"
},
"type": "Microsoft.Billing/billingAccounts/enrollmentAccounts/billingRoleAssignments"
},
{
"id": "/providers/Microsoft.Billing/billingAccounts/7898901/enrollmentAccounts/225314/billingRoleAssignments/56fba638-e6d7-4b66-a051-1ba543b15360",
"name": "56fba638-e6d7-4b66-a051-1ba543b15360",
"properties": {
"createdOn": "2020-05-31T22:51:21.3629303+00:00",
"createdByUserEmailAddress": "test@billtest900006.onmicrosoft.com",
"roleDefinitionId": "/providers/Microsoft.Billing/billingAccounts/7898901/enrollmentAccounts/225314/billingRoleDefinitions/a0bcee42-bf30-4d1b-926a-48d21664ef71",
"scope": "/providers/Microsoft.Billing/billingAccounts/7898901/enrollmentAccounts/225314"
},
"type": "Microsoft.Billing/billingAccounts/enrollmentAccounts/billingRoleAssignments"
}
]
}
定义
名称 | 说明 |
---|---|
Billing |
角色分配 |
Billing |
角色分配的列表。 |
Error |
错误的详细信息。 |
Error |
错误响应指示服务无法处理传入请求。 错误消息中提供了原因。 |
Error |
BillingRoleAssignment
角色分配
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源 ID。 |
name |
string |
资源名称。 |
properties.createdByPrincipalId |
string |
创建角色分配的用户的主体 ID。 |
properties.createdByPrincipalTenantId |
string |
创建角色分配的用户的租户 ID。 |
properties.createdByUserEmailAddress |
string |
创建角色分配的用户的电子邮件地址。 只有协议类型为 企业协议 的计费帐户才支持此操作。 |
properties.createdOn |
string |
创建角色分配的日期。 |
properties.name |
string |
角色分配的名称。 |
properties.principalId |
string |
向其分配角色的用户的主体 ID。 |
properties.principalTenantId |
string |
向其分配角色的用户的主体租户 ID。 |
properties.roleDefinitionId |
string |
角色定义的 ID。 |
properties.scope |
string |
分配角色的范围。 |
properties.userAuthenticationType |
string |
向其分配角色的用户的身份验证类型,无论是组织还是 MSA。 只有协议类型为 企业协议 的计费帐户才支持此操作。 |
properties.userEmailAddress |
string |
向其分配角色的用户的电子邮件地址。 只有协议类型为 企业协议 的计费帐户才支持此操作。 |
type |
string |
资源类型。 |
BillingRoleAssignmentListResult
角色分配的列表。
名称 | 类型 | 说明 |
---|---|---|
nextLink |
string |
指向下一页结果的链接 (url) 。 |
value |
角色分配的列表。 |
ErrorDetails
错误的详细信息。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误代码。 |
details |
错误的子详细信息。 |
|
message |
string |
指示操作失败原因的错误消息。 |
target |
string |
特定错误的目标。 |
ErrorResponse
错误响应指示服务无法处理传入请求。 错误消息中提供了原因。
名称 | 类型 | 说明 |
---|---|---|
error |
错误的详细信息。 |
ErrorSubDetails
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误代码。 |
message |
string |
指示操作失败原因的错误消息。 |
target |
string |
特定错误的目标。 |