云容器实例 CCI-查询指定namespace下的PersistentVolumeClaims:响应示例

时间:2024-11-06 15:35:46

响应示例

状态码: 200

OK

{
  "apiVersion" : "v1",
  "items" : [ {
    "metadata" : {
      "annotations" : {
        "pv.kubernetes.io/bind-completed" : "yes",
        "pv.kubernetes.io/bound-by-controller" : "yes",
        "volume.beta.kubernetes.io/storage-class" : "sata",
        "volume.beta.kubernetes.io/storage-provisioner" : "flexvolume-huawei.com/fuxivol"
      },
      "creationTimestamp" : "2018-09-07T07:17:38Z",
      "finalizers" : [ "kubernetes.io/pvc-protection" ],
      "name" : "pvc-test",
      "namespace" : "test-namespace",
      "resourceVersion" : "5915795",
      "selfLink" : "/api/v1/namespaces/namespace-test/persistentvolumeclaims/pvc-test",
      "uid" : "19a355cc-b26e-11e8-b205-c88d83be759f"
    },
    "spec" : {
      "accessModes" : [ "ReadWriteMany" ],
      "resources" : {
        "requests" : {
          "storage" : "10Gi"
        }
      },
      "volumeName" : "pvc-19a355cc-b26e-11e8-b205-c88d83be759f"
    },
    "status" : {
      "accessModes" : [ "ReadWriteMany" ],
      "capacity" : {
        "storage" : "10Gi"
      },
      "phase" : "Bound"
    }
  } ],
  "kind" : "PersistentVolumeClaimList",
  "metadata" : {
    "resourceVersion" : "6456754",
    "selfLink" : "/api/v1/namespaces/namespace-test/persistentvolumeclaims"
  }
}
support.huaweicloud.com/api-cci/listCoreV1NamespacedPersistentVolumeClaim.html