Sdílet prostřednictvím


QuantumExtensions.GetQuantumWorkspaces Method

Definition

Overloads

GetQuantumWorkspaces(ResourceGroupResource)

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

GetQuantumWorkspaces(SubscriptionResource, CancellationToken)

Gets the list of Workspaces within a Subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Quantum/workspaces
  • Operation Id: Workspaces_ListBySubscription
  • Default Api Version: 2023-11-13-preview
  • Resource: QuantumWorkspaceResource

GetQuantumWorkspaces(ResourceGroupResource)

Source:
QuantumExtensions.cs

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

public static Azure.ResourceManager.Quantum.QuantumWorkspaceCollection GetQuantumWorkspaces (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetQuantumWorkspaces : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Quantum.QuantumWorkspaceCollection
<Extension()>
Public Function GetQuantumWorkspaces (resourceGroupResource As ResourceGroupResource) As QuantumWorkspaceCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of QuantumWorkspaceResources and their operations over a QuantumWorkspaceResource.

Exceptions

resourceGroupResource is null.

Applies to

GetQuantumWorkspaces(SubscriptionResource, CancellationToken)

Source:
QuantumExtensions.cs

Gets the list of Workspaces within a Subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Quantum/workspaces
  • Operation Id: Workspaces_ListBySubscription
  • Default Api Version: 2023-11-13-preview
  • Resource: QuantumWorkspaceResource
public static Azure.Pageable<Azure.ResourceManager.Quantum.QuantumWorkspaceResource> GetQuantumWorkspaces (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetQuantumWorkspaces : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Quantum.QuantumWorkspaceResource>
<Extension()>
Public Function GetQuantumWorkspaces (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of QuantumWorkspaceResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to