Docs
api
Load Balance(ULB)
UpdateSSLBinding

Change Certificate Binding Relationship - UpdateSSLBinding

Overview

Replace the certificate bound to the traditional or application type load balancer listener with another certificate,

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is UpdateSSLBinding.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.Yes
OldSSLIdstringThe old certificate bound to the listener instanceYes
NewSSLIdstringThe new certificate that the listener instance needs to bindYes
LoadBalancerIdstringThe operated LB instance ID (only when the LoadBalancerId is passed as an argument, all the original binding relationships of the LB with the OldSSLId will be replaced; if neither LoadBalancerId nor ListenerId are passed as arguments, the binding relationships of all original certificates with the OldSSLId under this project will be updated) (LB refers to CLB or ALB).No
ListenerIdstringThe operated listener instance ID (only when ListenerId is passed as a parameter, all original certificates bound to this listener with OldSSLId will be replaced; if neither LoadBalancerId nor ListenerId are passed as parameters, all original certificates with OldSSLId under this project will be updated; if both LoadBalancerId and ListenerId are passed as parameters, the ownership relationship between ULB and Vsserver will be strictly verified, and the OldSSLId bound to the vserver under this ulb will be replaced with NewSSLId) (Listener refers to VServer or Listener).No

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No

Example

Request Example

https://api.dezai.com/?Action=UpdateSSLBinding
&Region=IfBmlzJv
&ProjectId=CHTuNqIH
&OldSSLId=rxYUJoiy
&NewSSLId=dDZmRgWr
&LoadBalancerId=ZSwPqIpv
&ListenerId=LNwDzfNF

Response Example

{
  "Action": "UpdateSSLBindingResponse",
  "RetCode": 0
}