Getting Storage Accounts
This section explains how to get a list of Azure storage accounts.
Request
GET https://<hostname>/api/v1/cloudInfrastructure/storageAccounts |
Request Headers
The request header must contain an authorization token of the current session.
Request Parameters
None.
Request Body
None.
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns a response code 200 (OK).
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTPS headers.
Header | Description |
Content-length | The length of the response body. |
Content-type | The media type and syntax of the response body message: application/json; charset=utf-8 |
Response Body
Property | Type | Description |
|---|---|---|
offset | integer | Shows the offset value. |
limit | integer | Shows the offset limit. |
totalCount | integer | Shows the number of records in the results array. |
results | Contains the result object. | |
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
Property | Type | Description |
|---|---|---|
id | string | Shows the identification number of the Azure storage account. |
resourceId | string | Shows the identification number of the resource. |
name | string | Shows the identification number of the storage account. |
skuName | string | Shows Azure SKU. |
performance | string | Shows the snapshot performance. For more information, see this Microsoft article. |
redundancy | string | Shows the snapshot redundancy. For more information, see this Microsoft article. |
accessTier | string | Shows the access tier type. |
regionId | string | Shows the identification number of the Azure region to which the snapshot belongs. |
regionName | string | Shows the identification number of the region. |
removedFromAzure | boolean | Shows if the snapshot was removed from Azure. |
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
Example
Request: GET https://abc.ukwest.cloudapp.azure.com/api/v1/cloudInfrastructure/storageAccounts
Request Header: Authorization: Bearer <Access-Token>
Response: 200 OK
Response Body: { "offset": 0, "limit": 30, "totalCount": 155, "results": [ { "id": "t4u7tnu5weqc5hujfaarrsbtteobj8gip15a1qudwz1amf9a84xo", "resourceId": "/subscriptions/3a9a8330-7bbc-4b03-9c68-15d674fbc809/resourcegroups/b5bd29cf-c341-478b-a816-4155a9093727/providers/microsoft.storage/storageaccounts/2hnfdt5ehba1uk050idkrttr", "name": "2hnfdt5ehba1uk050idkrttr", "skuName": "Standard_LRS", "performance": "Standard", "redundancy": "LRS", "accessTier": "Hot", "regionId": "ukwest", "regionName": "UK West", "removedFromAzure": false, "_links": { "self": {"href": "https://abc.ukwest.cloudapp.azure.com/api/v1/cloudInfrastructure/storageAccounts/t4u7tnu5weqc5hujfaarrsbtteobj8gip15a1qudwz1amf9a84xo"}, "subscription": {"href": "https://abc.ukwest.cloudapp.azure.com/api/v1/cloudInfrastructure/subscriptions/3a9a8330-7bbc-4b03-9c68-15d674fbc809"}, "resourcegroup": {"href": "https://abc.ukwest.cloudapp.azure.com/api/v1/cloudInfrastructure/resourceGroups/3p95oxotpzanioctyf7yom4p6rufhursexcpknuigob8pct99apy"}, "containers": {"href": "https://abc.ukwest.cloudapp.azure.com/api/v1/cloudInfrastructure/storageAccounts/t4u7tnu5weqc5hujfaarrsbtteobj8gip15a1qudwz1amf9a84xo/containers"} } ], "_links": { "self": {"href": "https://abc.ukwest.cloudapp.azure.com:443/api/v1/cloudInfrastructure/storageAccounts?offset=0&limit=30"}, "next": {"href": "https://abc.ukwest.cloudapp.azure.com:443/api/v1/cloudInfrastructure/storageAccounts?offset=30&limit=30"} } } |