Share via


DeviceProvisioningServicesExtensions.GetDeviceProvisioningServices Method

Definition

Overloads

GetDeviceProvisioningServices(ResourceGroupResource)

Gets a collection of DeviceProvisioningServiceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDeviceProvisioningServices() instead.

GetDeviceProvisioningServices(SubscriptionResource, CancellationToken)

List all the provisioning services for a given subscription id.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Devices/provisioningServices
  • Operation Id: IotDpsResource_ListBySubscription

GetDeviceProvisioningServices(ResourceGroupResource)

Source:
DeviceProvisioningServicesExtensions.cs
Source:
DeviceProvisioningServicesExtensions.cs

Gets a collection of DeviceProvisioningServiceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDeviceProvisioningServices() instead.

public static Azure.ResourceManager.DeviceProvisioningServices.DeviceProvisioningServiceCollection GetDeviceProvisioningServices (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetDeviceProvisioningServices : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.DeviceProvisioningServices.DeviceProvisioningServiceCollection
<Extension()>
Public Function GetDeviceProvisioningServices (resourceGroupResource As ResourceGroupResource) As DeviceProvisioningServiceCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of DeviceProvisioningServiceResources and their operations over a DeviceProvisioningServiceResource.

Exceptions

resourceGroupResource is null.

Applies to

GetDeviceProvisioningServices(SubscriptionResource, CancellationToken)

Source:
DeviceProvisioningServicesExtensions.cs
Source:
DeviceProvisioningServicesExtensions.cs

List all the provisioning services for a given subscription id.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Devices/provisioningServices
  • Operation Id: IotDpsResource_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.DeviceProvisioningServices.DeviceProvisioningServiceResource> GetDeviceProvisioningServices (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetDeviceProvisioningServices : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DeviceProvisioningServices.DeviceProvisioningServiceResource>
<Extension()>
Public Function GetDeviceProvisioningServices (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DeviceProvisioningServiceResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to