Creating a Certificate

Function

This API is used to create a certificate for an HTTPS listener.

URI

POST /v1.0/{project_id}/elbaas/certificate

Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID.

name

No

String

  • Specifies the certificate name.
  • The value can contain 0 to 64 characters that consist of letters, digits, underscores (_), and hyphens (-).

description

No

String

  • Provides supplementary information about the certificate.
  • The value contains a maximum of 128 characters and cannot contain angle brackets (< and >).

domain

No

String

  • Specifies the domain name associated with the server certificate.
  • The value can contain a maximum of 254 characters that consist of letters, digits, hyphens (-), and periods (.), and must start with uppercase letters or digits.

certificate

Yes

String

  • Specifies the certificate content.
  • The value is in PEM coding format.

private_key

Yes

String

  • Specifies the private key of the certificate.
  • The value is in PEM coding format.

Request

Response

Status Code