C# 클래스 Microsoft.Azure.Commands.RecoveryServices.PSRecoveryServicesClient

Recovery services convenience client.
파일 보기 프로젝트 열기: Azure/azure-powershell 1 사용 예제들

공개 메소드들

메소드 설명
ChangeVaultContext ( ARSVault vault ) : ASRVaultCreds

Changes the Vault context

ConvertReplicationFrequencyToUshort ( string replicationFrequencyString ) : ushort

Converts the Parameter set string of Replication Frequency in seconds to UShort.

CreateExtendedInfo ( Microsoft.Azure.Management.RecoveryServices.Models.ResourceExtendedInformationArgs extendedInfoArgs ) : AzureOperationResponse

Creates the extended information for the vault

CreateVault ( string resouceGroupName, string vaultName, Microsoft.Azure.Management.RecoveryServices.Models.VaultCreateArgs vaultCreateInput ) : Microsoft.Azure.Management.RecoveryServices.Models.VaultCreateResponse

Method to create Azure Recovery Services Vault

DeleteVault ( string resouceGroupName, string vaultName ) : Microsoft.Azure.Management.RecoveryServices.Models.RecoveryServicesOperationStatusResponse

Method to delete Azure Recovery Services Vault

GenerateVaultCredential ( X509Certificate2 managementCert, ARSVault vault, ASRSite site ) : ASRVaultCreds

Gets the vault credential object

GetExtendedInfo ( ) : Task

Gets Vault Extended Information

GetRequestHeaders ( ) : Microsoft.Azure.Management.RecoveryServices.Models.CustomRequestHeaders

Gets request headers.

GetResouceGroups ( ) : ResourceGroupListResponse

Method to list Azure resouce groups

GetResourceGroup ( string resourceId ) : string
GetSubscriptionId ( string resourceId ) : string
GetVault ( string resouceGroupName, string resourceName ) : Microsoft.Azure.Management.RecoveryServices.Models.VaultResponse

Method to get Azure Recovery Services Vault

GetVaultStorageType ( string resouceGroupName, string vaultName ) : Microsoft.Azure.Management.RecoveryServices.Models.GetResourceStorageConfigResponse

Method to Get Azure Recovery Services Vault Backup Properties

GetVaultsInResouceGroup ( string resouceGroupName ) : VaultListResponse

Method to list Azure Recovery Services Vaults

PSRecoveryServicesClient ( IAzureProfile azureProfile ) : System

Initializes a new instance of the PSRecoveryServicesClient class with required current subscription.

UpdateVaultCertificate ( Microsoft.Azure.Management.RecoveryServices.Models.CertificateArgs args, string certFriendlyName ) : Task

Updates the vault certificate

UpdateVaultStorageType ( string resouceGroupName, string vaultName, Microsoft.Azure.Management.RecoveryServices.Models.UpdateVaultStorageTypeRequest vaultStorageUpdateRequest ) : AzureOperationResponse

Method to Update Azure Recovery Services Vault Backup Properties

UploadCertificate ( X509Certificate2 managementCert, ARSVault vault ) : Microsoft.Azure.Management.RecoveryServices.Models.UploadCertificateResponse

Upload cert to idmgmt

ValidateReplicationStartTime ( System.TimeSpan timeSpan ) : void

Validates if the time span object has a valid value.

ValidateStorageAccountAssociation ( string azureSubscription, string azureStorageAccount, string vaultLocation, bool &validationSuccessful, bool &locationValid ) : void

Validates whether the storage belongs to the currently logged account or not.

ValidateSubscriptionAccountAssociation ( string azureSubscriptionId ) : void

Validates whether the subscription belongs to the currently logged account or not.

비공개 메소드들

메소드 설명
CreateVaultExtendedInformation ( ) : Microsoft.Azure.Management.RecoveryServices.Models.ResourceExtendedInformation

Method to create the extended info for the vault.

