Create a server (v2)
POST/tap/api/v2/servers
Creates a server and issues its certificate. When csr is not blank, the CSR is signed and the certificate bundle contains no private key; otherwise a key pair and password are generated. The default AWS roles are assigned when awsRoles is omitted or empty. Requires the admin role. When the sendWelcomeEmail setting is on and email integration is enabled, the custodian is sent an email; it includes a download link valid for up to 8 hours when the showBundleLinks setting is on, and attaches the bundle when the sendWelcomeEmailWithAttachment setting is on. If the download link cannot be generated, the server is still created but no email is sent, and POST /tap/api/v2/servers/{serverId}/resend can send it later. bundlePath in the response is the stored location of the certificate bundle, not a download link.
Request
Responses
- 200
- 400
- 403
- 422
- 500
The created server.
The request body is malformed, the name, custodian email, or custodian name is missing or blank, or the server could not be saved.
The caller does not have the admin role.
Email domain validation is on and the email domain is not allowed.
The server could not be created, or the server was created but a later step failed. When the certificate could not be generated, the server exists without a certificate until POST /tap/api/v2/servers/{serverId}/certificate is called.