List the volumes for a managed cluster
GET /accounts/{account_id}/topology/v1/managedClusters/{managedCluster_id}/volumes
Returns a JSON array of all matching resources in the collection. If individual fields are specified in the request, the items JSON array will contain the fields requested for each matching resource in the order specified.
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
account_id |
string |
path |
True |
ID of the containing account resource
|
managedCluster_id |
string |
path |
True |
ID of the containing managedCluster resource |
include |
string |
query |
False |
Indicates which fields should be returned when listing a collection. URL examples: "include=id", "include=id,name" OpenAPI examples: "id"
|
limit |
string |
query |
False |
Indicates the maximum number of resources to return when listing a collection. URL examples: "limit=2" OpenAPI examples: "2" |
Response
Status: 200, Returns a JSON array of all matching resources in the collection. If individual fields are specified in the request, the items JSON array will contain the fields requested for each matching resource in the order specified.
Name | Type | Required | Description |
---|---|---|---|
items |
array[Any of: volume_1.2_get_response_body, array[]] |
True |
|
metadata |
True |
Example response
{
"type": "application/astra-volumes",
"version": "1.2",
"items": [
[
"24fe6e79-bf8d-45c9-96af-ef1d11fbd4a0",
"myVolume"
],
[
"20a370f4-957f-446a-9126-08853d01933a",
"secondVol"
],
[
"48e349a2-5bcd-4c59-896c-12b8240e634b",
"smallVol"
]
],
"metadata": {
"labels": [],
"creationTimestamp": "2022-10-06T20:58:16.305662Z",
"modificationTimestamp": "2022-10-06T20:58:16.305662Z",
"createdBy": "8f84cf09-8036-51e4-b579-bd30cb07b269"
}
}
Response
Status: 401, Unauthorized
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
|
title |
string |
True |
|
detail |
string |
False |
|
status |
string |
True |
|
correlationID |
string |
False |
Example response
{
"type": "https://astra.netapp.io/problems/3",
"title": "Missing bearer token",
"detail": "The request is missing the required bearer token.",
"status": "401"
}
Response
Status: 400, Bad request
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
|
title |
string |
True |
|
detail |
string |
False |
|
status |
string |
True |
|
correlationID |
string |
False |
|
invalidParams |
array[invalidParams] |
False |
List of invalid query parameters |
Example response
{
"type": "https://astra.netapp.io/problems/5",
"title": "Invalid query parameters",
"detail": "The supplied query parameters are invalid.",
"status": "400"
}
Response
Status: 403, Forbidden
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
|
title |
string |
True |
|
detail |
string |
False |
|
status |
string |
True |
|
correlationID |
string |
False |
Example response
{
"type": "https://astra.netapp.io/problems/11",
"title": "Operation not permitted",
"detail": "The requested operation isn't permitted.",
"status": "403"
}
Error
Status: 404, Not found
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
|
title |
string |
True |
|
detail |
string |
False |
|
status |
string |
True |
|
correlationID |
string |
False |
Example error response
{
"type": "https://astra.netapp.io/problems/2",
"title": "Collection not found",
"detail": "The collection specified in the request URI wasn't found.",
"status": "404"
}
Definitions
See Definitions
type_astra_stateDetails
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
|
title |
string |
True |
|
detail |
string |
True |
type_astra_label
Name | Type | Required | Description |
---|---|---|---|
name |
string |
True |
|
value |
string |
True |
type_astra_metadata
Client and service-specified metadata associated with the resource. Defined values are:
-
Conforms to the Astra Metadata Schema
Name | Type | Required | Description |
---|---|---|---|
labels |
array[type_astra_label] |
True |
|
creationTimestamp |
string |
True |
|
modificationTimestamp |
string |
True |
|
createdBy |
string |
True |
|
modifiedBy |
string |
False |
volume_1.2_get_response_body
Name | Type | Required | Description |
---|---|---|---|
type |
string |
True |
Media type of the resource. Defined values are:
|
version |
string |
True |
Version of the resource. Defined values are:
|
id |
string |
True |
Globally unique identifier of the resource. Defined values are:
|
name |
string |
True |
JSON string containing the name of the volume. Defined values are:
|
state |
string |
False |
JSON string containing a value indicating the operational state of the volume. |
size |
string |
False |
JSON string containing the size of the volume. |
used |
number |
False |
JSON number containing the number of bytes of quota used by the provisioned volume. |
usedPercentage |
number |
False |
JSON number containing the percentage of volume used. |
total |
number |
False |
JSON number containing the total bytes of volumes provisioned. |
creationToken |
string |
False |
JSON string containing the creation token of the volume. Defined values are:
|
snapshotPossible |
string |
False |
JSON string indicating whether the driver can perform a snapshot of the volume. Defined values are:
|
storageClass |
string |
False |
JSON string containing the storage class for the volume.
|
pvcName |
string |
False |
JSON string containing the PersistentVolumeClaim (PVC) name of the volume.
|
internalName |
string |
False |
JSON string containing the internal name of the volume on the target storage cluster, if available. This name is obtained from the Kubernetes CSI driver.
|
appsUsing |
array[string] |
True |
JSON array of JSON strings, each containing the ID of an application that is using the volume. Defined values are:
|
storageBackendID |
string |
False |
JSON string containing the ID of the storage backend that provides the volume. Defined values are:
|
orchestrator |
string |
False |
JSON string containing the orchestrator for this volume. This will be defined for Astra Data Store volumes. Defined values are:
|
serviceLevel |
string |
False |
JSON string containing the quality of service (QoS) policy defined for this volume at the storage backend level. This will be defined for Astra Data Store volumes. |
exportPolicy |
string |
False |
JSON string containing the export policy associated with this volume. This will be defined for Astra Data Store volumes. |
nodeId |
string |
False |
JSON string containing the node ID serving the volume. This will be defined for Astra Data Store volumes. Defined values are:
|
healthState |
string |
False |
JSON string containing a value indicating the health state of the volume. This will be defined for Astra Data Store volumes. Defined values are:
|
healthStateDetails |
array[type_astra_stateDetails] |
True |
JSON array of JSON objects that lists additional details about the current health. If no details are available, this array will be empty.
|
metadata |
True |
Client and service-specified metadata associated with the resource. Defined values are:
|
type_astra_metadata_list
Name | Type | Required | Description |
---|---|---|---|
continue |
string |
False |
|
count |
number |
False |
|
labels |
array[type_astra_label] |
False |
|
creationTimestamp |
string |
False |
|
modificationTimestamp |
string |
False |
|
createdBy |
string |
False |
|
modifiedBy |
string |
False |
invalidParams
Name | Type | Required | Description |
---|---|---|---|
name |
string |
True |
Name of the invalid query parameter |
reason |
string |
True |
Reason why the query parameter is invalid |