Aria Automation can not sync after Vcenter Certificate change

If you change the certificate from Vcenter, it could happen that you can not sync anymore. So what you have to do:

  1. get bearer token:
  1. connect to your aria webside and log in
  2. in Chrome settings, activate developer tools and go to register network
  3. find in the list bearer token and copy it

2. get certificate as textfile
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.

3. Get Endpoint ID:

  1. click infrastructure
  2. click cloud accounts
  3. click on the vcenter
  4. Copy from the URL the endpoint ID, take all after: %2Fendpoints%2Fedit%2F<ID>

4. Go on a linux system and use these 2 scripts:
substitute all red things:
vRA-FQDN: your URL for aria automation
Endpoint-ID by step 3
certificate: step 2

After that execute this to scripts, only the green is different:

curl -X PATCH 'https://vRA-FQDN/provisioning/uerp/resources/endpoints/EndpointID' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H "Authorization: Bearer bearer-token" \
-d '{
"customProperties" : {
"certificate": "certificate"
}
}'
curl -X PATCH 'https://vRA-FQDN/provisioning/uerp/resources/endpoints/EndpointID' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H "Authorization: Bearer bearer-token" \
-d '{
"endpointProperties" : {
"certificate": "certificate"
}
}'

Related Posts

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert