addLoadBalancerSslCertificate
    • PDF

    addLoadBalancerSslCertificate

    • PDF

    Article summary

    Available in Classic

    Add a SSL certificate used by a load balancer.

    Note

    Provision of addLoadBalancerSslCertificate API will be discontinued soon. Please use createExternalCertificate, which has the same feature.

    Request

    The following describes the request format for the endpoint. The request format is as follows:

    MethodURI
    POST/addLoadBalancerSslCertificate

    Request headers

    For headers common to all Load Balancer APIs, see Load Balancer common headers.

    Request query parameters

    The following describes the parameters.

    FieldTypeRequiredDescription
    certificateNameStringRequiredName of the certificate to be added to the load balancer
    privateKeyStringRequiredCertificate secret key
    publicKeyCertificateStringRequiredCertificate public key
    certificateChainStringOptionalChain certificate
    • Required if the issued certificate includes a chain certificate

    Request example

    The following is a sample request.

    curl --location --request POST 'https://ncloud.apigw.ntruss.com/loadbalancer/v2/addLoadBalancerSslCertificate
    ?certificateName=YOUR_CERTIFICATE
    &privateKey=YOUR_PRIVATE_KEY
    &publicKeyCertificate=YOUR_PUBLIC_KEY'
    --header 'x-ncp-apigw-timestamp: {Timestamp}'
    --header 'x-ncp-iam-access-key: {Access Key}'
    --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
    

    Response

    The following describes the response format.

    Response body

    See SslCertificate for the response body.

    Response status codes

    For response status codes common to NAVER Cloud Platform, see Ncloud API response status codes.

    Response example

    The following is a sample response.

    <addLoadBalancerSslCertificateResponse>
      <requestId>3c860c5d-10b0-464d-b7da-c464ae31c042</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <sslCertificateList>
        <sslCertificate>
          <certificateName>YOUR_CERTIFICATE</certificateName>
          <privateKey>YOUR_PRIVATE_KEY</privateKey>
          <publicKeyCertificate>YOUR_PUBLIC_KEY</publicKeyCertificate>
          <certificateChain></certificateChain>
        </sslCertificate>
      </sslCertificateList>
    </addLoadBalancerSslCertificateResponse>
    

    Response status codes

    The following describes the response status codes.

    HTTP status codeCodeMessageDescription
    40026036Not found certificateName OR privateKey OR publicKeyCertificate Please check your input parameterUnable to find the certificate name or the certificate's secret/public key
    40026041The certificate name already existentCertificate name can't be duplicated

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.