Cleanup SSO config when unable to perform reset-sso functionality available in UI due to VCF Identity Broker being down.
VCF Operations 9.0
{{vcfops-ip}} and vcfops-password)curl --location 'https://{{vcfops-ip}}/suite-api/api/auth/token/acquire' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{ "username":"admin", "password":"vcfops-password"}' In order to get the vidbResourceId you can use the following curl command (replacing {{vcfops-ip}} and {{token}} ):
curl -k --location 'https://{{vcfops-ip}}/suite-api/internal/vidb/identityproviders' \--header 'Accept: application/json' \--header 'Content-Type: application/json' \--header 'Authorization: vRealizeOpsToken {{token}}' \--header 'X-vRealizeOps-API-use-unsupported: true'
replacing {{vcfops-ip}} and {{token}} in command below)vidbResourceId (marked by #'s in the command below) curl --insecure --location --request DELETE 'https://{{vcfops-ip}}/suite-api/internal/vidb/identityproviders?vidbResourceId=########-####-####-####-############&purgeSSOConfig=true' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: vRealizeOpsToken {{token}}' \
--header 'X-vRealizeOps-API-use-unsupported: true'
Example for Postman usage (vidbResourceId is masked):chmod +x cleanup_auth_sources.sh ./cleanup_auth_source.sh