文档数据库服务 DDS-查询资源实例:请求示例

时间:2025-01-26 10:44:52

请求示例

  • 根据标签,按实例名称查询1~100条指定实例信息
    {  "offset": "100",  "limit": "100",  "action": "filter",  "matches": [    {      "key": "instance_name",      "value": "test-single"    }  ],  "tags": [    {      "key": "key1",      "values": [        "value1",        "value2"      ]    }  ]}
  • 按照实例名称或按实例ID查询总记录数
    {  "action": "count",  "tags": [    {      "key": "key1",      "values": [        "value1",        "value2"      ]    },    {      "key": "key2",      "values": [        "value1",        "value2"      ]    }  ],  "matches": [    {      "key": "instance_name",      "value": "test-single"    },     {      "key": "instance_id",      "value": "958693039f284d6ebfb177375711072ein02"    }  ]}
support.huaweicloud.com/api-dds/dds_api_0032.html