ComputeExtensions.GetInterconnectBlock 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.
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.