GenerateCredentialObject ( X509Certificate2 managementCert, Microsoft.Azure.Management.RecoveryServices.Models.UploadCertificateResponse acsDetails, string channelIntegrityKey, ARSVault vault, ASRSite site ) : ASRVaultCreds

Method to generate the credential file content

GetChannelIntegrityKey ( ) : Task

Get the Integrity key

IgnoreCertificateErrorHandler ( object sender, System certificate, System chain, SslPolicyErrors sslPolicyErrors ) : bool
UpdateVaultCertificate ( X509Certificate2 cert ) : Task

Method to update vault certificate

메소드 상세

ChangeVaultContext() 공개 메소드

Changes the Vault context
public ChangeVaultContext ( ARSVault vault ) : ASRVaultCreds
vault ARSVault vault object
리턴 Microsoft.Azure.Portal.RecoveryServices.Models.Common.ASRVaultCreds

ConvertReplicationFrequencyToUshort() 공개 정적인 메소드

Converts the Parameter set string of Replication Frequency in seconds to UShort.
public static ConvertReplicationFrequencyToUshort ( string replicationFrequencyString ) : ushort
replicationFrequencyString string Replication frequency in seconds.
리턴 ushort

CreateExtendedInfo() 공개 메소드

Creates the extended information for the vault
public CreateExtendedInfo ( Microsoft.Azure.Management.RecoveryServices.Models.ResourceExtendedInformationArgs extendedInfoArgs ) : AzureOperationResponse
extendedInfoArgs Microsoft.Azure.Management.RecoveryServices.Models.ResourceExtendedInformationArgs extended info to be created
리턴 AzureOperationResponse

CreateVault() 공개 메소드

Method to create Azure Recovery Services Vault
public CreateVault ( string resouceGroupName, string vaultName, Microsoft.Azure.Management.RecoveryServices.Models.VaultCreateArgs vaultCreateInput ) : Microsoft.Azure.Management.RecoveryServices.Models.VaultCreateResponse
resouceGroupName string Name of the resouce group
vaultName string Name of the vault
vaultCreateInput Microsoft.Azure.Management.RecoveryServices.Models.VaultCreateArgs Vault creation input object
리턴 Microsoft.Azure.Management.RecoveryServices.Models.VaultCreateResponse

DeleteVault() 공개 메소드

Method to delete Azure Recovery Services Vault
public DeleteVault ( string resouceGroupName, string vaultName ) : Microsoft.Azure.Management.RecoveryServices.Models.RecoveryServicesOperationStatusResponse
resouceGroupName string Name of the resouce group
vaultName string Name of the vault
리턴 Microsoft.Azure.Management.RecoveryServices.Models.RecoveryServicesOperationStatusResponse

GenerateVaultCredential() 공개 메소드

Gets the vault credential object
public GenerateVaultCredential ( X509Certificate2 managementCert, ARSVault vault, ASRSite site ) : ASRVaultCreds
managementCert System.Security.Cryptography.X509Certificates.X509Certificate2 certificate to be uploaded
vault ARSVault vault object
site ASRSite
리턴 Microsoft.Azure.Portal.RecoveryServices.Models.Common.ASRVaultCreds

GetExtendedInfo() 공개 메소드

Gets Vault Extended Information
public GetExtendedInfo ( ) : Task
리턴 Task

GetRequestHeaders() 공개 메소드

Gets request headers.
public GetRequestHeaders ( ) : Microsoft.Azure.Management.RecoveryServices.Models.CustomRequestHeaders
리턴 Microsoft.Azure.Management.RecoveryServices.Models.CustomRequestHeaders

GetResouceGroups() 공개 메소드

Method to list Azure resouce groups
public GetResouceGroups ( ) : ResourceGroupListResponse
리턴 ResourceGroupListResponse

GetResourceGroup() 공개 정적인 메소드

public static GetResourceGroup ( string resourceId ) : string
resourceId string
리턴 string

GetSubscriptionId() 공개 정적인 메소드

