C# Класс Microsoft.Azure.Commands.AzureBackup.ClientAdapter.AzureBackupClientAdapter

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetCustomRequestHeaders Microsoft.Azure.Management.BackupServices.Models.CustomRequestHeaders

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

Метод Описание
AddProtectionPolicy ( string resourceGroupName, string resourceName, string policyName, Microsoft.Azure.Management.BackupServices.Models.CSMAddProtectionPolicyRequest request ) : void

Add protection policy

AzureBackupClientAdapter ( SubscriptionCloudCredentials creds, Uri baseUri ) : Microsoft.Azure.Commands.Common.Authentication
CheckProtectionPolicyNameAvailability ( string resourceGroupName, string resourceName, string name ) : void

Check protection policy name availability

CreateOrUpdateAzureBackupVault ( string resourceGroupName, string vaultName, string location ) : Microsoft.Azure.Management.BackupServices.Models.AzureBackupVault

Creates or updates the vault identified by client

DeleteProtectionPolicy ( string resourceGroupName, string resourceName, string policyName ) : void

Delete protection policy

DeleteVault ( string resourceGroupName, string vaultName ) : bool

Deletes the specified backup vault

DisableProtection ( string resourceGroupName, string resourceName, string containerName, string itemName ) : System.Guid

Dsiable protection

EnableMachineContainerReregistration ( string resourceGroupName, string resourceName, long containerId ) : void

Enable container reregistration

EnableProtection ( string resourceGroupName, string resourceName, string containerName, string itemName, Microsoft.Azure.Management.BackupServices.Models.CSMSetProtectionRequest request ) : System.Guid

Enable Protection

GetClientRequestId ( ) : string
GetJobDetails ( string resourceGroupName, string resourceName, string jobId ) : Microsoft.Azure.Management.BackupServices.Models.CSMJobDetailsResponse
GetOperationStatus ( string resourceGroupName, string resourceName, string operationId ) : CSMOperationResult
GetProtectionPolicyByName ( string resourceGroupName, string resourceName, string name ) : Microsoft.Azure.Management.BackupServices.Models.CSMProtectionPolicyResponse

Gets protection policies of matching name

GetRecoveryPoint ( string resourceGroupName, string resourceName, string containerName, string itemName, string recoveryPointName ) : Microsoft.Azure.Management.BackupServices.Models.CSMRecoveryPointResponse

Lists recovery points for specified item

GetStorageTypeDetails ( string resourceGroupName, string vaultName ) : string

Gets storage type details of the specified resource

GetVault ( string resourceGroupName, string vaultName ) : Microsoft.Azure.Management.BackupServices.Models.AzureBackupVault

Gets the vault identified by the client

GetVaults ( ) : IEnumerable

Gets backup vaults in current subscription

GetVaultsInResourceGroup ( string resourceGroupName ) : IEnumerable

Gets backup vaults in given resource group

ListContainers ( string resourceGroupName, string resourceName, Microsoft.Azure.Management.BackupServices.Models.ContainerQueryParameters parameters ) : IEnumerable

Gets all IaaSVM containers in the vault by friendly name

ListDataSources ( string resourceGroupName, string resourceName, Microsoft.Azure.Management.BackupServices.Models.CSMProtectedItemQueryObject query ) : IList

Lists datasources in the vault

ListJobs ( string resourceGroupName, string resourceName, Microsoft.Azure.Management.BackupServices.Models.CSMJobQueryObject queryParams ) : IEnumerable
ListMachineContainers ( string resourceGroupName, string resourceName ) : IEnumerable

Gets all MARS containers in the vault

ListMachineContainers ( string resourceGroupName, string resourceName, string friendlyName ) : IEnumerable

Gets all MARS containers in the vault which match the friendly name

ListProtectableObjects ( string resourceGroupName, string resourceName, Microsoft.Azure.Management.BackupServices.Models.CSMItemQueryObject query ) : IList

Lists protectable objects in the vault

ListProtectionPolicies ( string resourceGroupName, string resourceName ) : IList

Gets all policies in the vault

