Docs
api
Load Balance(ULB)
UpdateSecurityPolicy

Update Security Policy - UpdateSecurityPolicy

Overview

Update Security Policy

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is UpdateSecurityPolicy.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
SecurityPolicyIdstringSecurity Policy IDYes
SSLCiphers.NstringEncryption Suite, the minimum version of TLS and the encryption suite must all be non-empty or all be empty.No
TLSVersionstringMinimum version of TLS, both the minimum version of TLS and encryption suite must be either all empty or all non-empty.No
SecurityPolicyNamestringSecurity Policy NameNo

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=UpdateSecurityPolicy
&Region=cn-bj2
&ProjectId=project-XXXXX
&SecurityPolicyId=security-XXXXX
&SSLCiphers.0=AES128-CCM
&TLSVersion=TLSv1.2
&SecurityPolicyName=new-security

Response Example

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