"description":"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. "
"description":"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. ",
"parameters":[
{
"$ref":"#/parameters/ResourceGroupName"
},
{
"name":"accountName",
"in":"path",
"required":true,
"type":"string",
"description":"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. "
"description":"The parameters to provide for the created account."
},
{
"$ref":"#/parameters/ApiVersionParameter"
},
{
"$ref":"#/parameters/SubscriptionIdParameter"
}
],
"responses":{
"200":{
"description":"",
"schema":{
"$ref":"#/definitions/StorageAccount"
}
},
"202":{
"description":""
}
},
"x-ms-long-running-operation":true
},
"delete":{
"tags":["StorageAccounts"],
"operationId":"StorageAccounts_Delete",
"description":"Deletes a storage account in Microsoft Azure.",
"parameters":[
{
"$ref":"#/parameters/ResourceGroupName"
},
{
"name":"accountName",
"in":"path",
"required":true,
"type":"string",
"description":"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. "
},
{
"$ref":"#/parameters/ApiVersionParameter"
},
{
"$ref":"#/parameters/SubscriptionIdParameter"
}
],
"responses":{
"200":{
"description":""
},
"204":{
"description":""
}
}
},
"get":{
"tags":["StorageAccounts"],
"operationId":"StorageAccounts_GetProperties",
"description":"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.",
"parameters":[
{
"$ref":"#/parameters/ResourceGroupName"
},
{
"name":"accountName",
"in":"path",
"required":true,
"type":"string",
"description":"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. "
},
{
"$ref":"#/parameters/ApiVersionParameter"
},
{
"$ref":"#/parameters/SubscriptionIdParameter"
}
],
"responses":{
"200":{
"description":"",
"schema":{
"$ref":"#/definitions/StorageAccount"
}
}
}
},
"patch":{
"tags":["StorageAccounts"],
"operationId":"StorageAccounts_Update",
"description":"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.",
"parameters":[
{
"$ref":"#/parameters/ResourceGroupName"
},
{
"name":"accountName",
"in":"path",
"required":true,
"type":"string",
"description":"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. "
"description":"Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this.",
"description":"Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this.",
"description":"Regenerates the access keys for the specified storage account.",
"parameters":[
{
"$ref":"#/parameters/ResourceGroupName"
},
{
"name":"accountName",
"in":"path",
"required":true,
"type":"string",
"description":"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. "
"description":"Gets the current usage count and the limit for the resources under the subscription.",
"parameters":[
{
"$ref":"#/parameters/ApiVersionParameter"
},
{
"$ref":"#/parameters/SubscriptionIdParameter"
}
],
"responses":{
"200":{
"description":"",
"schema":{
"$ref":"#/definitions/UsageListResult"
}
}
}
}
}
},
"definitions":{
"StorageAccountCheckNameAvailabilityParameters":{
"type":"object",
"properties":{
"name":{
"type":"string"
},
"type":{
"type":"string",
"default":"Microsoft.Storage/storageAccounts"
}
},
"required":["name"]
},
"CheckNameAvailabilityResult":{
"type":"object",
"properties":{
"nameAvailable":{
"type":"boolean",
"description":"Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or invalid and cannot be used."
},
"reason":{
"type":"string",
"description":"Gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false.",
"enum":["AccountNameInvalid","AlreadyExists"],
"x-ms-enum":{"name":"Reason"}
},
"message":{
"type":"string",
"description":"Gets an error message explaining the Reason value in more detail."
"description":"Gets the URLs that are used to perform a retrieval of a public blob, queue or table object.Note that StandardZRS and PremiumLRS accounts only return the blob endpoint."
},
"primaryLocation":{
"type":"string",
"description":"Gets the location of the primary for the storage account."
},
"statusOfPrimary":{
"type":"string",
"description":"Gets the status indicating whether the primary location of the storage account is available or unavailable.",
"enum":["Available","Unavailable"],
"x-ms-enum":{"name":"AccountStatus"}
},
"lastGeoFailoverTime":{
"type":"string",
"format":"date-time",
"description":"Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is StandardGRS or StandardRAGRS."
},
"secondaryLocation":{
"type":"string",
"description":"Gets the location of the geo replicated secondary for the storage account. Only available if the accountType is StandardGRS or StandardRAGRS."
},
"statusOfSecondary":{
"type":"string",
"description":"Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the accountType is StandardGRS or StandardRAGRS.",
"enum":["Available","Unavailable"],
"x-ms-enum":{"name":"AccountStatus"}
},
"creationTime":{
"type":"string",
"format":"date-time",
"description":"Gets the creation date and time of the storage account in UTC."
},
"customDomain":{
"$ref":"#/definitions/CustomDomain",
"description":"Gets the user assigned custom domain assigned to this storage account."
},
"secondaryEndpoints":{
"$ref":"#/definitions/Endpoints",
"description":"Gets the URLs that are used to perform a retrieval of a public blob, queue or table object from the secondary location of the storage account. Only available if the accountType is StandardRAGRS."
}
}
},
"StorageAccount":{
"type":"object",
"properties":{
"properties":{
"x-ms-client-flatten":true,
"$ref":"#/definitions/StorageAccountProperties"
}
},
"allOf":[
{
"$ref":"#/definitions/Resource"
}
],
"description":"The storage account."
},
"StorageAccountKeys":{
"type":"object",
"properties":{
"key1":{
"type":"string",
"description":"Gets the value of key 1."
},
"key2":{
"type":"string",
"description":"Gets the value of key 2."
}
},
"description":"The access keys for the storage account."
},
"StorageAccountListResult":{
"type":"object",
"properties":{
"value":{
"type":"array",
"items":{
"$ref":"#/definitions/StorageAccount"
},
"description":"Gets the list of storage accounts and their properties."
},
"nextLink":{
"type":"string",
"description":"Gets the link to the next set of results. Currently this will always be empty as the API does not support pagination."
}
},
"description":"The list storage accounts operation response."
},
"StorageAccountPropertiesUpdateParameters":{
"type":"object",
"properties":{
"accountType":{
"type":"string",
"description":"Gets or sets the account type. Note that StandardZRS and PremiumLRS accounts cannot be changed to other account types, and other account types cannot be changed to StandardZRS or PremiumLRS.",
"description":"User domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property."
"description":"Gets the current count of the allocated resources in the subscription."
},
"limit":{
"type":"integer",
"format":"int32",
"description":"Gets the maximum count of the resources that can be allocated in the subscription."
},
"name":{
"$ref":"#/definitions/UsageName",
"description":"Gets the name of the type of usage."
}
},
"description":"Describes Storage Resource Usage."
},
"UsageListResult":{
"type":"object",
"properties":{
"value":{
"type":"array",
"items":{
"$ref":"#/definitions/Usage"
},
"description":"Gets or sets the list Storage Resource Usages."
}
},
"description":"The List Usages operation response."
},
"Resource":{
"type":"object",
"properties":{
"id":{
"readOnly":true,
"type":"string",
"description":"Resource Id"
},
"name":{
"readOnly":true,
"type":"string",
"description":"Resource name"
},
"type":{
"readOnly":true,
"type":"string",
"description":"Resource type"
},
"location":{
"type":"string",
"description":"Resource location"
},
"tags":{
"type":"object",
"additionalProperties":{
"type":"string"
},
"description":"Resource tags"
}
},
"required":["location"],
"x-ms-azure-resource":true
},
"SubResource":{
"type":"object",
"properties":{
"id":{
"type":"string",
"description":"Resource Id"
}
},
"x-ms-azure-resource":true
}
},
"parameters":{
"SubscriptionIdParameter":{
"name":"subscriptionId",
"in":"path",
"required":true,
"type":"string",
"description":"Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call."
},
"ApiVersionParameter":{
"name":"api-version",
"in":"query",
"required":true,
"type":"string",
"description":"Client Api Version."
},
"ResourceGroupName":{
"description":"The name of the resource group within the user’s subscription.",