ListRecoveryPoints ( string resourceGroupName, string resourceName, string containerName, string itemName ) : IEnumerable

Lists recovery points for specified item

RefreshClientRequestId ( ) : void
RefreshContainers ( string resourceGroupName, string resourceName ) : System.Guid

Refresh container list in service

RegisterContainer ( string resourceGroupName, string resourceName, string containerName ) : System.Guid

Register container

TriggerBackup ( string resourceGroupName, string resourceName, string containerName, string itemName ) : System.Guid

Trigger backup on a DS

TriggerCancelJob ( string resourceGroupName, string resourceName, string jobId ) : System.Guid
TriggerRestore ( string resourceGroupName, string resourceName, string containerName, string itemName, string recoveryPointName, Microsoft.Azure.Management.BackupServices.Models.CSMRestoreRequest csmRestoreRequest ) : System.Guid

Lists recovery points for specified item

UnRegisterContainer ( string resourceGroupName, string resourceName, string containerName ) : System.Guid

UnRegister container

UnregisterMachineContainer ( string resourceGroupName, string resourceName, long containerId ) : void

UnRegister container

UpdateProtection ( string resourceGroupName, string resourceName, string containerName, string itemName, Microsoft.Azure.Management.BackupServices.Models.CSMUpdateProtectionRequest request ) : System.Guid

Update Protection

UpdateProtectionPolicy ( string resourceGroupName, string resourceName, string policyName, Microsoft.Azure.Management.BackupServices.Models.CSMUpdateProtectionPolicyRequest request ) : System.Guid

Update specified protection policy

UpdateStorageType ( string resourceGroupName, string resourceName, string storageType ) : void

Updates storage type of the vault identified by client

UploadCertificate ( string resourceGroupName, string resourceName, string certName, Microsoft.Azure.Management.BackupServices.Models.VaultCredUploadCertRequest request ) : Microsoft.Azure.Management.BackupServices.Models.VaultCredUploadCertResponse

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

Метод Описание
GetCustomRequestHeaders ( ) : Microsoft.Azure.Management.BackupServices.Models.CustomRequestHeaders

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

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

Add protection policy
public AddProtectionPolicy ( string resourceGroupName, string resourceName, string policyName, Microsoft.Azure.Management.BackupServices.Models.CSMAddProtectionPolicyRequest request ) : void
resourceGroupName string
resourceName string
policyName string
request Microsoft.Azure.Management.BackupServices.Models.CSMAddProtectionPolicyRequest
Результат void

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

public AzureBackupClientAdapter ( SubscriptionCloudCredentials creds, Uri baseUri ) : Microsoft.Azure.Commands.Common.Authentication
creds SubscriptionCloudCredentials
baseUri System.Uri
Результат Microsoft.Azure.Commands.Common.Authentication

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

Check protection policy name availability
public CheckProtectionPolicyNameAvailability ( string resourceGroupName, string resourceName, string name ) : void
resourceGroupName string
resourceName string
name string
Результат void

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

Creates or updates the vault identified by client
public CreateOrUpdateAzureBackupVault ( string resourceGroupName, string vaultName, string location ) : Microsoft.Azure.Management.BackupServices.Models.AzureBackupVault
resourceGroupName string
vaultName string
location string
Результат Microsoft.Azure.Management.BackupServices.Models.AzureBackupVault

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

Delete protection policy
public DeleteProtectionPolicy ( string resourceGroupName, string resourceName, string policyName ) : void
resourceGroupName string
resourceName string
policyName string
Результат void

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

Deletes the specified backup vault
public DeleteVault ( string resourceGroupName, string vaultName ) : bool
resourceGroupName string
vaultName string
Результат bool

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

Dsiable protection
public DisableProtection ( string resourceGroupName, string resourceName, string containerName, string itemName ) : System.Guid
resourceGroupName string
resourceName string
containerName string
itemName string
Результат System.Guid

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

Enable container reregistration
public EnableMachineContainerReregistration ( string resourceGroupName, string resourceName, long containerId ) : void
resourceGroupName string
resourceName string
containerId long
Результат void

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

