C# Class Microsoft.Azure.Commands.AzureBackup.ClientAdapter.AzureBackupClientAdapter

Afficher le fichier Open project: Azure/azure-powershell Class Usage Examples

Private Properties

Свойство Type Description
GetCustomRequestHeaders Microsoft.Azure.Management.BackupServices.Models.CustomRequestHeaders

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
GetCustomRequestHeaders ( ) : Microsoft.Azure.Management.BackupServices.Models.CustomRequestHeaders

Method Details

AddProtectionPolicy() public méthode

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
Résultat void

AzureBackupClientAdapter() public méthode

public AzureBackupClientAdapter ( SubscriptionCloudCredentials creds, Uri baseUri ) : Microsoft.Azure.Commands.Common.Authentication
creds SubscriptionCloudCredentials
baseUri System.Uri
Résultat Microsoft.Azure.Commands.Common.Authentication

CheckProtectionPolicyNameAvailability() public méthode

Check protection policy name availability
public CheckProtectionPolicyNameAvailability ( string resourceGroupName, string resourceName, string name ) : void
resourceGroupName string
resourceName string
name string
Résultat void

CreateOrUpdateAzureBackupVault() public méthode

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
Résultat Microsoft.Azure.Management.BackupServices.Models.AzureBackupVault

DeleteProtectionPolicy() public méthode

Delete protection policy
public DeleteProtectionPolicy ( string resourceGroupName, string resourceName, string policyName ) : void
resourceGroupName string
resourceName string
policyName string
Résultat void

DeleteVault() public méthode

Deletes the specified backup vault
public DeleteVault ( string resourceGroupName, string vaultName ) : bool
resourceGroupName string
vaultName string
Résultat bool

DisableProtection() public méthode

Dsiable protection
public DisableProtection ( string resourceGroupName, string resourceName, string containerName, string itemName ) : System.Guid
resourceGroupName string
resourceName string
containerName string
itemName string
Résultat System.Guid

EnableMachineContainerReregistration() public méthode

Enable container reregistration
public EnableMachineContainerReregistration ( string resourceGroupName, string resourceName, long containerId ) : void
resourceGroupName string
resourceName string
containerId long
Résultat void

EnableProtection() public méthode

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
Résultat System.Guid

GetClientRequestId() public méthode

public GetClientRequestId ( ) : string
Résultat string

GetJobDetails() public méthode

public GetJobDetails ( string resourceGroupName, string resourceName, string jobId ) : Microsoft.Azure.Management.BackupServices.Models.CSMJobDetailsResponse
resourceGroupName string
resourceName string
jobId string
Résultat Microsoft.Azure.Management.BackupServices.Models.CSMJobDetailsResponse

GetOperationStatus() public méthode

public GetOperationStatus ( string resourceGroupName, string resourceName, string operationId ) : CSMOperationResult
resourceGroupName string
resourceName string
operationId string
Résultat CSMOperationResult

GetProtectionPolicyByName() public méthode

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
Résultat Microsoft.Azure.Management.BackupServices.Models.CSMProtectionPolicyResponse

GetRecoveryPoint() public méthode

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
Résultat Microsoft.Azure.Management.BackupServices.Models.CSMRecoveryPointResponse

GetStorageTypeDetails() public méthode

Gets storage type details of the specified resource
public GetStorageTypeDetails ( string resourceGroupName, string vaultName ) : string
resourceGroupName string
vaultName string
Résultat string

GetVault() public méthode

Gets the vault identified by the client
public GetVault ( string resourceGroupName, string vaultName ) : Microsoft.Azure.Management.BackupServices.Models.AzureBackupVault
resourceGroupName string
vaultName string
Résultat Microsoft.Azure.Management.BackupServices.Models.AzureBackupVault

GetVaults() public méthode

Gets backup vaults in current subscription
public GetVaults ( ) : IEnumerable
Résultat IEnumerable

GetVaultsInResourceGroup() public méthode

Gets backup vaults in given resource group
public GetVaultsInResourceGroup ( string resourceGroupName ) : IEnumerable
resourceGroupName string
Résultat IEnumerable

ListContainers() public méthode

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
Résultat IEnumerable

ListDataSources() public méthode

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
Résultat IList

ListJobs() public méthode

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
Résultat IEnumerable

ListMachineContainers() public méthode

Gets all MARS containers in the vault
public ListMachineContainers ( string resourceGroupName, string resourceName ) : IEnumerable
resourceGroupName string
resourceName string
Résultat IEnumerable

ListMachineContainers() public méthode

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
Résultat IEnumerable

ListProtectableObjects() public méthode

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
Résultat IList

ListProtectionPolicies() public méthode

Gets all policies in the vault
public ListProtectionPolicies ( string resourceGroupName, string resourceName ) : IList
resourceGroupName string
resourceName string
Résultat IList

ListRecoveryPoints() public méthode

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
Résultat IEnumerable

RefreshClientRequestId() public méthode

public RefreshClientRequestId ( ) : void
Résultat void

RefreshContainers() public méthode

Refresh container list in service
public RefreshContainers ( string resourceGroupName, string resourceName ) : System.Guid
resourceGroupName string
resourceName string
Résultat System.Guid

RegisterContainer() public méthode

Register container
public RegisterContainer ( string resourceGroupName, string resourceName, string containerName ) : System.Guid
resourceGroupName string
resourceName string
containerName string
Résultat System.Guid

TriggerBackup() public méthode

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
Résultat System.Guid

TriggerCancelJob() public méthode

public TriggerCancelJob ( string resourceGroupName, string resourceName, string jobId ) : System.Guid
resourceGroupName string
resourceName string
jobId string
Résultat System.Guid

TriggerRestore() public méthode

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
Résultat System.Guid

UnRegisterContainer() public méthode

UnRegister container
public UnRegisterContainer ( string resourceGroupName, string resourceName, string containerName ) : System.Guid
resourceGroupName string
resourceName string
containerName string
Résultat System.Guid

UnregisterMachineContainer() public méthode

UnRegister container
public UnregisterMachineContainer ( string resourceGroupName, string resourceName, long containerId ) : void
resourceGroupName string
resourceName string
containerId long
Résultat void

UpdateProtection() public méthode

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
Résultat System.Guid

UpdateProtectionPolicy() public méthode

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
Résultat System.Guid

UpdateStorageType() public méthode

Updates storage type of the vault identified by client
public UpdateStorageType ( string resourceGroupName, string resourceName, string storageType ) : void
resourceGroupName string
resourceName string
storageType string
Résultat void

UploadCertificate() public méthode

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
Résultat Microsoft.Azure.Management.BackupServices.Models.VaultCredUploadCertResponse