Billing Role Definition - Get By Department
获取部门角色的定义。 协议类型为企业协议的计费帐户支持此操作。
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/{departmentName}/billingRoleDefinitions/{roleDefinitionName}?api-version=2024-04-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
billing
|
path | True |
string pattern: ^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$ |
唯一标识计费帐户的 ID。 |
department
|
path | True |
string pattern: ^[a-zA-Z\d-_]{1,128}$ |
部门的名称。 |
role
|
path | True |
string pattern: ^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$ |
唯一标识角色定义的 ID。 |
api-version
|
query | True |
string |
要用于客户端请求的 API 的版本。 当前版本为 2024-04-01。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
角色定义的属性。 |
|
Other Status Codes |
描述操作失败的原因的错误响应。 |
示例
BillingRoleDefinitionGetByDepartment
示例请求
示例响应
{
"id": "/providers/Microsoft.Billing/billingAccounts/123456/departments/7368531/billingRoleDefinitions/50000000-aaaa-bbbb-cccc-100000000000",
"name": "50000000-aaaa-bbbb-cccc-100000000000",
"properties": {
"permissions": [
{
"actions": [
"Microsoft.Billing/billingAccounts/departments/read",
"Microsoft.Billing/billingAccounts/departments/write",
"Microsoft.Billing/billingAccounts/departments/action",
"Microsoft.Billing/billingAccounts/departments/delete",
"Microsoft.Billing/billingAccounts/enrollmentAccounts/read",
"Microsoft.Billing/billingAccounts/enrollmentAccounts/write",
"Microsoft.Billing/billingAccounts/enrollmentAccounts/action",
"Microsoft.Billing/billingAccounts/enrollmentAccounts/delete"
]
}
],
"roleName": "Department Admin"
},
"type": "Microsoft.Billing/billingAccounts/departments/billingRoleDefinitions"
}
定义
名称 | 说明 |
---|---|
Billing |
调用方对资源具有的一组允许操作和不允许的操作。 |
Billing |
角色定义的属性。 |
Billing |
角色定义的属性。 |
created |
创建资源的标识的类型。 |
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
system |
与创建和上次修改资源相关的元数据。 |
BillingPermission
调用方对资源具有的一组允许操作和不允许的操作。
名称 | 类型 | 说明 |
---|---|---|
actions |
string[] |
允许调用方执行的操作集。 |
notActions |
string[] |
不允许调用方执行的操作集。 |
BillingRoleDefinition
角色定义的属性。
名称 | 类型 | 说明 |
---|---|---|
id |
string (arm-id) |
资源的完全限定资源 ID。 例如“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}” |
name |
string |
资源的名称 |
properties |
角色定义的属性。 |
|
systemData |
包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。 |
|
tags |
object |
与资源关联的元数据字典。 它可能不会针对所有资源类型进行填充。 支持的最大键/值长度为 256 个字符。 键/值不应为空值,也不应为 null。 键不能包含 <> % & \ ? / |
type |
string |
资源的类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
BillingRoleDefinitionProperties
角色定义的属性。
名称 | 类型 | 说明 |
---|---|---|
description |
string |
角色说明。 |
permissions |
角色具有的 billingPermissions。 |
|
roleName |
string minLength: 1 |
角色的名称。 |
createdByType
创建资源的标识的类型。
值 | 说明 |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
systemData
与创建和上次修改资源相关的元数据。
名称 | 类型 | 说明 |
---|---|---|
createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
createdBy |
string |
创建资源的标识。 |
createdByType |
创建资源的标识的类型。 |
|
lastModifiedAt |
string (date-time) |
上次修改的资源时间戳(UTC) |
lastModifiedBy |
string |
上次修改资源的标识。 |
lastModifiedByType |
上次修改资源的标识的类型。 |