Share via


NetworkCloudVirtualMachineConsoleCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}
  • Operation Id: Consoles_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.NetworkCloud.NetworkCloudVirtualMachineConsoleResource> GetIfExists (string consoleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.NetworkCloud.NetworkCloudVirtualMachineConsoleResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.NetworkCloud.NetworkCloudVirtualMachineConsoleResource>
Public Overridable Function GetIfExists (consoleName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of NetworkCloudVirtualMachineConsoleResource)

Parameters

consoleName
String

The name of the virtual machine console.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

consoleName is an empty string, and was expected to be non-empty.

consoleName is null.

Applies to