{"id":11,"date":"2023-11-02T07:50:42","date_gmt":"2023-11-02T07:50:42","guid":{"rendered":"https:\/\/aria.netzwerk-profis.net\/?p=11"},"modified":"2023-11-02T07:50:42","modified_gmt":"2023-11-02T07:50:42","slug":"aria-automation-can-not-sync-after-vcenter-certificate-change","status":"publish","type":"post","link":"https:\/\/aria.netzwerk-profis.net\/index.php\/2023\/11\/02\/aria-automation-can-not-sync-after-vcenter-certificate-change\/","title":{"rendered":"Aria Automation can not sync after Vcenter Certificate change"},"content":{"rendered":"\n<p>If you change the certificate from Vcenter, it could happen that you can not sync anymore. So what you have to do:<br><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>get bearer token:<\/strong><\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-media-text is-stacked-on-mobile\"><figure class=\"wp-block-media-text__media\"><img loading=\"lazy\" decoding=\"async\" width=\"844\" height=\"160\" src=\"https:\/\/aria.netzwerk-profis.net\/wp-content\/uploads\/2023\/11\/bearer-1.png\" alt=\"\" class=\"wp-image-13 size-full\" srcset=\"https:\/\/aria.netzwerk-profis.net\/wp-content\/uploads\/2023\/11\/bearer-1.png 844w, https:\/\/aria.netzwerk-profis.net\/wp-content\/uploads\/2023\/11\/bearer-1-300x57.png 300w, https:\/\/aria.netzwerk-profis.net\/wp-content\/uploads\/2023\/11\/bearer-1-768x146.png 768w\" sizes=\"auto, (max-width: 844px) 100vw, 844px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<ol class=\"wp-block-list\">\n<li>connect to your aria webside and log in<\/li>\n\n\n\n<li>in Chrome settings, activate developer tools and go to register network<\/li>\n\n\n\n<li>find in the list bearer token and copy it<\/li>\n<\/ol>\n<\/div><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>2. get certificate as textfile<\/strong><br>the next step is to get the new certification and open it in Ultraedit or some kind of good editor. Copy the certificate in textfile.<\/p>\n\n\n\n<p><strong> 3. Get Endpoint ID:<\/strong><\/p>\n\n\n\n<div class=\"wp-block-media-text is-stacked-on-mobile\"><figure class=\"wp-block-media-text__media\"><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"67\" src=\"https:\/\/aria.netzwerk-profis.net\/wp-content\/uploads\/2023\/11\/Endpoint-ID-1.png\" alt=\"\" class=\"wp-image-15 size-full\" srcset=\"https:\/\/aria.netzwerk-profis.net\/wp-content\/uploads\/2023\/11\/Endpoint-ID-1.png 680w, https:\/\/aria.netzwerk-profis.net\/wp-content\/uploads\/2023\/11\/Endpoint-ID-1-300x30.png 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<ol class=\"wp-block-list\">\n<li>click infrastructure<\/li>\n\n\n\n<li>click cloud accounts<\/li>\n\n\n\n<li>click on the vcenter<\/li>\n\n\n\n<li>Copy from the URL the endpoint ID, take all after: %2Fendpoints%2Fedit%2F<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">&lt;ID&gt;<\/mark><\/strong><br><\/li>\n<\/ol>\n<\/div><\/div>\n\n\n\n<p><strong>4. Go on a linux system and use these 2 scripts:<\/strong><br>substitute all red things:<br>vRA-FQDN: your URL for aria automation<br>Endpoint-ID by step 3<br>certificate: step 2<br><br>After that execute this to scripts, only the green is different:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -X PATCH 'https:\/\/<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">vRA-FQDN<\/mark>\/provisioning\/uerp\/resources\/endpoints\/<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">EndpointID<\/mark>' \\\n-H 'Content-Type: application\/json' \\\n-H 'Accept: application\/json' \\\n-H \"Authorization: Bearer <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">bearer-token<\/mark>\" \\\n-d '{\n\"<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">custom<\/mark>Properties\" : {\n\"certificate\": \"<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">certificate<\/mark>\"\n}\n}'\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -X PATCH 'https:\/\/<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">vRA-FQDN<\/mark>\/provisioning\/uerp\/resources\/endpoints\/<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">EndpointID<\/mark>' \\\n-H 'Content-Type: application\/json' \\\n-H 'Accept: application\/json' \\\n-H \"Authorization: Bearer <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">bearer-token<\/mark>\" \\\n-d '{\n\"<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">endpoint<\/mark>Properties\" : {\n\"certificate\": \"<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">certificate<\/mark>\"\n}\n}'<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you change the certificate from Vcenter, it could happen that you can not sync anymore. So what you have to do: 2. get certificate<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[7],"class_list":["post-11","post","type-post","status-publish","format-standard","hentry","category-aria-automation","tag-cert"],"_links":{"self":[{"href":"https:\/\/aria.netzwerk-profis.net\/index.php\/wp-json\/wp\/v2\/posts\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aria.netzwerk-profis.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aria.netzwerk-profis.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aria.netzwerk-profis.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aria.netzwerk-profis.net\/index.php\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":3,"href":"https:\/\/aria.netzwerk-profis.net\/index.php\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"predecessor-version":[{"id":18,"href":"https:\/\/aria.netzwerk-profis.net\/index.php\/wp-json\/wp\/v2\/posts\/11\/revisions\/18"}],"wp:attachment":[{"href":"https:\/\/aria.netzwerk-profis.net\/index.php\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aria.netzwerk-profis.net\/index.php\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aria.netzwerk-profis.net\/index.php\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}