语言

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

ComputeExtensions.GetInterconnectBlock Method

Definition

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

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