Language

VirtualEnclaveApprovalCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path. : /{resourceUri}/providers/Microsoft.Mission/approvals/{approvalName}.
  • Operation Id. : Approval_Get.
  • Default Api Version. : 2026-04-01.
public virtual Azure.NullableResponse<Azure.ResourceManager.Enclave.VirtualEnclaveApprovalResource> GetIfExists(string approvalName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Enclave.VirtualEnclaveApprovalResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Enclave.VirtualEnclaveApprovalResource>
Public Overridable Function GetIfExists (approvalName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of VirtualEnclaveApprovalResource)

Parameters

approvalName
String

The name of the approvals resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

approvalName is null.

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

Applies to