Udostępnij za pośrednictwem


ReplicationProtectionIntentCollection.Get(String, CancellationToken) Method

Definition

Gets the details of an ASR replication protection intent.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationProtectionIntents/{intentObjectName}
  • Operation Id: ReplicationProtectionIntents_Get
  • Default Api Version: 2023-08-01
  • Resource: ReplicationProtectionIntentResource
public virtual Azure.Response<Azure.ResourceManager.RecoveryServicesSiteRecovery.ReplicationProtectionIntentResource> Get (string intentObjectName, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.RecoveryServicesSiteRecovery.ReplicationProtectionIntentResource>
override this.Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.RecoveryServicesSiteRecovery.ReplicationProtectionIntentResource>
Public Overridable Function Get (intentObjectName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ReplicationProtectionIntentResource)

Parameters

intentObjectName
String

Replication protection intent name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

intentObjectName is null.

Applies to