C# Класс Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Services.AzureSqlServerDisasterRecoveryConfigurationAdapter

Adapter for Server Disaster Recovery Configuration operations
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
CreateServerDisasterRecoveryConfiguration Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationModel
FailoverServerDisasterRecoveryConfiguration void
GetServerDisasterRecoveryConfiguration Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationModel
ListServerDisasterRecoveryConfigurationActivity IEnumerable
ListServerDisasterRecoveryConfigurations ICollection

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

AzureSqlServerDisasterRecoveryConfigurationAdapter() публичный Метод

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
Результат Microsoft.Azure.Commands.Common.Authentication.Models

CreateServerDisasterRecoveryConfigurationModelFromResponse() публичный статический Метод

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
Результат Microsoft.Azure.Commands.Sql.ServerDisasterRecoveryConfiguration.Model.AzureSqlServerDisasterRecoveryConfigurationModel

GetServerLocation() публичный Метод

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
Результат string

RemoveServerDisasterRecoveryConfiguration() публичный Метод

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
Результат void