语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

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