Iot Dps Resource - List Keys For Key Name

Een gedeeld toegangsbeleid op naam ophalen van een inrichtingsservice.
Primaire en secundaire sleutels weergeven voor een specifieke sleutelnaam

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/keys/{keyName}/listkeys?api-version=2018-01-22

URI-parameters

Name In Vereist Type Description
keyName
path True

string

Logische sleutelnaam om sleutelwaarden voor op te halen.

provisioningServiceName
path True

string

Naam van de inrichtingsservice.

resourceGroupName
path True

string

De naam van de resourcegroep die de inrichtingsservice bevat.

subscriptionId
path True

string

De abonnements-id.

api-version
query True

string

De versie van de API.

Antwoorden

Name Type Description
200 OK

SharedAccessSignatureAuthorizationRule[AccessRightsDescription]

Dit is een synchrone bewerking. De hoofdtekst bevat een JSON-geserialiseerd gedeeld toegangsbeleid, inclusief sleutels, dat u kunt gebruiken voor toegang tot een of meer inrichtingsservice-eindpunten.

Other Status Codes

ErrorDetails

Standaardfoutantwoord.

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

DPSGetKey

Sample Request

POST https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/provisioningServices/myFirstProvisioningService/keys/testKey/listkeys?api-version=2018-01-22

Sample Response

{
  "keyName": "testKey",
  "primaryKey": "##################################",
  "secondaryKey": "################################",
  "rights": "RegistrationStatusWrite"
}

Definities

Name Description
AccessRightsDescription

Rechten die deze sleutel heeft.

ErrorDetails

Foutdetails.

SharedAccessSignatureAuthorizationRule[AccessRightsDescription]

Beschrijving van de gedeelde toegangssleutel.

AccessRightsDescription

Rechten die deze sleutel heeft.

Name Type Description
DeviceConnect

string

EnrollmentRead

string

EnrollmentWrite

string

RegistrationStatusRead

string

RegistrationStatusWrite

string

ServiceConfig

string

ErrorDetails

Foutdetails.

Name Type Description
code

string

De foutcode.

details

string

De foutdetails.

httpStatusCode

string

De HTTP-statuscode.

message

string

Het foutbericht.

SharedAccessSignatureAuthorizationRule[AccessRightsDescription]

Beschrijving van de gedeelde toegangssleutel.

Name Type Description
keyName

string

Naam van de sleutel.

primaryKey

string

Waarde van primaire SAS-sleutel.

rights

AccessRightsDescription

Rechten die deze sleutel heeft.

secondaryKey

string

Waarde van secundaire SAS-sleutel.