你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Providers - Provider Permissions

获取提供程序权限。

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/providerPermissions?api-version=2021-04-01

URI 参数

名称 必需 类型 说明
resourceProviderNamespace
path True

string

资源提供程序的命名空间。

subscriptionId
path True

string

Microsoft Azure 订阅 ID。

api-version
query True

string

要用于此操作的 API 版本。

响应

名称 类型 说明
200 OK

ProviderPermissionListResult

确定 - 返回有关提供程序权限的信息。

Other Status Codes

CloudError

描述操作失败原因的错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 流

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名称 说明
user_impersonation 模拟用户帐户

示例

Get provider resource types.

Sample Request

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.TestRP/providerPermissions?api-version=2021-04-01

Sample Response

{
  "value": [
    {
      "applicationId": "00000000-0000-0000-0000-000000000000",
      "roleDefinition": {
        "id": "00000000000000000000000000000000",
        "name": "Contoso service role",
        "isServiceRole": true,
        "permissions": [
          {
            "actions": [
              "Microsoft.Contoso/*"
            ],
            "notActions": [],
            "dataActions": [],
            "notDataActions": []
          }
        ],
        "scopes": [
          "/"
        ]
      },
      "providerAuthorizationConsentState": "Consented"
    }
  ]
}

定义

名称 说明
CloudError

资源管理请求的错误响应。

ErrorAdditionalInfo

资源管理错误附加信息。

ErrorResponse

错误响应

Permission

角色定义权限。

ProviderAuthorizationConsentState

提供程序授权同意状态。

ProviderPermission

提供程序权限

ProviderPermissionListResult

提供程序权限的列表。

RoleDefinition

角色定义属性。

CloudError

资源管理请求的错误响应。

名称 类型 说明
error

ErrorResponse

错误响应
对所有 Azure 资源管理器 API 的常见错误响应,可返回失败操作的错误详细信息。 (这也遵循 OData 错误响应格式。)

ErrorAdditionalInfo

资源管理错误附加信息。

名称 类型 说明
info

object

其他信息。

type

string

其他信息类型。

ErrorResponse

错误响应

名称 类型 说明
additionalInfo

ErrorAdditionalInfo[]

错误附加信息。

code

string

错误代码。

details

ErrorResponse[]

错误详细信息。

message

string

错误消息。

target

string

错误目标。

Permission

角色定义权限。

名称 类型 说明
actions

string[]

允许的操作。

dataActions

string[]

允许的数据操作。

notActions

string[]

拒绝的操作。

notDataActions

string[]

拒绝的数据操作。

ProviderAuthorizationConsentState

提供程序授权同意状态。

名称 类型 说明
Consented

string

NotRequired

string

NotSpecified

string

Required

string

ProviderPermission

提供程序权限

名称 类型 说明
applicationId

string

应用程序 ID。

managedByRoleDefinition

RoleDefinition

角色定义属性。

providerAuthorizationConsentState

ProviderAuthorizationConsentState

提供程序授权同意状态。

roleDefinition

RoleDefinition

角色定义属性。

ProviderPermissionListResult

提供程序权限的列表。

名称 类型 说明
nextLink

string

用于获取下一组结果的 URL。

value

ProviderPermission[]

提供程序权限的数组。

RoleDefinition

角色定义属性。

名称 类型 说明
id

string

角色定义 ID。

isServiceRole

boolean

如果这是服务角色。

name

string

角色定义名称。

permissions

Permission[]

角色定义权限。

scopes

string[]

角色定义可分配的范围。