Delen via


Tenant Access - List Secrets

Informatie over tenanttoegang ophalen.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/listSecrets?api-version=2021-08-01

URI-parameters

Name In Vereist Type Description
accessName
path True

AccessIdName

De id van de Access-configuratie.

resourceGroupName
path True

string

De naam van de resourcegroep.

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

Abonnementsreferenties die het Microsoft Azure-abonnement uniek identificeren. De abonnements-id maakt deel uit van de URI voor elke serviceoproep.

api-version
query True

string

Versie van de API die moet worden gebruikt met de clientaanvraag.

Antwoorden

Name Type Description
200 OK

AccessInformationSecretsContract

Tenanttoegangsgegevens.

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

ApiManagementListSecretsTenantAccess

Voorbeeldaanvraag

POST https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/tenant/access/listSecrets?api-version=2021-08-01

Voorbeeldrespons

{
  "id": "5600b59375ff190048030003",
  "primaryKey": "<primaryKey>",
  "secondaryKey": "<secondaryKey>",
  "enabled": true
}

Definities

Name Description
AccessIdName

De id van de Access-configuratie.

AccessInformationSecretsContract

Tenanttoegangsgegevenscontract van de API Management-service.

ErrorFieldContract

Foutveldcontract.

ErrorResponse

Foutreactie.

AccessIdName

De id van de Access-configuratie.

Waarde Description
access
gitAccess

AccessInformationSecretsContract

Tenanttoegangsgegevenscontract van de API Management-service.

Name Type Description
enabled

boolean

Bepaalt of directe toegang is ingeschakeld.

id

string

Toegangsinformatietype ('access' of 'gitAccess')

primaryKey

string

Primaire toegangssleutel. Deze eigenschap wordt niet ingevuld voor 'GET'-bewerkingen. Gebruik POST-aanvraag '/listSecrets' om de waarde op te halen.

principalId

string

Principal-id (gebruiker).

secondaryKey

string

Secundaire toegangssleutel. Deze eigenschap wordt niet ingevuld voor 'GET'-bewerkingen. Gebruik POST-aanvraag '/listSecrets' om de waarde op te halen.

ErrorFieldContract

Foutveldcontract.

Name Type Description
code

string

Foutcode op eigenschapsniveau.

message

string

Leesbare weergave van fout op eigenschapsniveau.

target

string

Eigenschapsnaam.

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

ErrorFieldContract[]

De lijst met ongeldige velden die in de aanvraag worden verzonden, in het geval van een validatiefout.

error.message

string

Leesbare weergave van de fout.