Permission Bindings - List By Namespace
列出命名空间下的所有权限绑定。
获取命名空间下的所有权限绑定。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/permissionBindings?api-version=2025-02-15
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/permissionBindings?api-version=2025-02-15&$filter={$filter}&$top={$top}
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
namespace
|
path | True |
string minLength: 3maxLength: 50 pattern: ^[a-zA-Z0-9-]*$ |
命名空间的名称。 |
|
resource
|
path | True |
string |
用户订阅中的资源组的名称。 |
|
subscription
|
path | True |
string |
唯一标识Microsoft Azure 订阅的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
|
api-version
|
query | True |
string |
要用于客户端请求的 API 的版本。 |
|
$filter
|
query |
string |
用于使用 OData 语法筛选搜索结果的查询。 仅允许对“name”属性进行筛选,并且 OData作数量有限。 这些作包括:“contains”函数以及以下逻辑作:not、or, or, eq (for equal)和 ne (对于不相等)。 不支持算术运算。 下面是有效的筛选器示例:$filter=contains(namE、'PATTERN')和名称 ne 'PATTERN-1'。 下面是无效的筛选器示例:$filter=location eq 'westus'。 |
|
|
$top
|
query |
integer (int32) |
要为列表作返回每页的结果数。 顶部参数的有效范围为 1 到 100。 如果未指定,则返回的默认结果数是每页 20 个项目。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
还行 |
|
| Other Status Codes |
如果请求失败,则返回错误响应。 |
示例
PermissionBindings_ListByNamespace
示例请求
GET https://management.azure.com/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/namespace123/permissionBindings?api-version=2025-02-15
示例响应
{
"value": [
{
"properties": {
"topicSpaceName": "exampleTopicSpaceName1",
"clientGroupName": "exampleClientGroupName1",
"permission": "Publisher",
"provisioningState": "Succeeded"
},
"id": "/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/namespaces/exampleNamespaceName1/permissionBindings/examplePermissionBindingName1",
"name": "examplePermissionBindingName1",
"type": "Microsoft.EventGrid/namespaces/permissionBindings"
}
],
"nextLink": "https://xyz.net/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/providers/microsoft.eventgrid/namespaces/namespace123/permissionBindings?2025-02-15&%24skiptoken=7ZjtaqQwFIbvRWp%2f1dHJ6GgHypK1yro707F%2bdOn%2bUxPdMJhIkmqh9N43cYfeg6CE%2bB45mI%2bHlxz9MCh%2bl0dCL8I4fBi%2fo7woc%2bNg%2fJVyEAfbrgZiIda1jKENx4K98QaLzUQoYpOwCJUbiqUt3mrRcDJIwqiwkRt4%2b30VWMAFgeVW%2b8YKdq5v3e99Dzn3bR14W3vgbCQIc2H3pOFMsFZu8Iip7DhBtmQDacQ3PfqoctRrH4ADgLV1rK1nDRyPBE%2b3N%2bKixmQXTB9Mrzb92gRgDtXd3FW6B3WWPGrt49F5fYS%2ffP7SJxf4dZk7pBvYZYVK2ypRZKFSwFEyyV%2b01Co6K7X3PE%2bnPIexigKl4lQnwy7SL%2bxgeIIlDKGcTslrB6cu5SZoJ6dpwziCbqqC8ll1QQtDeqp5k81zbFTPK9rh67znhfSEXkO9DNV0Vl%2b9fz2MYy19pJuHbm%2fUnqlNMu6uEMFKcdEU83NZ%2fAijpyKDx9WSC7fk9wz%2bSY4z0tWWi7alPiGjMjun0Qpy0SAjqEud9ZTUBc5ya53%2fFFcrLh4izBO4Ylw0xrm80YZcWS7%2bG%2fInTOGTrnVWTy7Yk593RsV72HUcd5XEqND%2fShRRmJ2Mz38%3d"
}
定义
| 名称 | 说明 |
|---|---|
|
created |
创建资源的标识的类型。 |
|
Error |
资源管理错误附加信息。 |
|
Error |
错误详细信息。 |
|
Error |
错误响应 |
|
Permission |
权限绑定资源。 |
|
Permission |
PermissionBinding 资源的预配状态。 |
|
Permission |
列表权限绑定作的结果。 |
|
Permission |
允许的权限。 |
|
system |
与创建和上次修改资源相关的元数据。 |
createdByType
创建资源的标识的类型。
| 值 | 说明 |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
ErrorAdditionalInfo
资源管理错误附加信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| info |
object |
其他信息。 |
| type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| additionalInfo |
错误附加信息。 |
|
| code |
string |
错误代码。 |
| details |
错误详细信息。 |
|
| message |
string |
错误消息。 |
| target |
string |
错误目标。 |
ErrorResponse
错误响应
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误对象。 |
PermissionBinding
权限绑定资源。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
资源的完全限定标识符。 |
| name |
string |
资源的名称。 |
| properties.clientGroupName |
string |
权限绑定到的客户端组资源的名称。 客户端组必须是权限绑定所属的同一命名空间下的资源。 |
| properties.description |
string |
权限绑定资源的说明。 |
| properties.permission |
允许的权限。 |
|
| properties.provisioningState |
PermissionBinding 资源的预配状态。 |
|
| properties.topicSpaceName |
string |
权限绑定到的主题空间资源的名称。 主题空间必须是权限绑定所属的同一命名空间下的资源。 |
| systemData |
与事件网格资源相关的系统元数据。 |
|
| type |
string |
资源的类型。 |
PermissionBindingProvisioningState
PermissionBinding 资源的预配状态。
| 值 | 说明 |
|---|---|
| Creating | |
| Updating | |
| Deleting | |
| Succeeded | |
| Canceled | |
| Failed | |
| Deleted |
PermissionBindingsListResult
列表权限绑定作的结果。
| 名称 | 类型 | 说明 |
|---|---|---|
| nextLink |
string |
权限绑定的下一页的链接。 |
| value |
权限绑定的集合。 |
PermissionType
允许的权限。
| 值 | 说明 |
|---|---|
| Publisher | |
| Subscriber |
systemData
与创建和上次修改资源相关的元数据。
| 名称 | 类型 | 说明 |
|---|---|---|
| createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
| createdBy |
string |
创建资源的标识。 |
| createdByType |
创建资源的标识的类型。 |
|
| lastModifiedAt |
string (date-time) |
上次修改的资源时间戳(UTC) |
| lastModifiedBy |
string |
上次修改资源的标识。 |
| lastModifiedByType |
上次修改资源的标识的类型。 |