Providers - Provider Permissions
Get the provider permissions.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/providerPermissions?api-version=2021-04-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
string |
The namespace of the resource provider. |
subscription
|
path | True |
string |
The Microsoft Azure subscription ID. |
api-version
|
query | True |
string |
The API version to use for this operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK - Returns information on the provider permissions. |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
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"
}
]
}
Definitions
Name | Description |
---|---|
Cloud |
An error response for a resource management request. |
Error |
The resource management error additional info. |
Error |
Error Response |
Permission |
Role definition permissions. |
Provider |
The provider authorization consent state. |
Provider |
The provider permission |
Provider |
List of provider permissions. |
Role |
Role definition properties. |
CloudError
An error response for a resource management request.
Name | Type | Description |
---|---|---|
error |
Error Response |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorResponse
Error Response
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
Permission
Role definition permissions.
Name | Type | Description |
---|---|---|
actions |
string[] |
Allowed actions. |
dataActions |
string[] |
Allowed Data actions. |
notActions |
string[] |
Denied actions. |
notDataActions |
string[] |
Denied Data actions. |
ProviderAuthorizationConsentState
The provider authorization consent state.
Name | Type | Description |
---|---|---|
Consented |
string |
|
NotRequired |
string |
|
NotSpecified |
string |
|
Required |
string |
ProviderPermission
The provider permission
Name | Type | Description |
---|---|---|
applicationId |
string |
The application id. |
managedByRoleDefinition |
Role definition properties. |
|
providerAuthorizationConsentState |
The provider authorization consent state. |
|
roleDefinition |
Role definition properties. |
ProviderPermissionListResult
List of provider permissions.
Name | Type | Description |
---|---|---|
nextLink |
string |
The URL to use for getting the next set of results. |
value |
An array of provider permissions. |
RoleDefinition
Role definition properties.
Name | Type | Description |
---|---|---|
id |
string |
The role definition ID. |
isServiceRole |
boolean |
If this is a service role. |
name |
string |
The role definition name. |
permissions |
Role definition permissions. |
|
scopes |
string[] |
Role definition assignable scopes. |