You need to enable JavaScript to run this app.
导航

获取存储空间列表

最近更新时间2023.08.11 19:22:04

首次发布时间2023.08.11 19:22:04

本接口用于获取存储空间的列表。

请求方法

GET

请求参数

下表列出了接口特定的请求参数以及公共请求参数 Action 和 Version。 其他公共参数,请参见公共参数

名称类型是否必填示例值描述
ActionStringListKvNamespace公共参数。该参数表示接口名称。取值:ListKvNamespace
VersionString2021-04-30公共参数。该参数表示接口版本。取值:2021-04-30。

返回数据

名称类型示例值描述
kv_namespaces[]KvNamespace见下文说明存储空间列表
total_countInt642存储空间总数

KvNamespace

名称类型示例值描述
namespace_namestringtest-kv1存储空间名称。
namespace_idstring46d79a9944ae2fd81f2643e2fe5ef42d****存储空间id。
descriptionstringtest存储空间的描述。
creatorstringtestuser存储空间的创建者。
create_timeint641661864175创建时间。以 UNIX 时间戳格式显示。
update_timeint641678288603更新时间。以 UNIX 时间戳格式显示。

请求示例

GET https://veefedge.volcengineapi.com/?Action=ListKvNamespace
&<公共请求参数>

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20230808095102CFDFA3280****",
        "Action": "ListKvNamespace",
        "Version": "2021-04-30",
        "Service": "veefedge",
        "Region": "cn-north-1"
    },
    "Result": {
        "kv_namespaces": [
            {
                "namespace_name": "test-kv1",
                "namespace_id": "46d79a9944ae2fd81f2643e2fe5ef42d****",
                "description": "test",
                "creator": "testuser",
                "create_time": 1661864175,
                "update_time": 1678288603
            },
            {
                "namespace_name": "asdJSJasdad",
                "namespace_id": "510257916f6b5503b288d064b7154****",
                "description": "",
                "creator": "testuser",
                "create_time": 1662005890,
                "update_time": 1664337001
            }
        ],
        "total_count": 2
    }
}