本繁體中文版使用機器翻譯,譯文僅供參考,若與英文版本牴觸,應以英文版本為準。
列出儲存類別
貢獻者
建議變更
您可以列出可用的儲存類別。
步驟 1 :選擇雲端
執行工作流程 "列出雲端" 並選擇您要使用的雲端。
步驟 2 :選取叢集
執行工作流程 "列出叢集" 然後選取叢集。
步驟 3 :列出特定叢集的儲存類別
執行下列REST API呼叫、列出特定叢集和雲端的儲存類別。
HTTP 方法和端點
此 REST API 呼叫使用下列方法和端點。
HTTP方法 | 路徑 |
---|---|
取得 |
/accounts/{account_id}/topology / v1/ves/setf/setles/wes/sets/wese/storageClasses <CLUSTER_ID> <CLOUD_ID> |
Curl範例:傳回所有儲存類別的所有資料
curl --request GET \
--location "https://astra.netapp.io/accounts/$ACCOUNT_ID/topology/v1/clouds/<CLOUD_ID>/clusters/<CLUSTER_ID>/storageClasses" \
--include \
--header "Accept: */*" \
--header "Authorization: Bearer $API_TOKEN"
Json輸出範例
{ "items": [ { "type": "application/astra-storageClass", "version": "1.1", "id": "4bacbb3c-0727-4f58-b13c-3a2a069baf89", "name": "ontap-basic", "provisioner": "csi.trident.netapp.io", "available": "eligible", "allowVolumeExpansion": "true", "reclaimPolicy": "Delete", "volumeBindingMode": "Immediate", "isDefault": "true", "metadata": { "createdBy": "system", "creationTimestamp": "2022-10-26T05:16:19Z", "modificationTimestamp": "2022-10-26T05:16:19Z", "labels": [] } }, { "type": "application/astra-storageClass", "version": "1.1", "id": "150fe657-4a42-47a3-abc6-5dafba3de8bf", "name": "thin", "provisioner": "kubernetes.io/vsphere-volume", "available": "ineligible", "reclaimPolicy": "Delete", "volumeBindingMode": "Immediate", "metadata": { "createdBy": "system", "creationTimestamp": "2022-10-26T04:46:08Z", "modificationTimestamp": "2022-11-04T14:58:19Z", "labels": [] } }, { "type": "application/astra-storageClass", "version": "1.1", "id": "7c6a5c58-6a0d-4cb6-98a0-8202ad2de74a", "name": "thin-csi", "provisioner": "csi.vsphere.vmware.com", "available": "ineligible", "allowVolumeExpansion": "true", "reclaimPolicy": "Delete", "volumeBindingMode": "WaitForFirstConsumer", "metadata": { "createdBy": "system", "creationTimestamp": "2022-10-26T04:46:17Z", "modificationTimestamp": "2022-10-26T04:46:17Z", "labels": [] } }, { "type": "application/astra-storageClass", "version": "1.1", "id": "7010ef09-92a5-4c90-a5e5-3118e02dc9a7", "name": "vsim-san", "provisioner": "csi.trident.netapp.io", "available": "eligible", "allowVolumeExpansion": "true", "reclaimPolicy": "Delete", "volumeBindingMode": "Immediate", "metadata": { "createdBy": "system", "creationTimestamp": "2022-11-03T18:40:03Z", "modificationTimestamp": "2022-11-03T18:40:03Z", "labels": [] } } ] }