SynapseExtensions.GetSynapseWorkspaces Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetSynapseWorkspaces(ResourceGroupResource) |
Gets a collection of SynapseWorkspaceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetSynapseWorkspaces() instead. |
GetSynapseWorkspaces(SubscriptionResource, CancellationToken) |
Returns a list of workspaces in a subscription
|
GetSynapseWorkspaces(ResourceGroupResource)
- Source:
- SynapseExtensions.cs
- Source:
- SynapseExtensions.cs
Gets a collection of SynapseWorkspaceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetSynapseWorkspaces() instead.
public static Azure.ResourceManager.Synapse.SynapseWorkspaceCollection GetSynapseWorkspaces (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetSynapseWorkspaces : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Synapse.SynapseWorkspaceCollection
<Extension()>
Public Function GetSynapseWorkspaces (resourceGroupResource As ResourceGroupResource) As SynapseWorkspaceCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of SynapseWorkspaceResources and their operations over a SynapseWorkspaceResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetSynapseWorkspaces(SubscriptionResource, CancellationToken)
- Source:
- SynapseExtensions.cs
- Source:
- SynapseExtensions.cs
Returns a list of workspaces in a subscription
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Synapse/workspaces
- Operation Id: Workspaces_List
public static Azure.Pageable<Azure.ResourceManager.Synapse.SynapseWorkspaceResource> GetSynapseWorkspaces (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetSynapseWorkspaces : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Synapse.SynapseWorkspaceResource>
<Extension()>
Public Function GetSynapseWorkspaces (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SynapseWorkspaceResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of SynapseWorkspaceResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
Azure SDK for .NET