Catalogs - Count Devices

Reference

Service: Documentation Preview

API Version: 2022-09-01-preview

Counts devices in catalog.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/countDevices?api-version=2022-09-01-preview

URI Parameters

Name In Required Type Description
subscriptionId path true string The ID of the target subscription.
resourceGroupName path true string The name of the resource group. The name is case insensitive.
catalogName path true string Name of catalog
api-version query true string The API version to use for this operation.

Responses

Name Type Description
200 OK CountDeviceResponse ARM operation completed successfully.
Other Status Codes ErrorResponse An unexpected error response.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2

Flow: implicit

Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Scope Name Scope Description
user_impersonation impersonate your user account

Examples

Catalogs_CountDevices

Sample Request

      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

Sample Response

200

      {
        "value": 3
      }

Definitions

Name Description
CountDeviceResponse Response to the action call for count devices in a catalog.
ErrorResponse Error response
ErrorDetail The error detail.
ErrorAdditionalInfo The resource management error additional info.

CountDeviceResponse

Response to the action call for count devices in a catalog.

Name Type Description
value integer Number of children resources in parent resource.

ErrorResponse

Error response

Name Type Description

ErrorDetail

The error detail.

Name Type Description
code string The error code.
message string The error message.
target string The error target.
details ErrorDetail[] The error details.
additionalInfo ErrorAdditionalInfo[] The error additional info.

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
type string The additional info type.
info object The additional info.