Get cluster storage details
Was this helpful?
Was this helpful?
Get the storage details of the cluster.
/v1/clusters/{clusterId}/storages/{storageName}
curl -L \
--url '/v1/clusters/{clusterId}/storages/{storageName}'
{
"baseStorageYn": "Y",
"description": "",
"name": "nfs-csi",
"phase": "AVAILABLE",
"plugin": "NFS_CSI",
"provisionerName": "nfs.csi.k8s.io",
"readOnlyManyYn": "Y",
"readWriteManyYn": "Y",
"readWriteOnceYn": "Y",
"reclaimPolicy": "RETAIN",
"storageClass": {
"creationTimestamp": "2022-12-02 02:16:03",
"deployment": "{\"apiVersion\":\"storage.k8s.io/v1\",\"kind\":\"StorageClass\"...",
"deploymentYaml": "apiVersion: storage.k8s.io/v1\nkind: StorageClass\n...",
"name": "nfs-csi",
"provisioner": "nfs.csi.k8s.io",
"detail": {
"creationTime": "2022-12-02 02:16:03",
"name": "nfs-csi",
"provisioner": "nfs.csi.k8s.io",
"reclaimPolicy": "Retain",
"volumeBindingMode": "Immediate",
"mountOptions": [
"hard",
"nfsvers=4.1"
],
"annotations": {
"cocktail-user-description": "bmZzLWNzaQ==",
"meta.helm.sh/release-name": "default-storage",
"meta.helm.sh/release-namespace": "kube-system"
},
"labels": {
"acornsoft.io/provisioner-type": "NFS_CSI",
"acornsoft.io/total-capacity": "1024",
"acornsoft.io/type": "NETWORK"
},
"parameters": {
"server": "0.0.0.0",
"share": "/thingcluster"
}
},
"labes": {
"acornsoft.io/provisioner-type": "NFS_CSI",
"acornsoft.io/total-capacity": "1024",
"acornsoft.io/type": "NETWORK"
},
"parameters": [
{
"name": "server",
"value": "0.0.0.0"
}
]
},
"storageType": "NETWORK",
"totalCapacity": 1024,
"type": "PERSISTENT_VOLUME",
"volumeBindingMode": "IMMEDIATE",
"mountOptions": [
"hard",
"nfsvers=4.1"
],
"annotations": {
"cocktail-user-description": "bmZzLWNzaQ==",
"meta.helm.sh/release-name": "default-storage",
"meta.helm.sh/release-namespace": "kube-system"
},
"labes": {
"acornsoft.io/provisioner-type": "NFS_CSI",
"acornsoft.io/total-capacity": "1024",
"acornsoft.io/type": "NETWORK"
},
"parameters": [
{
"name": "server",
"value": "0.0.0.0"
}
]
}
OK