共用方式為


BackupEngineCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEngines/{backupEngineName}
  • Operation Id: BackupEngines_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesBackup.BackupEngineResource>> GetIfExistsAsync (string backupEngineName, string filter = default, string skipToken = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesBackup.BackupEngineResource>>
override this.GetIfExistsAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesBackup.BackupEngineResource>>
Public Overridable Function GetIfExistsAsync (backupEngineName As String, Optional filter As String = Nothing, Optional skipToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of BackupEngineResource))

Parameters

backupEngineName
String

Name of the backup management server.

filter
String

OData filter options.

skipToken
String

skipToken Filter.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

backupEngineName is null.

Applies to