- 最新动态
- 功能总览
- 产品介绍
- 计费说明
- 快速入门
- 用户指南
- 最佳实践
- 开发指南
-
API参考
- 使用前必读
- 如何调用API
- 快速入门
- API
-
Kubernetes API
- ConfigMap
- Pod
- StorageClass
- Service
- Deployment
- Ingress
- OpenAPIv2
- VolcanoJob
- Namespace
- ClusterRole
- Secret
- Endpoint
- ResourceQuota
- CronJob
-
API groups
- 查询APIVersions
- 查询所有v1版本的API
- 查询APIGroupList
- 查询APIGroup /apis/apps
- 查询所有apps/v1的API
- 查询APIGroup /apis/batch
- 查询APIGroup /apis/batch.volcano.sh
- 查询所有batch.volcano.sh/v1alpha1的API
- 查询所有batch/v1的API
- 查询所有batch/v1beta1的API
- 查询APIGroup /apis/crd.yangtse.cni
- 查询所有crd.yangtse.cni/v1的API
- 查询APIGroup /apis/extensions
- 查询所有extensions/v1beta1的API
- 查询APIGroup /apis/metrics.k8s.io
- 查询所有metrics.k8s.io/v1beta1的API
- 查询APIGroup /apis/networking.cci.io
- 查询所有networking.cci.io/v1beta1的API
- 查询APIGroup /apis/rbac.authorization.k8s.io
- 查询所有rbac.authorization.k8s.io/v1的API
- Event
- PersistentVolumeClaim
- RoleBinding
- StatefulSet
- Job
- ReplicaSet
- 数据结构
- 权限和授权项
- 附录
- 历史API
- 修订记录
- SDK参考
- 场景代码示例
- 常见问题
- 视频帮助
- 文档下载
- 通用参考
更新时间:2022-11-18 GMT+08:00
链接复制成功!
查询导入的PVC
功能介绍
查询指定命名空间下的PVC。
URI
GET /api/v1/namespaces/{namespace}/extended-persistentvolumeclaims
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
namespace |
Yes |
String |
命名空间。 |
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
storageType |
No |
String |
Type of storage,目前支持:
如果本参数未指定,将默认返回当前命名空间下bs(云硬盘存储)类型的PVC信息。 |
请求消息
N/A
响应消息
响应参数
参数 |
参数类型 |
描述 |
---|---|---|
PersistentVolumeClaim |
Object |
详情请参见表175。 |
PersistentVolume |
Object |
详情请参见表184。 |
StorageInfo |
Object |
详情请参见表199。 |
响应示例
[ { "persistentVolumeClaim": { "metadata": { "name": "cci-evs-jxzqegxe-k1z3", "namespace": "test-namespace", "selfLink": "/api/v1/namespaces/csms/persistentvolumeclaims/cci-evs-jxzqegxe-k1z3", "uid": "e82c1574-a46d-11e9-be8a-b44326d0c915", "resourceVersion": "65003551", "creationTimestamp": "2019-07-12T06:25:56Z", "annotations": { "pv.kubernetes.io/bind-completed": "yes", "pv.kubernetes.io/bound-by-controller": "yes", "volume.beta.kubernetes.io/storage-provisioner": "flexvolume-huawei.com/fuxivol" }, "finalizers": [ "kubernetes.io/pvc-protection" ], "enable": true }, "spec": { "accessModes": [ "ReadWriteMany" ], "resources": { "requests": { "storage": "10Gi" } }, "volumeName": "pvc-e82c1574-a46d-11e9-be8a-b44326d0c915", "storageClassName": "sata" }, "status": { "phase": "Bound", "accessModes": [ "ReadWriteMany" ], "capacity": { "storage": "10Gi" } } }, "persistentVolume": { "metadata": { "name": "pvc-e82c1574-a46d-11e9-be8a-b44326d0c915", "selfLink": "/api/v1/persistentvolumes/pvc-e82c1574-a46d-11e9-be8a-b44326d0c915", "uid": "eb0a0ca1-a46d-11e9-be8a-b44326d0c915", "resourceVersion": "65003549", "creationTimestamp": "2019-07-12T06:26:01Z", "labels": { "tenant.kubernetes.io/domain-id": "f0c61dbd65974140956ed37a91ea860f", "tenant.kubernetes.io/project-id": "cdb4249297a44665a63eec4f27ad09bf" }, "annotations": { "kubernetes.io/createdby": "huawei.com/fuxivol-dynamic-provisioner", "pv.kubernetes.io/bound-by-controller": "yes", "pv.kubernetes.io/namespace": "test-namespace", "pv.kubernetes.io/provisioned-by": "flexvolume-huawei.com/fuxivol", "tenant.kubernetes.io/domain-id": "f0c61dbd65974140956ed37a91ea860f", "tenant.kubernetes.io/project-id": "cdb4249297a44665a63eec4f27ad09bf" }, "finalizers": [ "kubernetes.io/pv-protection" ] }, "spec": { "capacity": { "storage": "10Gi" }, "flexVolume": { "driver": "huawei.com/fuxivol", "fsType": "ext4", "options": { "fsType": "ext4", "volumeID": "06e10708-6412-4190-8496-f9531fb5fd0c" } }, "accessModes": [ "ReadWriteMany" ], "claimRef": { "kind": "PersistentVolumeClaim", "namespace": "test-namespace", "name": "cci-evs-jxzqegxe-k1z3", "uid": "e82c1574-a46d-11e9-be8a-b44326d0c915", "apiVersion": "v1", "resourceVersion": "65003516" }, "persistentVolumeReclaimPolicy": "Delete", "storageClassName": "sata" }, "status": { "phase": "Bound" } }, "storageInfo": { "kind": "Volume", "apiVersion": "paas/v1beta1", "metadata": { "name": "pvc-e82c1574-a46d-11e9-be8a-b44326d0c915", "creationTimestamp": "2019-07-12T06:25:56Z", "labels": { "__system__volume_name": "pvc-e82c1574-a46d-11e9-be8a-b44326d0c915", "hw:passthrough": "true", "kubernetes.io/namespace": "test-namespace", "tenant.kubernetes.io/domain-id": "f0c61dbd65974140956ed37a91ea860f", "tenant.kubernetes.io/project-id": "cdb4249297a44665a63eec4f27ad09bf" } }, "spec": { "name": "pvc-e82c1574-a46d-11e9-be8a-b44326d0c915", "size": 10, "inresourcepool": false, "availability_zone": "cn-north-1a", "volume_type": "sata", "multiattach": true, "access": { "": { "access_type": "", "access_to": "", "access_level": "", "id": "", "state": "" } }, "vpc_id": "" }, "status": { "id": "06e10708-6412-4190-8496-f9531fb5fd0c", "status": "available", "created_at": "2019-07-12T06:25:56Z", "attachments": null, "app_info": null } } } ]