API网关 APIG-查询包含指定标签的实例数量:请求示例

时间:2024-06-27 11:06:26

请求示例

  • 查询包含指定标签的实例数量

    {
      "without_any_tag" : false,
      "tags" : [ {
        "key" : "test-key",
        "values" : [ "test-value" ]
      } ],
      "matches" : [ {
        "key" : "resource_name",
        "value" : "test-apig"
      } ]
    }
  • 查询企业项目id为指定值的实例数量

    {
      "without_any_tag" : false,
      "sys_tags" : [ {
        "key" : "_sys_enterprise_project_id",
        "values" : [ "0" ]
      } ],
      "matches" : [ {
        "key" : "resource_name",
        "value" : "test-apig"
      } ]
    }
support.huaweicloud.com/api-apig/ShowInstancesNumByTags.html