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

查看存储空间

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

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

本接口用于查询存储空间的详细信息。

请求方法

GET

请求参数

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

名称类型是否必填示例值描述

Action

String

GetKvNamespace

公共参数。该参数表示接口名称。取值:GetKvNamespace

VersionString2021-04-30公共参数。该参数表示接口版本。取值:2021-04-30。
namespace_nameStringtest-kv1需要查看详情的存储空间名称。您可通过ListKvNamespace接口查询存储空间名称。

返回数据

名称类型示例值描述
namespace_detailKvNamespace见下文说明存储空间详情

KvNamespace

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

请求示例

GET https://veefedge.volcengineapi.com/?Action=GetKvNamespace
&namespace_name=test-kv1
&<公共请求参数>

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202308080952004CD21902****",
        "Action": "GetKvNamespace",
        "Version": "2021-04-30",
        "Service": "veefedge",
        "Region": "cn-north-1"
    },
    "Result": {
        "namespace_detail": {
            "namespace_name": "test-kv1",
            "namespace_id": "46d79a9944ae2fd81f2643e2fe5ef42d****",
            "description": "test",
            "creator": "testuser",
            "create_time": 1661864175,
            "update_time": 1678288603
        }
    }
}