ArmRecoveryServicesSiteRecoveryModelFactory.MasterTargetServer 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.
Initializes a new instance of MasterTargetServer.
public static Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.MasterTargetServer MasterTargetServer (string id = default, System.Net.IPAddress ipAddress = default, string name = default, string osType = default, string agentVersion = default, DateTimeOffset? lastHeartbeatReceivedOn = default, string versionStatus = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryRetentionVolume> retentionVolumes = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryDataStore> dataStores = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryHealthError> validationErrors = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryHealthError> healthErrors = default, int? diskCount = default, string osVersion = default, DateTimeOffset? agentExpireOn = default, string marsAgentVersion = default, DateTimeOffset? marsAgentExpireOn = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryVersionDetails agentVersionDetails = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryVersionDetails marsAgentVersionDetails = default);
static member MasterTargetServer : string * System.Net.IPAddress * string * string * string * Nullable<DateTimeOffset> * string * seq<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryRetentionVolume> * seq<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryDataStore> * seq<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryHealthError> * seq<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryHealthError> * Nullable<int> * string * Nullable<DateTimeOffset> * string * Nullable<DateTimeOffset> * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryVersionDetails * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryVersionDetails -> Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.MasterTargetServer
Public Shared Function MasterTargetServer (Optional id As String = Nothing, Optional ipAddress As IPAddress = Nothing, Optional name As String = Nothing, Optional osType As String = Nothing, Optional agentVersion As String = Nothing, Optional lastHeartbeatReceivedOn As Nullable(Of DateTimeOffset) = Nothing, Optional versionStatus As String = Nothing, Optional retentionVolumes As IEnumerable(Of SiteRecoveryRetentionVolume) = Nothing, Optional dataStores As IEnumerable(Of SiteRecoveryDataStore) = Nothing, Optional validationErrors As IEnumerable(Of SiteRecoveryHealthError) = Nothing, Optional healthErrors As IEnumerable(Of SiteRecoveryHealthError) = Nothing, Optional diskCount As Nullable(Of Integer) = Nothing, Optional osVersion As String = Nothing, Optional agentExpireOn As Nullable(Of DateTimeOffset) = Nothing, Optional marsAgentVersion As String = Nothing, Optional marsAgentExpireOn As Nullable(Of DateTimeOffset) = Nothing, Optional agentVersionDetails As SiteRecoveryVersionDetails = Nothing, Optional marsAgentVersionDetails As SiteRecoveryVersionDetails = Nothing) As MasterTargetServer
Parameters
- id
- String
The server Id.
- ipAddress
- IPAddress
The IP address of the server.
- name
- String
The server name.
- osType
- String
The OS type of the server.
- agentVersion
- String
The version of the scout component on the server.
- lastHeartbeatReceivedOn
- Nullable<DateTimeOffset>
The last heartbeat received from the server.
- versionStatus
- String
Version status.
- retentionVolumes
- IEnumerable<SiteRecoveryRetentionVolume>
The retention volumes of Master target Server.
- dataStores
- IEnumerable<SiteRecoveryDataStore>
The list of data stores in the fabric.
- validationErrors
- IEnumerable<SiteRecoveryHealthError>
Validation errors.
- healthErrors
- IEnumerable<SiteRecoveryHealthError>
Health errors.
- osVersion
- String
OS Version of the master target.
- agentExpireOn
- Nullable<DateTimeOffset>
Agent expiry date.
- marsAgentVersion
- String
MARS agent version.
- marsAgentExpireOn
- Nullable<DateTimeOffset>
MARS agent expiry date.
- agentVersionDetails
- SiteRecoveryVersionDetails
Agent version details.
- marsAgentVersionDetails
- SiteRecoveryVersionDetails
Mars agent version details.
Returns
A new MasterTargetServer instance for mocking.