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

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

响应示例

状态码: 200

OK

{
  "apiVersion" : "v1",
  "kind" : "ResourceQuota",
  "metadata" : {
    "creationTimestamp" : "2022-09-07T06:07:58Z",
    "name" : "compute-resources",
    "namespace" : "namespace-test",
    "resourceVersion" : "42717140",
    "selfLink" : "/api/v1/namespaces/namespace-test/resourcequotas/compute-resources",
    "uid" : "df6e7f78-717d-48e2-bf41-afab0ba0a3de"
  },
  "spec" : {
    "hard" : {
      "configmaps" : "480k",
      "count/cronjobs.batch" : "960",
      "count/deployments.apps" : "480",
      "count/ingresses.extensions" : "480",
      "count/jobs.batch" : "960",
      "count/networks.networking.cci.io" : "72",
      "count/statefulsets.apps" : "480",
      "limits.cpu" : "100k",
      "limits.memory" : "800000Gi",
      "persistentvolumeclaims" : "960",
      "pods" : "480k",
      "requests.nvidia.com/gpu-tesla-p4" : "256",
      "requests.nvidia.com/gpu-tesla-p100-16GB" : "256",
      "requests.nvidia.com/gpu-tesla-v100-16GB" : "256",
      "requests.nvidia.com/gpu-tesla-v100-32GB" : "256",
      "secrets" : "480k",
      "services" : "9600"
    }
  },
  "status" : {
    "hard" : {
      "configmaps" : "480k",
      "count/cronjobs.batch" : "960",
      "count/deployments.apps" : "480",
      "count/ingresses.extensions" : "480",
      "count/jobs.batch" : "960",
      "count/networks.networking.cci.io" : "72",
      "count/statefulsets.apps" : "480",
      "limits.cpu" : "100k",
      "limits.memory" : "800000Gi",
      "persistentvolumeclaims" : "960",
      "pods" : "480k",
      "requests.nvidia.com/gpu-tesla-p4" : "256",
      "requests.nvidia.com/gpu-tesla-p100-16GB" : "256",
      "requests.nvidia.com/gpu-tesla-v100-16GB" : "256",
      "requests.nvidia.com/gpu-tesla-v100-32GB" : "256",
      "secrets" : "480k",
      "services" : "9600"
    },
    "used" : {
      "configmaps" : "0",
      "count/cronjobs.batch" : "0",
      "count/deployments.apps" : "0",
      "count/ingresses.extensions" : "0",
      "count/jobs.batch" : "0",
      "count/networks.networking.cci.io" : "1",
      "count/statefulsets.apps" : "0",
      "limits.cpu" : "0",
      "limits.memory" : "0",
      "persistentvolumeclaims" : "0",
      "pods" : "0",
      "requests.nvidia.com/gpu-tesla-p4" : "0",
      "requests.nvidia.com/gpu-tesla-p100-16GB" : "0",
      "requests.nvidia.com/gpu-tesla-v100-16GB" : "0",
      "requests.nvidia.com/gpu-tesla-v100-32GB" : "0",
      "secrets" : "2",
      "services" : "1"
    }
  }
}
support.huaweicloud.com/api-cci/readCoreV1NamespacedResourceQuota.html