Documentation
¶
Index ¶
- Constants
- type AccountStatus
- type AccountType
- type CheckNameAvailabilityResult
- type KeyName
- type ProvisioningState
- type Reason
- type StorageAccount
- type StorageAccountCheckNameAvailabilityParameters
- type StorageAccountCreateParameters
- type StorageAccountKeys
- type StorageAccountListResult
- type StorageAccountRegenerateKeyParameters
- type StorageAccountUpdateParameters
- type StorageAccountsClient
- func (client StorageAccountsClient) CheckNameAvailability(accountName StorageAccountCheckNameAvailabilityParameters) (result CheckNameAvailabilityResult, ae autorest.Error)
- func (client StorageAccountsClient) CheckNameAvailabilityRequestPreparer() autorest.Preparer
- func (client StorageAccountsClient) Create(resourceGroupName string, accountName string, ...) (result StorageAccount, ae autorest.Error)
- func (client StorageAccountsClient) CreateRequestPreparer() autorest.Preparer
- func (client StorageAccountsClient) Delete(resourceGroupName string, accountName string) (result autorest.Response, ae autorest.Error)
- func (client StorageAccountsClient) DeleteRequestPreparer() autorest.Preparer
- func (client StorageAccountsClient) GetProperties(resourceGroupName string, accountName string) (result StorageAccount, ae autorest.Error)
- func (client StorageAccountsClient) GetPropertiesRequestPreparer() autorest.Preparer
- func (client StorageAccountsClient) List() (result StorageAccountListResult, ae autorest.Error)
- func (client StorageAccountsClient) ListByResourceGroup(resourceGroupName string) (result StorageAccountListResult, ae autorest.Error)
- func (client StorageAccountsClient) ListByResourceGroupRequestPreparer() autorest.Preparer
- func (client StorageAccountsClient) ListKeys(resourceGroupName string, accountName string) (result StorageAccountKeys, ae autorest.Error)
- func (client StorageAccountsClient) ListKeysRequestPreparer() autorest.Preparer
- func (client StorageAccountsClient) ListRequestPreparer() autorest.Preparer
- func (client StorageAccountsClient) NewCheckNameAvailabilityRequest(accountName StorageAccountCheckNameAvailabilityParameters) (*http.Request, error)
- func (client StorageAccountsClient) NewCreateRequest(resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client StorageAccountsClient) NewDeleteRequest(resourceGroupName string, accountName string) (*http.Request, error)
- func (client StorageAccountsClient) NewGetPropertiesRequest(resourceGroupName string, accountName string) (*http.Request, error)
- func (client StorageAccountsClient) NewListByResourceGroupRequest(resourceGroupName string) (*http.Request, error)
- func (client StorageAccountsClient) NewListKeysRequest(resourceGroupName string, accountName string) (*http.Request, error)
- func (client StorageAccountsClient) NewListRequest() (*http.Request, error)
- func (client StorageAccountsClient) NewRegenerateKeyRequest(resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client StorageAccountsClient) NewUpdateRequest(resourceGroupName string, accountName string, ...) (*http.Request, error)
- func (client StorageAccountsClient) RegenerateKey(resourceGroupName string, accountName string, ...) (result StorageAccountKeys, ae autorest.Error)
- func (client StorageAccountsClient) RegenerateKeyRequestPreparer() autorest.Preparer
- func (client StorageAccountsClient) Update(resourceGroupName string, accountName string, ...) (result StorageAccount, ae autorest.Error)
- func (client StorageAccountsClient) UpdateRequestPreparer() autorest.Preparer
- type StorageManagementClient
- type Usage
- type UsageListResult
- type UsageOperationsClient
- type UsageUnit
Constants ¶
const ( ApiVersion = "2015-05-01-preview" DefaultBaseUri = "https://management.azure.com" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountType ¶
type AccountType string
const ( PremiumLRS AccountType = "Premium_LRS" StandardGRS AccountType = "Standard_GRS" StandardLRS AccountType = "Standard_LRS" StandardRAGRS AccountType = "Standard_RAGRS" StandardZRS AccountType = "Standard_ZRS" )
type CheckNameAvailabilityResult ¶
type CheckNameAvailabilityResult struct { autorest.Response `json:"-"` NameAvailable bool `json:"nameAvailable,omitempty"` Reason Reason `json:"reason,omitempty"` Message string `json:"message,omitempty"` }
The CheckNameAvailability operation response.
type ProvisioningState ¶
type ProvisioningState string
const ( Creating ProvisioningState = "Creating" ResolvingDNS ProvisioningState = "ResolvingDNS" Succeeded ProvisioningState = "Succeeded" )
type StorageAccount ¶
type StorageAccount struct { autorest.Response `json:"-"` Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Location string `json:"location,omitempty"` Tags map[string]string `json:"tags,omitempty"` Properties struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` AccountType AccountType `json:"accountType,omitempty"` PrimaryEndpoints struct { Blob string `json:"blob,omitempty"` Queue string `json:"queue,omitempty"` Table string `json:"table,omitempty"` } `json:"primaryEndpoints,omitempty"` PrimaryLocation string `json:"primaryLocation,omitempty"` StatusOfPrimary AccountStatus `json:"statusOfPrimary,omitempty"` LastGeoFailoverTime date.Time `json:"lastGeoFailoverTime,omitempty"` SecondaryLocation string `json:"secondaryLocation,omitempty"` StatusOfSecondary AccountStatus `json:"statusOfSecondary,omitempty"` CreationTime date.Time `json:"creationTime,omitempty"` CustomDomain struct { Name string `json:"name,omitempty"` UseSubDomain bool `json:"useSubDomain,omitempty"` } `json:"customDomain,omitempty"` SecondaryEndpoints struct { Blob string `json:"blob,omitempty"` Queue string `json:"queue,omitempty"` Table string `json:"table,omitempty"` } `json:"secondaryEndpoints,omitempty"` } `json:"properties,omitempty"` }
The storage account.
type StorageAccountCreateParameters ¶
type StorageAccountCreateParameters struct { Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Location string `json:"location,omitempty"` Tags map[string]string `json:"tags,omitempty"` Properties struct { AccountType AccountType `json:"accountType,omitempty"` } `json:"properties,omitempty"` }
The parameters to provide for the account.
type StorageAccountKeys ¶
type StorageAccountKeys struct { autorest.Response `json:"-"` Key1 string `json:"key1,omitempty"` Key2 string `json:"key2,omitempty"` }
The access keys for the storage account.
type StorageAccountListResult ¶
type StorageAccountListResult struct { autorest.Response `json:"-"` Value []StorageAccount `json:"value,omitempty"` }
The list storage accounts operation response.
type StorageAccountRegenerateKeyParameters ¶
type StorageAccountRegenerateKeyParameters struct {
KeyName KeyName `json:"keyName,omitempty"`
}
type StorageAccountUpdateParameters ¶
type StorageAccountUpdateParameters struct { Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Location string `json:"location,omitempty"` Tags map[string]string `json:"tags,omitempty"` Properties struct { AccountType AccountType `json:"accountType,omitempty"` CustomDomain struct { Name string `json:"name,omitempty"` UseSubDomain bool `json:"useSubDomain,omitempty"` } `json:"customDomain,omitempty"` } `json:"properties,omitempty"` }
The parameters to update on the account.
type StorageAccountsClient ¶
type StorageAccountsClient struct {
StorageManagementClient
}
StorageAccounts Client
func NewStorageAccountsClient ¶
func NewStorageAccountsClient(subscriptionId string) StorageAccountsClient
func NewStorageAccountsClientWithBaseUri ¶
func NewStorageAccountsClientWithBaseUri(baseUri string, subscriptionId string) StorageAccountsClient
func (StorageAccountsClient) CheckNameAvailability ¶
func (client StorageAccountsClient) CheckNameAvailability(accountName StorageAccountCheckNameAvailabilityParameters) (result CheckNameAvailabilityResult, ae autorest.Error)
CheckNameAvailability checks that account name is valid and is not in use.
accountName is the name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
func (StorageAccountsClient) CheckNameAvailabilityRequestPreparer ¶
func (client StorageAccountsClient) CheckNameAvailabilityRequestPreparer() autorest.Preparer
Create a Preparer by which to prepare the CheckNameAvailability request.
func (StorageAccountsClient) Create ¶
func (client StorageAccountsClient) Create(resourceGroupName string, accountName string, parameters StorageAccountCreateParameters) (result StorageAccount, ae autorest.Error)
Create asynchronously creates a new storage account with the specified parameters. Existing accounts cannot be updated with this API and should instead use the Update Storage Account API. If an account is already created and subsequent PUT request is issued with exact same set of properties, then HTTP 200 would be returned.
resourceGroupName is the name of the resource group within the user’s subscription. accountName is the name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. parameters is the parameters to provide for the created account.
func (StorageAccountsClient) CreateRequestPreparer ¶
func (client StorageAccountsClient) CreateRequestPreparer() autorest.Preparer
Create a Preparer by which to prepare the Create request.
func (StorageAccountsClient) Delete ¶
func (client StorageAccountsClient) Delete(resourceGroupName string, accountName string) (result autorest.Response, ae autorest.Error)
Delete deletes a storage account in Microsoft Azure.
resourceGroupName is the name of the resource group within the user’s subscription. accountName is the name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
func (StorageAccountsClient) DeleteRequestPreparer ¶
func (client StorageAccountsClient) DeleteRequestPreparer() autorest.Preparer
Create a Preparer by which to prepare the Delete request.
func (StorageAccountsClient) GetProperties ¶
func (client StorageAccountsClient) GetProperties(resourceGroupName string, accountName string) (result StorageAccount, ae autorest.Error)
GetProperties returns the properties for the specified storage account including but not limited to name, account type, location, and account status. The ListKeys operation should be used to retrieve storage keys.
resourceGroupName is the name of the resource group within the user’s subscription. accountName is the name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
func (StorageAccountsClient) GetPropertiesRequestPreparer ¶
func (client StorageAccountsClient) GetPropertiesRequestPreparer() autorest.Preparer
Create a Preparer by which to prepare the GetProperties request.
func (StorageAccountsClient) List ¶
func (client StorageAccountsClient) List() (result StorageAccountListResult, ae autorest.Error)
List lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this.
func (StorageAccountsClient) ListByResourceGroup ¶
func (client StorageAccountsClient) ListByResourceGroup(resourceGroupName string) (result StorageAccountListResult, ae autorest.Error)
ListByResourceGroup lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this.
resourceGroupName is the name of the resource group within the user’s subscription.
func (StorageAccountsClient) ListByResourceGroupRequestPreparer ¶
func (client StorageAccountsClient) ListByResourceGroupRequestPreparer() autorest.Preparer
Create a Preparer by which to prepare the ListByResourceGroup request.
func (StorageAccountsClient) ListKeys ¶
func (client StorageAccountsClient) ListKeys(resourceGroupName string, accountName string) (result StorageAccountKeys, ae autorest.Error)
ListKeys lists the access keys for the specified storage account.
resourceGroupName is the name of the resource group. accountName is the name of the storage account.
func (StorageAccountsClient) ListKeysRequestPreparer ¶
func (client StorageAccountsClient) ListKeysRequestPreparer() autorest.Preparer
Create a Preparer by which to prepare the ListKeys request.
func (StorageAccountsClient) ListRequestPreparer ¶
func (client StorageAccountsClient) ListRequestPreparer() autorest.Preparer
Create a Preparer by which to prepare the List request.
func (StorageAccountsClient) NewCheckNameAvailabilityRequest ¶
func (client StorageAccountsClient) NewCheckNameAvailabilityRequest(accountName StorageAccountCheckNameAvailabilityParameters) (*http.Request, error)
Create the CheckNameAvailability request.
func (StorageAccountsClient) NewCreateRequest ¶
func (client StorageAccountsClient) NewCreateRequest(resourceGroupName string, accountName string, parameters StorageAccountCreateParameters) (*http.Request, error)
Create the Create request.
func (StorageAccountsClient) NewDeleteRequest ¶
func (client StorageAccountsClient) NewDeleteRequest(resourceGroupName string, accountName string) (*http.Request, error)
Create the Delete request.
func (StorageAccountsClient) NewGetPropertiesRequest ¶
func (client StorageAccountsClient) NewGetPropertiesRequest(resourceGroupName string, accountName string) (*http.Request, error)
Create the GetProperties request.
func (StorageAccountsClient) NewListByResourceGroupRequest ¶
func (client StorageAccountsClient) NewListByResourceGroupRequest(resourceGroupName string) (*http.Request, error)
Create the ListByResourceGroup request.
func (StorageAccountsClient) NewListKeysRequest ¶
func (client StorageAccountsClient) NewListKeysRequest(resourceGroupName string, accountName string) (*http.Request, error)
Create the ListKeys request.
func (StorageAccountsClient) NewListRequest ¶
func (client StorageAccountsClient) NewListRequest() (*http.Request, error)
Create the List request.
func (StorageAccountsClient) NewRegenerateKeyRequest ¶
func (client StorageAccountsClient) NewRegenerateKeyRequest(resourceGroupName string, accountName string, regenerateKey StorageAccountRegenerateKeyParameters) (*http.Request, error)
Create the RegenerateKey request.
func (StorageAccountsClient) NewUpdateRequest ¶
func (client StorageAccountsClient) NewUpdateRequest(resourceGroupName string, accountName string, parameters StorageAccountUpdateParameters) (*http.Request, error)
Create the Update request.
func (StorageAccountsClient) RegenerateKey ¶
func (client StorageAccountsClient) RegenerateKey(resourceGroupName string, accountName string, regenerateKey StorageAccountRegenerateKeyParameters) (result StorageAccountKeys, ae autorest.Error)
RegenerateKey regenerates the access keys for the specified storage account.
resourceGroupName is the name of the resource group within the user’s subscription. accountName is the name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. regenerateKey is specifies name of the key which should be regenerated.
func (StorageAccountsClient) RegenerateKeyRequestPreparer ¶
func (client StorageAccountsClient) RegenerateKeyRequestPreparer() autorest.Preparer
Create a Preparer by which to prepare the RegenerateKey request.
func (StorageAccountsClient) Update ¶
func (client StorageAccountsClient) Update(resourceGroupName string, accountName string, parameters StorageAccountUpdateParameters) (result StorageAccount, ae autorest.Error)
Update updates the account type or tags for a storage account. It can also be used to add a custom domain (note that custom domains cannot be added via the Create operation). Only one custom domain is supported per storage account. This API can only be used to update one of tags, accountType, or customDomain per call. To update multiple of these properties, call the API multiple times with one change per call. This call does not change the storage keys for the account. If you want to change storage account keys, use the RegenerateKey operation. The location and name of the storage account cannot be changed after creation.
resourceGroupName is the name of the resource group within the user’s subscription. accountName is the name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. parameters is the parameters to update on the account. Note that only one property can be changed at a time using this API.
func (StorageAccountsClient) UpdateRequestPreparer ¶
func (client StorageAccountsClient) UpdateRequestPreparer() autorest.Preparer
Create a Preparer by which to prepare the Update request.
type StorageManagementClient ¶
func New ¶
func New(subscriptionId string) StorageManagementClient
func NewWithBaseUri ¶
func NewWithBaseUri(baseUri string, subscriptionId string) StorageManagementClient
type Usage ¶
type Usage struct { Unit UsageUnit `json:"unit,omitempty"` CurrentValue int `json:"currentValue,omitempty"` Limit int `json:"limit,omitempty"` Name struct { Value string `json:"value,omitempty"` LocalizedValue string `json:"localizedValue,omitempty"` } `json:"name,omitempty"` }
Describes Storage Resource Usage.
type UsageListResult ¶
The List Usages operation response.
type UsageOperationsClient ¶
type UsageOperationsClient struct {
StorageManagementClient
}
UsageOperations Client
func NewUsageOperationsClient ¶
func NewUsageOperationsClient(subscriptionId string) UsageOperationsClient
func NewUsageOperationsClientWithBaseUri ¶
func NewUsageOperationsClientWithBaseUri(baseUri string, subscriptionId string) UsageOperationsClient
func (UsageOperationsClient) List ¶
func (client UsageOperationsClient) List() (result UsageListResult, ae autorest.Error)
List gets the current usage count and the limit for the resources under the subscription.
func (UsageOperationsClient) ListRequestPreparer ¶
func (client UsageOperationsClient) ListRequestPreparer() autorest.Preparer
Create a Preparer by which to prepare the List request.
func (UsageOperationsClient) NewListRequest ¶
func (client UsageOperationsClient) NewListRequest() (*http.Request, error)
Create the List request.