{"id":220,"date":"2025-08-21T21:32:24","date_gmt":"2025-08-21T19:32:24","guid":{"rendered":"https:\/\/www.vcdlab.com\/?p=220"},"modified":"2025-08-21T21:40:32","modified_gmt":"2025-08-21T19:40:32","slug":"using-custom-attributes-as-filter","status":"publish","type":"post","link":"https:\/\/www.vcdlab.com\/?p=220","title":{"rendered":"Using Custom Attributes as Filter"},"content":{"rendered":"\n<p>Today during my work with a customer about upgrading VxRail clusters, DRS was stopped by one of the customer.<\/p>\n\n\n\n<p>No Chance Resources Pools and DRS rules have been deleted because of that. No worries it was a non production cluster.<\/p>\n\n\n\n<p>But when the customer started to recreate the Resources Pools, the virtual machines were added manually because &#8220;Tags or Categories&#8221; are not a filter in the VMs tab.  <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"390\" height=\"849\" src=\"https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/image.png\" alt=\"\" class=\"wp-image-221\" srcset=\"https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/image.png 390w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/image-138x300.png 138w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/image-230x501.png 230w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/image-350x762.png 350w\" sizes=\"auto, (max-width: 390px) 100vw, 390px\" \/><\/figure>\n\n\n\n<p>So i found a workaround even if it&#8217;s the best solution in its problematic.<\/p>\n\n\n\n<p>Custom Attribute can be added in the filter of the column so i created one named Task \ud83d\ude42<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"565\" height=\"712\" src=\"https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210801.png\" alt=\"\" class=\"wp-image-224\" srcset=\"https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210801.png 565w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210801-238x300.png 238w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210801-230x290.png 230w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210801-350x441.png 350w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210801-480x605.png 480w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"434\" src=\"https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210747-1024x434.png\" alt=\"\" class=\"wp-image-222\" srcset=\"https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210747-1024x434.png 1024w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210747-300x127.png 300w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210747-768x325.png 768w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210747-1536x650.png 1536w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210747-1000x423.png 1000w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210747-230x97.png 230w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210747-350x148.png 350w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210747-480x203.png 480w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210747.png 1585w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Then i added a value in the custom attribute for each virtual machine. In my example, each nsx nodes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"549\" src=\"https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210829-1024x549.png\" alt=\"\" class=\"wp-image-223\" srcset=\"https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210829-1024x549.png 1024w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210829-300x161.png 300w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210829-768x411.png 768w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210829-1536x823.png 1536w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210829-1000x536.png 1000w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210829-230x123.png 230w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210829-350x188.png 350w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210829-480x257.png 480w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210829.png 1566w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>In conclusion we can filter virtual machines with the help of custom attributes<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"573\" src=\"https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210652-1024x573.png\" alt=\"\" class=\"wp-image-225\" srcset=\"https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210652-1024x573.png 1024w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210652-300x168.png 300w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210652-768x430.png 768w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210652-1000x559.png 1000w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210652-230x129.png 230w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210652-350x196.png 350w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210652-480x269.png 480w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/Screenshot-2025-08-21-210652.png 1389w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The easiest step, select the virtual machines and grab them to the resource pool.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"403\" src=\"https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/image-1-1024x403.png\" alt=\"\" class=\"wp-image-229\" srcset=\"https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/image-1-1024x403.png 1024w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/image-1-300x118.png 300w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/image-1-768x302.png 768w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/image-1-1000x393.png 1000w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/image-1-230x90.png 230w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/image-1-350x138.png 350w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/image-1-480x189.png 480w, https:\/\/www.vcdlab.com\/wp-content\/uploads\/2025\/08\/image-1.png 1220w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Today during my work with a customer about upgrading VxRail clusters, DRS was stopped by one of the customer. No Chance Resources [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":225,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"quote","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-220","post","type-post","status-publish","format-quote","has-post-thumbnail","hentry","category-vsphere","post_format-post-format-quote"],"_links":{"self":[{"href":"https:\/\/www.vcdlab.com\/index.php?rest_route=\/wp\/v2\/posts\/220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vcdlab.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vcdlab.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vcdlab.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vcdlab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=220"}],"version-history":[{"count":4,"href":"https:\/\/www.vcdlab.com\/index.php?rest_route=\/wp\/v2\/posts\/220\/revisions"}],"predecessor-version":[{"id":231,"href":"https:\/\/www.vcdlab.com\/index.php?rest_route=\/wp\/v2\/posts\/220\/revisions\/231"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.vcdlab.com\/index.php?rest_route=\/wp\/v2\/media\/225"}],"wp:attachment":[{"href":"https:\/\/www.vcdlab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vcdlab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vcdlab.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}