SphereDeviceCollection.GetAllAsync(CancellationToken) Method

Definition

List Device resources by DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}/products/{productName}/deviceGroups/{deviceGroupName}/devices.
  • Operation Id. : Devices_ListByDeviceGroup.
  • Default Api Version. : 2024-04-01.
public virtual Azure.AsyncPageable<Azure.ResourceManager.Sphere.SphereDeviceResource> GetAllAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Sphere.SphereDeviceResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Sphere.SphereDeviceResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SphereDeviceResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of SphereDeviceResource that may take multiple service requests to iterate over.

Applies to