Iot Dps Resource - List Keys
Maak een lijst van de primaire en secundaire sleutels voor een inrichtingsservice.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/listkeys?api-version=2026-08-31
URI-parameters
| Name | In | Vereist | Type | Description |
|---|---|---|---|---|
|
provisioning
|
path | True |
string |
Naam van de provisioning-dienst die opgehaald moet worden. |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
De naam van de resource group. De naam is hoofdletterongevoelig. |
|
subscription
|
path | True |
string minLength: 1 |
De ID van het doelabonnement. |
|
api-version
|
query | True |
string minLength: 1 |
De API-versie die voor deze bewerking moet worden gebruikt. |
Antwoorden
| Name | Type | Description |
|---|---|---|
| 200 OK |
Azure-operatie succesvol voltooid. |
|
| Other Status Codes |
Een onverwachte foutreactie. |
Beveiliging
azure_auth
OAuth2-stroom voor Azure Active Directory.
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
| Name | Description |
|---|---|
| user_impersonation | Uw gebruikersaccount imiteren |
Voorbeelden
DPSListKeys
Voorbeeldaanvraag
POST https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/provisioningServices/myFirstProvisioningService/listkeys?api-version=2026-08-31
Voorbeeldrespons
{
"value": [
{
"keyName": "key1",
"primaryKey": "#####################################",
"rights": "ServiceConfig",
"secondaryKey": "###################################"
},
{
"keyName": "key2",
"primaryKey": "#######################################",
"rights": "ServiceConfig",
"secondaryKey": "####################################="
}
]
}
Definities
| Name | Description |
|---|---|
|
Access |
Rechten die deze sleutel heeft. |
|
Error |
Foutdetails. |
|
Shared |
Beschrijving van de gedeelde toegangssleutel. |
|
Shared |
Lijst van gedeelde toegangssleutels. |
AccessRightsDescription
Rechten die deze sleutel heeft.
| Waarde | Description |
|---|---|
| ServiceConfig | |
| EnrollmentRead | |
| EnrollmentWrite | |
| DeviceConnect | |
| RegistrationStatusRead | |
| RegistrationStatusWrite |
ErrorDetails
Foutdetails.
| Name | Type | Description |
|---|---|---|
| code |
integer (int32) |
De foutcode. |
| details |
string |
De foutgegevens. |
| httpStatusCode |
string |
De HTTP-statuscode. |
| message |
string |
Het foutbericht. |
SharedAccessSignatureAuthorizationRuleAccessRightsDescription
Beschrijving van de gedeelde toegangssleutel.
| Name | Type | Description |
|---|---|---|
| keyName |
string |
Naam van de sleutel. |
| primaryKey |
string |
Primaire SAS-sleutelwaarde. |
| rights |
Rechten die deze sleutel heeft. |
|
| secondaryKey |
string |
Secundaire SAS-sleutelwaarde. |
SharedAccessSignatureAuthorizationRuleListResult
Lijst van gedeelde toegangssleutels.
| Name | Type | Description |
|---|---|---|
| nextLink |
string (uri) |
De koppeling naar de volgende pagina met items |
| value |
Shared |
De SharedAccessSignatureAuthorizationRuleAccessRightsDescription-items op deze pagina |