Delen via


OpenId Connect Provider - Get

Hiermee wordt een specifieke OpenID Connect-provider zonder geheimen opgevraagd.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}?api-version=2024-05-01

URI-parameters

Name In Vereist Type Description
opid
path True

string

maxLength: 256
pattern: ^[^*#&+:<>?]+$

Id van de OpenID Connect-provider.

resourceGroupName
path True

string

minLength: 1
maxLength: 90

De naam van de resourcegroep. De naam is niet hoofdlettergevoelig.

serviceName
path True

string

minLength: 1
maxLength: 50
pattern: ^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$

De naam van de API Management-service.

subscriptionId
path True

string (uuid)

De id van het doelabonnement. De waarde moet een UUID zijn.

api-version
query True

string

minLength: 1

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

Antwoorden

Name Type Description
200 OK

OpenidConnectProviderContract

De antwoordtekst bevat de opgegeven OpenId Connect Provider-entiteit zonder geheimen.

Kopteksten

ETag: string

Other Status Codes

ErrorResponse

Foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Beveiliging

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Stroom: implicit
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiken

Name Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

ApiManagementGetOpenIdConnectProvider

Voorbeeldaanvraag

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/openidConnectProviders/templateOpenIdConnect2?api-version=2024-05-01

Voorbeeldrespons

{
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/openidConnectProviders/templateOpenIdConnect2",
  "type": "Microsoft.ApiManagement/service/openidconnectproviders",
  "name": "templateOpenIdConnect2",
  "properties": {
    "displayName": "templateoidprovider2",
    "description": "open id provider template2",
    "metadataEndpoint": "https://oidprovider-template2.net",
    "clientId": "oidprovidertemplate2",
    "useInTestConsole": false,
    "useInApiDocumentation": true
  }
}

Definities

Name Description
ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

De foutdetails.

ErrorResponse

Foutreactie

OpenidConnectProviderContract

Details van OpenId Connect-provider.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het extra informatietype.

ErrorDetail

De foutdetails.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

De fout bevat aanvullende informatie.

code

string

De foutcode.

details

ErrorDetail[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

ErrorResponse

Foutreactie

Name Type Description
error

ErrorDetail

Het foutobject.

OpenidConnectProviderContract

Details van OpenId Connect-provider.

Name Type Description
id

string

Volledig gekwalificeerde resource-id voor de resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

De naam van de resource

properties.clientId

string

Client-id van de ontwikkelaarsconsole, de clienttoepassing.

properties.clientSecret

string

Clientgeheim van de ontwikkelaarsconsole, de clienttoepassing.

properties.description

string

Gebruiksvriendelijke beschrijving van OpenID Connect Provider.

properties.displayName

string

maxLength: 50

Gebruiksvriendelijke OpenID Connect Provider-naam.

properties.metadataEndpoint

string

Eindpunt-URI voor metagegevens.

properties.useInApiDocumentation

boolean

Indien waar, wordt de Open ID Connect-provider gebruikt in de API-documentatie in de ontwikkelaarsportal. Standaard onwaar als er geen waarde is opgegeven.

properties.useInTestConsole

boolean

Indien waar, kan de Open ID Connect-provider worden gebruikt in de testconsole van de ontwikkelaarsportal. True standaard als er geen waarde wordt opgegeven.

type

string

Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts'