ComputeExtensions.GetInterconnectBlockAsync Method

Definition

Retrieves information about an Interconnect Block. <item> Mocking. To mock this method, please mock GetInterconnectBlockAsync(String, Nullable<InterconnectBlockExpandTypes>, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.InterconnectBlockResource>> GetInterconnectBlockAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string interconnectBlockName, Azure.ResourceManager.Compute.Models.InterconnectBlockExpandTypes? expand = default, System.Threading.CancellationToken cancellationToken = default);
static member GetInterconnectBlockAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * Nullable<Azure.ResourceManager.Compute.Models.InterconnectBlockExpandTypes> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.InterconnectBlockResource>>
<Extension()>
Public Function GetInterconnectBlockAsync (resourceGroupResource As ResourceGroupResource, interconnectBlockName As String, Optional expand As Nullable(Of InterconnectBlockExpandTypes) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of InterconnectBlockResource))

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

interconnectBlockName
String

The name of the Interconnect Block.

expand
Nullable<InterconnectBlockExpandTypes>

The expand expression to apply on the operation. 'instanceView' retrieves a snapshot of the runtime properties of the Interconnect Block that is managed by the platform and can change outside of control plane operations.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource is null.

Applies to