云桌面 WORKSPACE-使用标签过滤桌面:请求示例

时间:2024-09-05 16:31:33

请求示例

/v2/{project_id}/desktops/resource_instances/action

{
  "offset" : "100",
  "limit" : "100",
  "action" : "filter",
  "matchs" : [ {
    "key" : "resource_name",
    "value" : "resource1"
  } ],
  "not_tags" : [ {
    "key" : "key1",
    "values" : [ "*value1", "value2" ]
  } ],
  "tags" : [ {
    "key" : "key1",
    "values" : [ "*value1", "value2" ]
  } ],
  "tags_any" : [ {
    "key" : "key1",
    "values" : [ "value1", "value2" ]
  } ],
  "not_tags_any" : [ {
    "key" : "key1",
    "values" : [ "value1", "value2" ]
  } ]
}
support.huaweicloud.com/api-workspace/ListDesktopByTags.html