Share via


Providers - Provider Permissions

Haal de providermachtigingen op.

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

URI-parameters

Name In Vereist Type Description
resourceProviderNamespace
path True

string

De naamruimte van de resourceprovider.

subscriptionId
path True

string

De Microsoft Azure-abonnements-id.

api-version
query True

string

De API-versie die voor deze bewerking moet worden gebruikt.

Antwoorden

Name Type Description
200 OK

ProviderPermissionListResult

OK: retourneert informatie over de providermachtigingen.

Other Status Codes

CloudError

Foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

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

Scopes

Name Description
user_impersonation uw gebruikersaccount imiteren

Voorbeelden

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"
    }
  ]
}

Definities

Name Description
CloudError

Een foutreactie voor een resourcebeheeraanvraag.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorResponse

Foutreactie

Permission

Roldefinitiemachtigingen.

ProviderAuthorizationConsentState

De autorisatietoestemmingsstatus van de provider.

ProviderPermission

De providermachtiging

ProviderPermissionListResult

Lijst met providermachtigingen.

RoleDefinition

Eigenschappen van roldefinities.

CloudError

Een foutreactie voor een resourcebeheeraanvraag.

Name Type Description
error

ErrorResponse

Foutreactie
Algemene foutreactie voor alle Azure Resource Manager API's om foutdetails voor mislukte bewerkingen te retourneren. (Dit volgt ook de OData-foutreactieindeling.)

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het type aanvullende informatie.

ErrorResponse

Foutreactie

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

Aanvullende informatie over de fout.

code

string

De foutcode.

details

ErrorResponse[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

Permission

Roldefinitiemachtigingen.

Name Type Description
actions

string[]

Toegestane acties.

dataActions

string[]

Toegestane gegevensacties.

notActions

string[]

Geweigerde acties.

notDataActions

string[]

Gegevensacties geweigerd.

ProviderAuthorizationConsentState

De autorisatietoestemmingsstatus van de provider.

Name Type Description
Consented

string

NotRequired

string

NotSpecified

string

Required

string

ProviderPermission

De providermachtiging

Name Type Description
applicationId

string

De toepassings-id.

managedByRoleDefinition

RoleDefinition

Eigenschappen van roldefinities.

providerAuthorizationConsentState

ProviderAuthorizationConsentState

De autorisatietoestemmingsstatus van de provider.

roleDefinition

RoleDefinition

Eigenschappen van roldefinities.

ProviderPermissionListResult

Lijst met providermachtigingen.

Name Type Description
nextLink

string

De URL die moet worden gebruikt om de volgende set resultaten op te halen.

value

ProviderPermission[]

Een matrix van providermachtigingen.

RoleDefinition

Eigenschappen van roldefinities.

Name Type Description
id

string

De roldefinitie-id.

isServiceRole

boolean

Als dit een servicerol is.

name

string

De naam van de roldefinitie.

permissions

Permission[]

Roldefinitiemachtigingen.

scopes

string[]

Toewijsbare bereiken voor roldefinities.