Create Providers Deprecated
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
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
This is a request body class for an operation.
{
"spec": {
"config_tag": "Oauth2"
}
}
the CreateSpec contains the information used to create the provider
Authentication
Response
Response BodyResponse Body
The identifier of the created identity provider. The result will be an identifier for the resource type: com.vmware.vcenter.identity.Providers.
{
"value": "string"
}
The identifier of the created identity provider. The result will be an identifier for the resource type: com.vmware.vcenter.identity.Providers.
Errors
com.vmware.vapi.std.errors.invalid_argument : if invalid arguments are provided in createSpec. | com.vmware.vapi.std.errors.already_exists : if provider exists for provider ID in given spec.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
cURL Command
Vendor Extensions
x-vmw-doc-new-method: post
x-vmw-doc-new-path: /api/vcenter/identity/providers
x-vmw-doc-operation: create