C# Class Elastacloud.AzureManagement.Fluent.Clients.StorageClient

Defines a class which can perform operations on blobs
Inheritance: IStorageClient
Afficher le fichier Open project: azurecoder/fluent-management Class Usage Examples

Méthodes publiques

Méthode Description
CreateNewStorageAccount ( string name, string location = LocationConstants.NorthEurope, StorageManagementOptions options = null ) : void

Creates a new storage account given a name and location

CreateStorageAccountIfNotExists ( string name, string location = LocationConstants.NorthEurope, StorageManagementOptions options = null ) : void

Create the storage account if an account by the same name doesn't exist

DeleteStorageAccount ( string name ) : void
GetSaSFromBlobUri ( string blobUri ) : string

Gets a shared access signature given a full blob uri

GetStorageAccountKeys ( string name ) : string[]
GetStorageAccountList ( ) : List
GetStorageAccountListWithKeys ( ) : List
GetStorageStatus ( string name ) : StorageStatus
StorageClient ( string subscriptionId, X509Certificate2 certificate ) : System

Used to construct a storage client with a subscription id and management certificate

StorageClient ( string accountName, string accountKey ) : System

Used to construct a client with an account name and account key

Method Details

CreateNewStorageAccount() public méthode

Creates a new storage account given a name and location
public CreateNewStorageAccount ( string name, string location = LocationConstants.NorthEurope, StorageManagementOptions options = null ) : void
name string
location string
options StorageManagementOptions
Résultat void

CreateStorageAccountIfNotExists() public méthode

Create the storage account if an account by the same name doesn't exist
public CreateStorageAccountIfNotExists ( string name, string location = LocationConstants.NorthEurope, StorageManagementOptions options = null ) : void
name string
location string
options StorageManagementOptions
Résultat void

DeleteStorageAccount() public méthode

public DeleteStorageAccount ( string name ) : void
name string
Résultat void

GetSaSFromBlobUri() public méthode

Gets a shared access signature given a full blob uri
public GetSaSFromBlobUri ( string blobUri ) : string
blobUri string
Résultat string

GetStorageAccountKeys() public méthode

public GetStorageAccountKeys ( string name ) : string[]
name string
Résultat string[]

GetStorageAccountList() public méthode

public GetStorageAccountList ( ) : List
Résultat List

GetStorageAccountListWithKeys() public méthode

public GetStorageAccountListWithKeys ( ) : List
Résultat List

GetStorageStatus() public méthode

public GetStorageStatus ( string name ) : StorageStatus
name string
Résultat StorageStatus

StorageClient() public méthode

Used to construct a storage client with a subscription id and management certificate
public StorageClient ( string subscriptionId, X509Certificate2 certificate ) : System
subscriptionId string
certificate System.Security.Cryptography.X509Certificates.X509Certificate2
Résultat System

StorageClient() public méthode

Used to construct a client with an account name and account key
public StorageClient ( string accountName, string accountKey ) : System
accountName string
accountKey string
Résultat System