Follow the below steps:
1. Get the token by calling the /v1/tokens API
TOKEN=$(curl -d '{"username" : "[email protected]", "password" : "<password>"}' -H "Content-Type: application/json" -X POST https://<sddc_manager_fqdn>/v1/tokens | jq -r '.accessToken')
2. Call the GET /v1/identity-providers API to get the id of the ADFS configured
> curl 'https://<sddc_manager_fqdn>/v1/identity-providers/' -i -X GET -H 'Content-Type: application/json' -H "Authorization: Bearer $TOKEN"
3. Call the GET /v1/identity-providers/{id} API to get details about the ADFS configured
> curl 'https://<sddc_manager_fqdn>/v1/identity-providers/<ADFSIdpId>' -i -X GET -H 'Content-Type: application/json' -H "Authorization: Bearer $TOKEN"
4. Call the PATCH /v1/identity-providers/{id} API to edit the ADFS configuration and set the "name" field as "Microsoft ADFS"
> curl -d '{"name" : "Microsoft ADFS", type":"Microsoft ADFS", "certChain":[], "ldap":{...}, "oidc":{...}' -H 'Content-Type: application/json' -X POST 'https://<sddc_manager_fqdn>/v1/identity-providers/<ADFSIdpId>'
Please refer to VMware Cloud Foundation API Reference Guide for more details