docs
api
Load Balance(ULB)
DescribeSecurityPoliciesV2

Obtain information on security policy - DescribeSecurityPoliciesV2

Overview

Obtain information about security policies, and you can simultaneously get the binding relationship between security policies and traditional and application load balancer listeners.

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeSecurityPoliciesV2.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
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 IDNo
LimitintData Pagination ValueNo
OffsetintData OffsetNo

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
DataSetarray[SecurityPolicyInfo]Security policy list, see SecurityPolicyInfo for details of each parameter.No
TotalCountintTotal number of security policies that meet the conditionsNo

Data Model

SecurityPolicyInfo

Field NameTypeDescription InformationRequired
SecurityPolicyIdstringSecurity Policy IDNo
SecurityPolicyNamestringSecurity Policy NameNo
TLSVersionstringMinimum TLS VersionNo
SSLCiphersarray[string]Encryption SuiteNo
SecurityPolicyTypeintSecurity policy type 0: Predefined 1: CustomNo
Relationsarray[SecurityPolicyRelation]Associated ListenerNo

SecurityPolicyRelation

Field NameTypeDescription InformationRequired
LoadBalancerIdstringID of the Load Balancing InstanceNo
ListenerIdstringListener's IDNo
ListenerNamestringName of the ListenerNo
ListenerPortintMonitor PortNo

Example

Request Example

https://api.surfercloud.com/?Action=DescribeSecurityPoliciesV2
&Region=cn-zj
&ProjectId=NadrKrEQ
&SecurityPolicyId=mBHSWzVg
&Limit=1
&Offset=6

Response Example

{
  "Action": "DescribeSecurityPoliciesV2Response",
  "DataSet": [
    {
      "SSLCiphers": [
        "RQnVrFsU"
      ],
      "SecurityPolicyId": "ZYQSwjis",
      "SecurityPolicyName": "yhoxriGI",
      "SecurityPolicyType": 1,
      "TLSVersion": "hjBjlvYd",
      "VServerSet": [
        {
          "Port": 6,
          "ULBId": "UhNxiXbM",
          "VServerId": "VuGFmING",
          "VServerName": "vBKoaTLx"
        }
      ]
    }
  ],
  "RetCode": 0,
  "TotalCount": 3
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved
  • Contact our sales to help your business.
  • Contact our sales to help your business.