/v2/certificatesCreate a certificate
Creates a certificate from a user-generated certificate and private key or requests one from Let's Encrypt. Set type to custom and provide private_key and leaf_certificate, or set it to lets_encrypt and provide dns_names; both request types require name. A Let's Encrypt certificate starts in the pending state and transitions to verified when it is ready to use.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Certificate creation details. Provide name and the fields for either a custom certificate or a Let's Encrypt certificate.
A 401 is returned when authentication credentials are invalid. A 429 is returned when the API rate limit has been exceeded, and a 500 indicates a server error. Provide name and choose a matching request type: custom requires private_key and leaf_certificate, while lets_encrypt requires dns_names.