Create 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.
Create a vCenter Server identity provider. if you do not have all of the privileges described as follows: - Operation execution requires VcIdentityProviders.Create and VcIdentityProviders.Manage.
Request
URLURL
https://{api_host}/rest/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
IdentityProvidersCreateRequestBody of type application/json (required){
"spec": {
"config_tag": "enum"
}
}
spec
Required
the CreateSpec contains the information used to create the provider
Response
Response
Response BodyResponse Body
200 OK returns
IdentityProvidersCreateResponseBody
of type application/json
The identifier of the created identity provider. The result will be an identifier for the resource type: com.vmware.vcenter.identity.Providers.
{
"value": "string"
}
string
value
Optional
The identifier of the created identity provider. The result will be an identifier for the resource type: com.vmware.vcenter.identity.Providers.
cURL Command
curl -X POST -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","is_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"],"upn_claim":"string"}}' https://{api_host}/rest/vcenter/identity/providers
Errors
400
com.vmware.vapi.std.errors.invalid_argument : if invalid arguments are provided in createSpec.
409
com.vmware.vapi.std.errors.already_exists : if provider exists for provider ID in given spec.
On This Page
Providers Operations
get
post
get
patch
delete