Enable Protection
public EnableProtection ( string resourceGroupName, string resourceName, string containerName, string itemName, Microsoft.Azure.Management.BackupServices.Models.CSMSetProtectionRequest request ) : System.Guid
resourceGroupName string
resourceName string
containerName string
itemName string
request Microsoft.Azure.Management.BackupServices.Models.CSMSetProtectionRequest
Результат System.Guid

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

public GetClientRequestId ( ) : string
Результат string

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

public GetJobDetails ( string resourceGroupName, string resourceName, string jobId ) : Microsoft.Azure.Management.BackupServices.Models.CSMJobDetailsResponse
resourceGroupName string
resourceName string
jobId string
Результат Microsoft.Azure.Management.BackupServices.Models.CSMJobDetailsResponse

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

public GetOperationStatus ( string resourceGroupName, string resourceName, string operationId ) : CSMOperationResult
resourceGroupName string
resourceName string
operationId string
Результат CSMOperationResult

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

Gets protection policies of matching name
public GetProtectionPolicyByName ( string resourceGroupName, string resourceName, string name ) : Microsoft.Azure.Management.BackupServices.Models.CSMProtectionPolicyResponse
resourceGroupName string
resourceName string
name string
Результат Microsoft.Azure.Management.BackupServices.Models.CSMProtectionPolicyResponse

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

Lists recovery points for specified item
public GetRecoveryPoint ( string resourceGroupName, string resourceName, string containerName, string itemName, string recoveryPointName ) : Microsoft.Azure.Management.BackupServices.Models.CSMRecoveryPointResponse
resourceGroupName string
resourceName string
containerName string
itemName string
recoveryPointName string
Результат Microsoft.Azure.Management.BackupServices.Models.CSMRecoveryPointResponse

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

Gets storage type details of the specified resource
public GetStorageTypeDetails ( string resourceGroupName, string vaultName ) : string
resourceGroupName string
vaultName string
Результат string

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

Gets the vault identified by the client
public GetVault ( string resourceGroupName, string vaultName ) : Microsoft.Azure.Management.BackupServices.Models.AzureBackupVault
resourceGroupName string
vaultName string
Результат Microsoft.Azure.Management.BackupServices.Models.AzureBackupVault

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

Gets backup vaults in current subscription
public GetVaults ( ) : IEnumerable
Результат IEnumerable

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

Gets backup vaults in given resource group
public GetVaultsInResourceGroup ( string resourceGroupName ) : IEnumerable
resourceGroupName string
Результат IEnumerable

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

Gets all IaaSVM containers in the vault by friendly name
public ListContainers ( string resourceGroupName, string resourceName, Microsoft.Azure.Management.BackupServices.Models.ContainerQueryParameters parameters ) : IEnumerable
resourceGroupName string
resourceName string
parameters Microsoft.Azure.Management.BackupServices.Models.ContainerQueryParameters
Результат IEnumerable

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

Lists datasources in the vault
public ListDataSources ( string resourceGroupName, string resourceName, Microsoft.Azure.Management.BackupServices.Models.CSMProtectedItemQueryObject query ) : IList
resourceGroupName string
resourceName string
query Microsoft.Azure.Management.BackupServices.Models.CSMProtectedItemQueryObject
Результат IList

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

public ListJobs ( string resourceGroupName, string resourceName, Microsoft.Azure.Management.BackupServices.Models.CSMJobQueryObject queryParams ) : IEnumerable
resourceGroupName string
resourceName string
queryParams Microsoft.Azure.Management.BackupServices.Models.CSMJobQueryObject
Результат IEnumerable

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

Gets all MARS containers in the vault
public ListMachineContainers ( string resourceGroupName, string resourceName ) : IEnumerable
resourceGroupName string
resourceName string
Результат IEnumerable

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

Gets all MARS containers in the vault which match the friendly name
public ListMachineContainers ( string resourceGroupName, string resourceName, string friendlyName ) : IEnumerable
resourceGroupName string
resourceName string
friendlyName string The friendly name of the container
Результат IEnumerable

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

