Authorization - Get
Hiermee haalt u de details van de autorisatie op die zijn opgegeven door de id.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}?api-version=2022-08-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
authorization
|
path | True |
string |
Id van de autorisatie. Regex pattern: |
authorization
|
path | True |
string |
Id van de autorisatieprovider. Regex pattern: |
resource
|
path | True |
string |
De naam van de resourcegroep. De naam is niet hoofdlettergevoelig. |
service
|
path | True |
string |
De naam van de API Management service. Regex pattern: |
subscription
|
path | True |
string |
De id van het doelabonnement. |
api-version
|
query | True |
string |
De API-versie die voor deze bewerking moet worden gebruikt. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
De antwoordtekst bevat de opgegeven autorisatie-entiteit. Geen geheimen inbegrepen Headers ETag: string |
|
Other Status Codes |
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
ApiManagementGetAuthorization
Sample Request
GET https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/authorizationProviders/aadwithauthcode/authorizations/authz1?api-version=2022-08-01
Sample Response
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/authorizationProviders/aadwithauthcode/authorizations/authz1",
"type": "Microsoft.ApiManagement/service/authorizationProviders/authorizations",
"name": "authz1",
"properties": {
"authorizationType": "OAuth2",
"oauth2grantType": "AuthorizationCode",
"status": "Connected"
}
}
Definities
Name | Description |
---|---|
Authorization |
Autorisatiecontract. |
Authorization |
Details van autorisatiefout. |
Authorization |
Opties voor autorisatietype |
Error |
Fout veldcontract. |
Error |
Foutreactie. |
OAuth2Grant |
Opties voor OAuth2-toekenningstype |
AuthorizationContract
Autorisatiecontract.
Name | Type | Description |
---|---|---|
id |
string |
Volledig gekwalificeerde resource-id voor de resource. Bijvoorbeeld - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
De naam van de resource |
properties.authorizationType |
Opties voor autorisatietype |
|
properties.error | ||
properties.oauth2grantType |
Opties voor OAuth2-toekenningstype |
|
properties.parameters |
object |
Autorisatieparameters |
properties.status |
string |
Status van de autorisatie |
type |
string |
Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts' |
AuthorizationError
Details van autorisatiefout.
Name | Type | Description |
---|---|---|
code |
string |
Foutcode |
message |
string |
Foutbericht |
AuthorizationType
Opties voor autorisatietype
Name | Type | Description |
---|---|---|
OAuth2 |
string |
OAuth2-autorisatietype |
ErrorFieldContract
Fout veldcontract.
Name | Type | Description |
---|---|---|
code |
string |
Foutcode op eigenschapsniveau. |
message |
string |
Door mensen leesbare weergave van fout op eigenschapsniveau. |
target |
string |
Naam van eigenschap. |
ErrorResponse
Foutreactie.
Name | Type | Description |
---|---|---|
error.code |
string |
Door de service gedefinieerde foutcode. Deze code fungeert als een substatus voor de HTTP-foutcode die is opgegeven in het antwoord. |
error.details |
De lijst met ongeldige velden verzenden in aanvraag, in geval van een validatiefout. |
|
error.message |
string |
Door mensen leesbare weergave van de fout. |
OAuth2GrantType
Opties voor OAuth2-toekenningstype
Name | Type | Description |
---|---|---|
AuthorizationCode |
string |
Autorisatiecode verlenen |
ClientCredentials |
string |
Verlenen van clientreferenties |