public static GetSubscriptionId ( string resourceId ) : string
resourceId string
리턴 string

GetVault() 공개 메소드

Method to get Azure Recovery Services Vault
public GetVault ( string resouceGroupName, string resourceName ) : Microsoft.Azure.Management.RecoveryServices.Models.VaultResponse
resouceGroupName string Name of the resouce group
resourceName string Name of the resource
리턴 Microsoft.Azure.Management.RecoveryServices.Models.VaultResponse

GetVaultStorageType() 공개 메소드

Method to Get Azure Recovery Services Vault Backup Properties
public GetVaultStorageType ( string resouceGroupName, string vaultName ) : Microsoft.Azure.Management.RecoveryServices.Models.GetResourceStorageConfigResponse
resouceGroupName string Name of the resouce group
vaultName string Name of the vault
리턴 Microsoft.Azure.Management.RecoveryServices.Models.GetResourceStorageConfigResponse

GetVaultsInResouceGroup() 공개 메소드

Method to list Azure Recovery Services Vaults
public GetVaultsInResouceGroup ( string resouceGroupName ) : VaultListResponse
resouceGroupName string Name of the resouce group
리턴 VaultListResponse

PSRecoveryServicesClient() 공개 메소드

Initializes a new instance of the PSRecoveryServicesClient class with required current subscription.
public PSRecoveryServicesClient ( IAzureProfile azureProfile ) : System
azureProfile IAzureProfile
리턴 System

UpdateVaultCertificate() 공개 메소드

Updates the vault certificate
public UpdateVaultCertificate ( Microsoft.Azure.Management.RecoveryServices.Models.CertificateArgs args, string certFriendlyName ) : Task
args Microsoft.Azure.Management.RecoveryServices.Models.CertificateArgs the certificate update arguments
certFriendlyName string
리턴 Task

UpdateVaultStorageType() 공개 메소드

Method to Update Azure Recovery Services Vault Backup Properties
public UpdateVaultStorageType ( string resouceGroupName, string vaultName, Microsoft.Azure.Management.RecoveryServices.Models.UpdateVaultStorageTypeRequest vaultStorageUpdateRequest ) : AzureOperationResponse
resouceGroupName string Name of the resouce group
vaultName string Name of the vault
vaultStorageUpdateRequest Microsoft.Azure.Management.RecoveryServices.Models.UpdateVaultStorageTypeRequest Backup Properties Update
리턴 AzureOperationResponse

UploadCertificate() 공개 메소드

Upload cert to idmgmt
public UploadCertificate ( X509Certificate2 managementCert, ARSVault vault ) : Microsoft.Azure.Management.RecoveryServices.Models.UploadCertificateResponse
managementCert System.Security.Cryptography.X509Certificates.X509Certificate2 certificate to be uploaded
vault ARSVault vault object
리턴 Microsoft.Azure.Management.RecoveryServices.Models.UploadCertificateResponse

ValidateReplicationStartTime() 공개 정적인 메소드

Validates if the time span object has a valid value.
public static ValidateReplicationStartTime ( System.TimeSpan timeSpan ) : void
timeSpan System.TimeSpan Time span object to be validated
리턴 void

ValidateStorageAccountAssociation() 공개 메소드

Validates whether the storage belongs to the currently logged account or not.
public ValidateStorageAccountAssociation ( string azureSubscription, string azureStorageAccount, string vaultLocation, bool &validationSuccessful, bool &locationValid ) : void
azureSubscription string Subscription ID
azureStorageAccount string Storage Account details
vaultLocation string Current Vault Location
validationSuccessful bool Out variable to indicate if validation was successful
locationValid bool Out variable to indicate if location of storage account is valid
리턴 void

ValidateSubscriptionAccountAssociation() 공개 메소드

Validates whether the subscription belongs to the currently logged account or not.
public ValidateSubscriptionAccountAssociation ( string azureSubscriptionId ) : void
azureSubscriptionId string Azure Subscription ID
리턴 void