SiteRecoveryNetworkResource.GetSiteRecoveryNetworkMappingAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the details of an ASR network mapping.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationNetworks/{networkName}/replicationNetworkMappings/{networkMappingName}
- Operation Id: ReplicationNetworkMappings_Get
- Default Api Version: 2023-08-01
- Resource: SiteRecoveryNetworkMappingResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryNetworkMappingResource>> GetSiteRecoveryNetworkMappingAsync (string networkMappingName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSiteRecoveryNetworkMappingAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryNetworkMappingResource>>
override this.GetSiteRecoveryNetworkMappingAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryNetworkMappingResource>>
Public Overridable Function GetSiteRecoveryNetworkMappingAsync (networkMappingName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SiteRecoveryNetworkMappingResource))
Parameters
- networkMappingName
- String
Network mapping name.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
networkMappingName
is null.
networkMappingName
is an empty string, and was expected to be non-empty.