{"id":2367,"date":"2025-01-08T09:00:42","date_gmt":"2025-01-08T08:00:42","guid":{"rendered":"https:\/\/kdslabs.fr\/?p=2367"},"modified":"2025-01-08T09:04:09","modified_gmt":"2025-01-08T08:04:09","slug":"vcf-update-management-domain-through-api-rest","status":"publish","type":"post","link":"https:\/\/kdslabs.fr\/index.php\/2025\/01\/08\/vcf-update-management-domain-through-api-rest\/","title":{"rendered":"[VCF] Update management domain through API Rest"},"content":{"rendered":"<h4 class=\"has-link-color wp-elements-bfac9b79213e056254d91d163cf12cc2 wp-block-post-title has-text-color has-colibri-color-1-color\">[VCF] Update management domain through API Rest<\/h4>\n\n\n<p class=\"has-colibri-color-1-color has-text-color has-link-color wp-elements-a9e693da6d6cbc877c9f436b3dfb8af1\"><strong>[VCF] vCenter bundle update through SDDC Manager developer center &#8211; API<\/strong><\/p>\n\n\n\n<p>After reading the previous article on &#8220;[VCF] Update vCenter to 7.0U3r through API Rest&#8221;, you are ready to update your domains in VMware Cloud Foundation. This article is focused on basic API request through the developer center but of course you can use other tools such as Postman.<\/p>\n\n\n\n<p>The first step to update domains in VCF is to get the domain ID (in my case I have the Management Domain ID)<\/p>\n\n\n\n<p>To do so, open the developer center on the left of your screen and go to API Explorer<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1058\" height=\"771\" src=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-1.png\" alt=\"\" class=\"wp-image-2368\" srcset=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-1.png 1058w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-1-300x219.png 300w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-1-1024x746.png 1024w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-1-768x560.png 768w\" sizes=\"auto, (max-width: 1058px) 100vw, 1058px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Get you Domain ID<\/strong><\/p>\n\n\n\n<p>Go to \u201cAPIs for managing domains\u201d and click on \u201cGET\u201d. Then open the related domain.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1234\" height=\"61\" src=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-2.png\" alt=\"\" class=\"wp-image-2369\" srcset=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-2.png 1234w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-2-300x15.png 300w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-2-1024x51.png 1024w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-2-768x38.png 768w\" sizes=\"auto, (max-width: 1234px) 100vw, 1234px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"508\" height=\"599\" src=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-3.png\" alt=\"\" class=\"wp-image-2370\" srcset=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-3.png 508w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-3-254x300.png 254w\" sizes=\"auto, (max-width: 508px) 100vw, 508px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Get you Bundle ID<\/strong><\/p>\n\n\n\n<p>At this time the API request is \u201cAPIs for managing Bundles\u201d. Click on GET as well. <br>Advice: you can filter on specific productType (vCenter)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1239\" height=\"240\" src=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-4.png\" alt=\"\" class=\"wp-image-2371\" srcset=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-4.png 1239w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-4-300x58.png 300w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-4-1024x198.png 1024w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-4-768x149.png 768w\" sizes=\"auto, (max-width: 1239px) 100vw, 1239px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1175\" height=\"596\" src=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-5.png\" alt=\"\" class=\"wp-image-2372\" srcset=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-5.png 1175w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-5-300x152.png 300w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-5-1024x519.png 1024w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-5-768x390.png 768w\" sizes=\"auto, (max-width: 1175px) 100vw, 1175px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>After that, we need to verify if the bundle ID is comptatible with our domain.<\/p>\n\n\n\n<p>To do so, the API request is \u201cAPIs for managing Upgradeables\u201d &gt; GET and put your domain ID. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1249\" height=\"307\" src=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-6.png\" alt=\"\" class=\"wp-image-2373\" srcset=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-6.png 1249w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-6-300x74.png 300w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-6-1024x252.png 1024w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-6-768x189.png 768w\" sizes=\"auto, (max-width: 1249px) 100vw, 1249px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"413\" src=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-7.png\" alt=\"\" class=\"wp-image-2374\" srcset=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-7.png 500w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-7-300x248.png 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>After having completed all previous steps, you have all the necessary information to update through an API request, but don\u2019t forget to backup your VCSA configuration and SDDC Manager.<\/p>\n\n\n\n<p>VMware Developper&nbsp;: <a href=\"https:\/\/developer.broadcom.com\/xapis\/vmware-cloud-foundation-api\/4.4.0\/\/v1\/upgrades\/post\/index?scrollString=%20\/v1\/upgrades\">https:\/\/developer.broadcom.com\/xapis\/vmware-cloud-foundation-api\/4.4.0\/\/v1\/upgrades\/post\/index?scrollString=%20\/v1\/upgrades<\/a><\/p>\n\n\n\n<p><strong><span style=\"text-decoration: underline;\">Request&nbsp;:<\/span><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"bundleId\": \"0c753f38-3649-45ba-b63f-4d622c5542d6-apTool\",\n    \"resourceType\": \"DOMAIN\",\n    \"resourceUpgradeSpecs\": &#91; {\n        \"customISOSpec\": {\n            \"hostIds\": &#91; \"\" ],\n            \"id\": \"fdbd5ff8-c3d1-4eab-84b8-5c5dacf888e3\"\n        },\n        \"resourceId\": \"fdbd5ff8-c3d1-4eab-84b8-5c5dacf888e3\",\n        \"upgradeNow\": true\n    } ]\n}<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><span style=\"text-decoration: underline;\">Details:<\/span><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"945\" height=\"592\" src=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-8.png\" alt=\"\" class=\"wp-image-2375\" srcset=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-8.png 945w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-8-300x188.png 300w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-8-768x481.png 768w\" sizes=\"auto, (max-width: 945px) 100vw, 945px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>HTTPS Details:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1395\" height=\"376\" src=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-9.png\" alt=\"\" class=\"wp-image-2376\" srcset=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-9.png 1395w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-9-300x81.png 300w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-9-1024x276.png 1024w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-9-768x207.png 768w\" sizes=\"auto, (max-width: 1395px) 100vw, 1395px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Complete&nbsp;:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"491\" height=\"289\" src=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-10.png\" alt=\"\" class=\"wp-image-2377\" srcset=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-10.png 491w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2367-10-300x177.png 300w\" sizes=\"auto, (max-width: 491px) 100vw, 491px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[VCF] vCenter bundle update through SDDC Manager developer center &#8211; API After reading the previous article on &#8220;[VCF] Update vCenter to 7.0U3r through API Rest&#8221;, you are ready to update your domains in VMware Cloud Foundation. This article is focused on basic API request through the developer center but of course you can use other [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42,15],"tags":[23,21],"class_list":["post-2367","post","type-post","status-publish","format-standard","hentry","category-vcf","category-vmware","tag-guide","tag-vmware"],"_links":{"self":[{"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/posts\/2367","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/comments?post=2367"}],"version-history":[{"count":0,"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/posts\/2367\/revisions"}],"wp:attachment":[{"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/media?parent=2367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/categories?post=2367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/tags?post=2367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}