[tomcat-exec-9 ERROR com.vmware.hvc.vapi.impl.AdministratorsProviderImpl opId=] Set administrator groups failed with exception:
com.vmware.vapi.std.errors.Unauthenticated: Unauthenticated (com.vmware.vapi.std.errors.unauthenticated)
| ERROR | jetty-default-128542 | SamlTokenExtractor | Cannot complete login attempt due to runtime SAML parsing error.
com.vmware.vapi.dsig.json.SignatureException: Cannot verify the signature over the provided data
Sample output :
{"value":[{"domain":"DOMAIN_ID","label":"vsphere.local","type":""}]}
Returns the domain the vCenter trusts: DOMAIN_ID
3. curl -k -X GET --header 'Accept: application/json' --header 'vmware-api-session-id: SESSION_ID' 'https://VMC_SDDC_ADDRESS/rest/vcenter/trust/vc-trusts/DOMAIN_ID'
Sample output:
{"value":{"label":"vsphere.local","signing_cert_chains":[{"cert_chain":-----BEGIN CERTIFICATE-----\nMIIEOzCCAy....----END CERTIFICATE-----","-----BEGIN CERTIFICATE-----QpIVy3ivFyYsIqIq3bBb+JRw==\n-----END CERTIFICATE-----"]}],"upn_suffixes":["vsphere.local","bma.local"],"type":"","group_map":GROUP_VALUE_NAME}}
Returns the entire trust object: GROUP_VALUE_NAME (This is the entire string after the semi-colon)
4. curl --insecure --request PATCH -H 'Content-Type:application/json' -X PATCH --header 'vmware-api-session-id: SESSION_ID' --data-ascii '{"spec": { "group_map":GROUP_VALUE_NAME}}' --url 'https://VMC_SDDC_ADDRESS/rest/vcenter/trust/vc-trusts/DOMAIN_ID'