Lists protectable objects in the vault
public ListProtectableObjects ( string resourceGroupName, string resourceName, Microsoft.Azure.Management.BackupServices.Models.CSMItemQueryObject query ) : IList
resourceGroupName string
resourceName string
query Microsoft.Azure.Management.BackupServices.Models.CSMItemQueryObject
Результат IList

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

Gets all policies in the vault
public ListProtectionPolicies ( string resourceGroupName, string resourceName ) : IList
resourceGroupName string
resourceName string
Результат IList

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

Lists recovery points for specified item
public ListRecoveryPoints ( string resourceGroupName, string resourceName, string containerName, string itemName ) : IEnumerable
resourceGroupName string
resourceName string
containerName string
itemName string
Результат IEnumerable

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

public RefreshClientRequestId ( ) : void
Результат void

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

Refresh container list in service
public RefreshContainers ( string resourceGroupName, string resourceName ) : System.Guid
resourceGroupName string
resourceName string
Результат System.Guid

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

Register container
public RegisterContainer ( string resourceGroupName, string resourceName, string containerName ) : System.Guid
resourceGroupName string
resourceName string
containerName string
Результат System.Guid

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

Trigger backup on a DS
public TriggerBackup ( string resourceGroupName, string resourceName, string containerName, string itemName ) : System.Guid
resourceGroupName string
resourceName string
containerName string
itemName string
Результат System.Guid

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

public TriggerCancelJob ( string resourceGroupName, string resourceName, string jobId ) : System.Guid
resourceGroupName string
resourceName string
jobId string
Результат System.Guid

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

Lists recovery points for specified item
public TriggerRestore ( string resourceGroupName, string resourceName, string containerName, string itemName, string recoveryPointName, Microsoft.Azure.Management.BackupServices.Models.CSMRestoreRequest csmRestoreRequest ) : System.Guid
resourceGroupName string
resourceName string
containerName string
itemName string
recoveryPointName string
csmRestoreRequest Microsoft.Azure.Management.BackupServices.Models.CSMRestoreRequest
Результат System.Guid

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

UnRegister container
public UnRegisterContainer ( string resourceGroupName, string resourceName, string containerName ) : System.Guid
resourceGroupName string
resourceName string
containerName string
Результат System.Guid

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

UnRegister container
public UnregisterMachineContainer ( string resourceGroupName, string resourceName, long containerId ) : void
resourceGroupName string
resourceName string
containerId long
Результат void

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

Update Protection
public UpdateProtection ( string resourceGroupName, string resourceName, string containerName, string itemName, Microsoft.Azure.Management.BackupServices.Models.CSMUpdateProtectionRequest request ) : System.Guid
resourceGroupName string
resourceName string
containerName string
itemName string
request Microsoft.Azure.Management.BackupServices.Models.CSMUpdateProtectionRequest
Результат System.Guid

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

Update specified protection policy
public UpdateProtectionPolicy ( string resourceGroupName, string resourceName, string policyName, Microsoft.Azure.Management.BackupServices.Models.CSMUpdateProtectionPolicyRequest request ) : System.Guid
resourceGroupName string
resourceName string
policyName string
request Microsoft.Azure.Management.BackupServices.Models.CSMUpdateProtectionPolicyRequest
Результат System.Guid

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

Updates storage type of the vault identified by client
public UpdateStorageType ( string resourceGroupName, string resourceName, string storageType ) : void
resourceGroupName string
resourceName string
storageType string
Результат void

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

public UploadCertificate ( string resourceGroupName, string resourceName, string certName, Microsoft.Azure.Management.BackupServices.Models.VaultCredUploadCertRequest request ) : Microsoft.Azure.Management.BackupServices.Models.VaultCredUploadCertResponse
resourceGroupName string
resourceName string
certName string
request Microsoft.Azure.Management.BackupServices.Models.VaultCredUploadCertRequest
Результат Microsoft.Azure.Management.BackupServices.Models.VaultCredUploadCertResponse