You need to enable JavaScript to run this app.
导航
DescribeDBInstanceAclCategories
最近更新时间:2024.11.28 22:00:29首次发布时间:2024.11.28 22:00:29

调用 DescribeDBInstanceAclCategories 接口查询目标 Redis 实例支持的命令类别。

请求类型

同步请求。

请求参数

参数
类型
是否必选
示例值
描述
InstanceId
String
redis-cnlfqfxzk8zxt****

实例 ID。

说明

您可以调用 DescribeDBInstances 接口查询目标地域下所有 Redis 实例的基本信息,包括实例 ID。

返回参数

参数
类型
示例值
描述
Categories
String[]
["keyspace","read","write","set","sortedset","list","hash","string","bitmap","hyperloglog","geo","stream","pubsub","admin","fast","slow","blocking","dangerous","connection","transaction","scripting"]

当前实例支持的命令类别。

说明

缓存数据库 Redis 版默认提供了 Administrator、NotDangerous、ReadWrite 和 ReadOnly 四种角色,每种角色的 ACL 规则不同,支持的命令分类及对应的命令也不同。更多详情,请参见 ACL 语法

示例

请求示例

POST https://redis.volcengineapi.com/?Action=DescribeDBInstanceAclCategories&Version=2020-12-07 HTTP/1.1
Host: redis.volcengineapi.com
Content-Type: application/json
X-Date: 20240926T113612Z
Authorization: HMAC-SHA256 Credential=AKLTO*****U2NGM/20240926/cn-beijing/Redis/request, SignedHeaders=x-content-sha256;x-date, Signature=e769f*****bf440
{
  "InstanceId": "redis-cnlfqfxzk8zxt****"
}

返回示例

{
  "ResponseMetadata": {
    "RequestId": "20240926193612F1B41A449DB5EFC04A19-13****",
    "Action": "DescribeDBInstanceAclCategories",
    "Version": "2020-12-07",
    "Service": "Redis",
    "Region": "cn-beijing"
  },
  "Result": {
    "Categories": [
      "keyspace",
      "read",
      "write",
      "set",
      "sortedset",
      "list",
      "hash",
      "string",
      "bitmap",
      "hyperloglog",
      "geo",
      "stream",
      "pubsub",
      "admin",
      "fast",
      "slow",
      "blocking",
      "dangerous",
      "connection",
      "transaction",
      "scripting"
    ]
  }
}

错误码

更多详情,请参见错误码