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 Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is UpdateSSLBinding . | Yes |
PublicKey | string | The user's public key can be obtained from Console (opens in a new tab) | Yes |
Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Region | string | Region. See List of Regions and Availability Zones | Yes |
ProjectId | string | Project ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface. | Yes |
OldSSLId | string | The old certificate bound to the listener instance | Yes |
NewSSLId | string | The new certificate that the listener instance needs to bind | Yes |
LoadBalancerId | string | The 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 |
ListenerId | string | The 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 Name | Type | Description Information | Required |
---|---|---|---|
RetCode | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. | Yes |
Action | string | Operation command name. | Yes |
Message | string | Returns an error message, providing detailed description when RetCode is non-zero. | No |
Example
Request Example
https://api.surfercloud.com/?Action=UpdateSSLBinding
&Region=IfBmlzJv
&ProjectId=CHTuNqIH
&OldSSLId=rxYUJoiy
&NewSSLId=dDZmRgWr
&LoadBalancerId=ZSwPqIpv
&ListenerId=LNwDzfNF
Response Example
{
"Action": "UpdateSSLBindingResponse",
"RetCode": 0
}