MockableRecoveryServicesSiteRecoveryResourceGroupResource.GetSiteRecoveryNetworks 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.
Lists the networks available in a vault.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationNetworks
- Operation Id: ReplicationNetworks_List
- Default Api Version: 2023-08-01
- Resource: SiteRecoveryNetworkResource
public virtual Azure.Pageable<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryNetworkResource> GetSiteRecoveryNetworks (string resourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSiteRecoveryNetworks : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryNetworkResource>
override this.GetSiteRecoveryNetworks : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryNetworkResource>
Public Overridable Function GetSiteRecoveryNetworks (resourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SiteRecoveryNetworkResource)
Parameters
- resourceName
- String
The name of the recovery services vault.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of SiteRecoveryNetworkResource that may take multiple service requests to iterate over.
Exceptions
resourceName
is an empty string, and was expected to be non-empty.
resourceName
is null.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET