Catalogi - Apparaten tellen
Verwijzing
Service: Documentatie preview
API-versie: 2022-09-01-preview
Telt apparaten in de catalogus.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/countDevices?api-version=2022-09-01-preview
URI-parameters
Naam | In | Vereist | Type | Description |
---|---|---|---|---|
subscriptionId | path | true | tekenreeks | De id van het doelabonnement. |
resourceGroupName | path | true | tekenreeks | De naam van de resourcegroep. De naam is niet hoofdlettergevoelig. |
catalogName | path | true | tekenreeks | Naam van catalogus |
api-versie | query | true | tekenreeks | De API-versie die voor deze bewerking moet worden gebruikt. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK | CountDeviceResponse | DE ARM-bewerking is voltooid. |
Overige statuscodes | ErrorResponse | Een onverwachte foutreactie. |
Beveiliging
azure_auth
OAuth2-stroom voor Azure Active Directory.
Type: oauth2
Stroom: impliciet
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Naam van bereik | Beschrijving van bereik |
---|---|
user_impersonation | Uw gebruikersaccount imiteren |
Voorbeelden
Catalogs_CountDevices
Voorbeeldaanvraag
POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup1/providers/Microsoft.AzureSphere/catalogs/MyCatalog1/countDevices?api-version=2022-09-01-preview
Voorbeeldantwoord
200
{
"value": 3
}
Definities
Name | Beschrijving |
---|---|
CountDeviceResponse | Antwoord op de actieoproep voor het tellen van apparaten in een catalogus. |
ErrorResponse | Foutrespons |
ErrorDetail | De foutdetails. |
ErrorAdditionalInfo | Aanvullende informatie over de resourcebeheerfout. |
CountDeviceResponse
Antwoord op de actieoproep voor het tellen van apparaten in een catalogus.
Name | Type | Description |
---|---|---|
waarde | geheel getal | Aantal onderliggende resources in de bovenliggende resource. |
ErrorResponse
Foutrespons
Name | Type | Description |
---|
ErrorDetail
De foutdetails.
Name | Type | Description |
---|---|---|
code | tekenreeks | De foutcode. |
bericht | tekenreeks | Het foutbericht. |
doel | tekenreeks | Het foutdoel. |
details | ErrorDetail[] | De foutgegevens. |
additionalInfo | ErrorAdditionalInfo[] | De fout bevat aanvullende informatie. |
ErrorAdditionalInfo
Aanvullende informatie over de resourcebeheerfout.
Name | Type | Description |
---|---|---|
type | tekenreeks | Het extra informatietype. |
Info | object | De aanvullende informatie. |