Create Vsphere Provider
Registers a new vSphere (vCenter) provider definition with the installer.
Workflow Chain:
- A registered provider ID is required before you can deploy any new platforms via
POST /sspi/platforms. - Provide the vCenter URL, credentials, and compute resource details in the request body.
- The response returns the newly generated
provider-idupon success.
The credentials and connection details for the target vCenter provider.
{
"server": "vsphere-server-fqdn.example",
"user": "[email protected]",
"password": "PasswordExample!123",
"certificate": "-----BEGIN CERTIFICATE-----\nMI... (certificate data omitted) ...\n-----END CERTIFICATE-----"
}
OK
{
"id": "434348d8-681e-4809-8dc1-427127d2bee7",
"instance_id": "1",
"server": "vsphere-server-fqdn.example",
"user": "[email protected]",
"password": "******",
"certificate": "",
"state": "{\"lastResetTime\":\"some-date-time\"}"
}
Bad Request
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Unauthorized
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Forbidden
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Failed
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Required
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Too Many Requests
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
An error occurred while checking the Platform Installer service.
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/sspi/providers