C# Class Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Services.AzureSqlServerDisasterRecoveryConfigurationAdapter

Adapter for Server Disaster Recovery Configuration operations
Afficher le fichier Open project: Azure/azure-powershell

Private Properties

Свойство Type Description
CreateServerDisasterRecoveryConfiguration Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationModel
FailoverServerDisasterRecoveryConfiguration void
GetServerDisasterRecoveryConfiguration Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationModel
ListServerDisasterRecoveryConfigurationActivity IEnumerable
ListServerDisasterRecoveryConfigurations ICollection

Méthodes publiques

Méthode Description
AzureSqlServerDisasterRecoveryConfigurationAdapter ( AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication.Models

Constructs a Server Disaster Recovery Configuration adapter

CreateServerDisasterRecoveryConfigurationModelFromResponse ( string resourceGroup, string serverName, Management serverDisasterRecoveryConfiguration ) : AzureSqlServerDisasterRecoveryConfigurationModel

Converts the response from the service to a powershell Server Disaster Recovery Configuration object

GetServerLocation ( string resourceGroupName, string serverName ) : string

Gets the Location of the server.

RemoveServerDisasterRecoveryConfiguration ( string resourceGroupName, string serverName, string serverDisasterRecoveryConfigurationName ) : void

Deletes a Server Disaster Recovery Configuration

Private Methods

Méthode Description
CreateServerDisasterRecoveryConfiguration ( string resourceGroup, string serverName, string partnerServerId, AzureSqlServerDisasterRecoveryConfigurationModel model ) : AzureSqlServerDisasterRecoveryConfigurationModel

Creates an Azure Sql Server Disaster Recovery Configuration.

FailoverServerDisasterRecoveryConfiguration ( string resourceGroup, string serverName, AzureSqlServerDisasterRecoveryConfigurationModel model, bool allowDataLoss ) : void

Starts failover for an Azure Sql Server Disaster Recovery Configuration.

GetServerDisasterRecoveryConfiguration ( string resourceGroupName, string serverName, string serverDisasterRecoveryConfigurationName ) : AzureSqlServerDisasterRecoveryConfigurationModel

Gets an Azure Sql Server Disaster Recovery Configuration by name.

ListServerDisasterRecoveryConfigurationActivity ( string resourceGroupName, string serverName, string serverDisasterRecoveryConfigurationName, System.Guid operationId ) : IEnumerable
ListServerDisasterRecoveryConfigurations ( string resourceGroupName, string serverName ) : ICollection

Gets a list of Azure Sql Server DisasterRecoveryConfigurations.

Method Details

AzureSqlServerDisasterRecoveryConfigurationAdapter() public méthode

Constructs a Server Disaster Recovery Configuration adapter
public AzureSqlServerDisasterRecoveryConfigurationAdapter ( AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication.Models
context Microsoft.Azure.Commands.Common.Authentication.Models.AzureContext
Résultat Microsoft.Azure.Commands.Common.Authentication.Models

CreateServerDisasterRecoveryConfigurationModelFromResponse() public static méthode

Converts the response from the service to a powershell Server Disaster Recovery Configuration object
public static CreateServerDisasterRecoveryConfigurationModelFromResponse ( string resourceGroup, string serverName, Management serverDisasterRecoveryConfiguration ) : AzureSqlServerDisasterRecoveryConfigurationModel
resourceGroup string The resource group the server is in
serverName string The name of the Azure Sql Server
serverDisasterRecoveryConfiguration Management The service response
Résultat Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationModel

GetServerLocation() public méthode

Gets the Location of the server.
public GetServerLocation ( string resourceGroupName, string serverName ) : string
resourceGroupName string The resource group the server is in
serverName string The name of the server
Résultat string

RemoveServerDisasterRecoveryConfiguration() public méthode

Deletes a Server Disaster Recovery Configuration
public RemoveServerDisasterRecoveryConfiguration ( string resourceGroupName, string serverName, string serverDisasterRecoveryConfigurationName ) : void
resourceGroupName string The resource group the server is in
serverName string The name of the Azure Sql Server
serverDisasterRecoveryConfigurationName string The name of the Azure Sql Server Disaster Recovery Configuration to delete
Résultat void