问题

通过REST API 3列出VM UUID通过VM名称搜索3

  • 2021年3月30日
  • 2个答复
  • 783次观看

徽章 +1

你好,

使用REST API 3,我想通过在搜索条件中提供VM名称来列出VM UUID。

但是我找不到任何搜索过滤器来提供VM名称。

我正在使用put /vm /列表,这些是身体模型

{
“善良”:“ VM”,
“ sort_attribute”:“字符串”,
“滤镜”:“字符串”,
“长度”:0,
“ sort_order”:“字符串”,
“偏移”:0
}

请建议在哪里放置VM名称搜索标准。

另外,建议是否有另一个呼吁通过VM名称搜索列出VM UUID。


2个答复

徽章 +1

我尝试过

“ filter”:“ vm_name ==。*克隆*”,

结果无

但没有帮助

尝试这个

{
“善良”:“ VM”,
“ sort_attribute”:“字符串”,
“滤镜”:“ vm_name ==*克隆”,
“长度”:5,
“ sort_order”:“升序”,
“偏移”:0
}

回复


Learn more about our cookies.<\/a>","cookiepolicy.button":"Accept cookies","cookiepolicy.button.deny":"Deny all","cookiepolicy.link":"Cookie settings","cookiepolicy.modal.title":"Cookie settings","cookiepolicy.modal.content":"We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.<\/a>","cookiepolicy.modal.level1":"Basic
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">
Baidu