Get Storage Account Keys
Updated: February 24, 2016
The Get Storage Keys operation returns the primary and secondary access keys for the specified storage account.
The Get Storage Keys request may be specified as follows. Replace <subscription-id> with your subscription ID, and <service-name> with the name of the storage account.
The following table describes the request headers.
Required. Specifies the version of the operation to use for this request. This header should be set to 2009-10-01 or higher.
The response includes an HTTP status code, a set of response headers, and a response body.
A successful operation returns status code 200 (OK).
The response for this operation includes the following headers. The response may also include additional standard HTTP headers.
A value that uniquely identifies a request made against the management service.
<?xml version="1.0" encoding="utf-8"?> <StorageService xmlns="http://schemas.microsoft.com/windowsazure"> <Url>storage-service-url</Url> <StorageServiceKeys> <Primary>primary-key</Primary> <Secondary>secondary-key</Secondary> </StorageServiceKeys> </StorageService>
The following table describes the elements of the response body.
The Service Management API request URI used to perform Get Storage Account Properties requests against the storage account.
The primary access key for the storage account.
The secondary access key for the storage account.
Use the storage keys returned from the Get Storage Account Keys operation to access the blob, queue, and table service endpoints for the storage.