VirtualEnclaveCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}.
  • Operation Id. : VirtualEnclave_Get.
  • Default Api Version. : 2025-05-01-preview.
public virtual Azure.NullableResponse<Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveResource> GetIfExists(string virtualEnclaveName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveResource>
Public Overridable Function GetIfExists (virtualEnclaveName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of VirtualEnclaveResource)

Parameters

virtualEnclaveName
String

The name of the enclaveResource Resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

virtualEnclaveName is null.

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

Applies to