Share via


DataReplicationEmailConfigurationCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/alertSettings/{emailConfigurationName}
  • Operation Id: EmailConfiguration_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationEmailConfigurationResource> GetIfExists (string emailConfigurationName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationEmailConfigurationResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationEmailConfigurationResource>
Public Overridable Function GetIfExists (emailConfigurationName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of DataReplicationEmailConfigurationResource)

Parameters

emailConfigurationName
String

The email configuration name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

emailConfigurationName is null.

Applies to