Update Providers
If vSphere APIs begin with /rest (vs /api), any maps are consumed/returned instead as arrays of objects, each containing a key and a value property field.
Update a vCenter Server identity provider. if you do not have all of the privileges described as follows: - Operation execution requires VcIdentityProviders.Manage.
Request
URLURL
https://{api_host}/rest/vcenter/identity/providers/{provider}
Parameters
Parameters
string
provider
Required
the identifier of the provider
The parameter must be an identifier for the resource type: com.vmware.vcenter.identity.Providers.
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, obtained by first calling Create Session API
Example: b00db39f948d13ea1e59b4d6fce56389
Request Body
Request Body
IdentityProvidersUpdateRequestBody of type application/json (required){
"spec": {
"config_tag": "enum"
}
}
spec
Required
the UpdateSpec contains the information used to update the provider
cURL Command
curl -X PATCH -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" -H "Content-Type: application/json" -d '{"spec":{"active_directory_over_ldap":{"cert_chain":{"cert_chain":["string"]},"groups_base_dn":"string","password":"string","server_endpoints":["string"],"user_name":"string","users_base_dn":"string"},"auth_query_params":{"key":"string"},"config_tag":"enum","domain_names":["string"],"groups_claim":"string","idm_endpoints":["string"],"idm_protocol":"enum","make_default":false,"name":"string","oauth2":{"auth_endpoint":"string","auth_query_params":{"key":"string"},"authentication_method":"enum","client_id":"string","client_secret":"string","issuer":"string","public_key_uri":"string","token_endpoint":"string"},"oidc":{"client_id":"string","client_secret":"string","discovery_endpoint":"string"},"org_ids":["string"],"reset_groups_claim":false,"reset_upn_claim":false,"upn_claim":"string"}}' https://{api_host}/rest/vcenter/identity/providers/{provider}
Errors
400
com.vmware.vapi.std.errors.invalid_argument : if invalid arguments are provided in updateSpec.
404
com.vmware.vapi.std.errors.not_found : if no provider found with the given provider identifier.
On This Page
Providers Operations
get
post
get
patch
delete