All Products
Search
Document Center

Web Application Firewall:DescribeHybridCloudResources

Last Updated:Aug 12, 2026

Queries the list of hybrid cloud domain names.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-waf:DescribeHybridCloudResources

get

*All Resource

*

  • acs:ResourceGroupId
None

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The ID of the WAF instance.

Note

You can call DescribeInstance to query the ID of the current WAF instance.

waf_v3prepaid_public_cn-***********

Domain

string

No

The domain name to query.

www.aliyundoc.com

Backend

string

No

The IP address or domain name of the origin server that corresponds to the domain name.

1.1.XX.XX

PageNumber

integer

No

The page number to return in a paging query. Default value: 1, which indicates the first page.

1

PageSize

integer

No

The number of entries per page in a paging query. Default value: 10, which indicates 10 entries per page.

10

CnameEnabled

boolean

No

Specifies whether public cloud disaster recovery is enabled. Valid values:

  • true: Public cloud disaster recovery is enabled.

  • false: Public cloud disaster recovery is not enabled.

true

RegionId

string

No

The region where the WAF instance resides. Valid values:

  • cn-hangzhou: the Chinese mainland.

  • ap-southeast-1: outside the Chinese mainland.

cn-hangzhou

ResourceManagerResourceGroupId

string

No

The ID of the Alibaba Cloud resource group.

rg-acfmvtc5z52****

Response elements

Element

Type

Description

Example

object

Domains

array<object>

The list of domain names returned.

array<object>

The Website Config details.

Status

integer

The status of the domain name. Valid values:

  • 1: The domain name is in a normal state.

  • 2: The domain name is being created.

  • 3: The domain name is being modified.

  • 4: The domain name is being released.

  • 5: The domain name has stopped forwarding traffic.

1

ResourceManagerResourceGroupId

string

The ID of the Alibaba Cloud resource group.

rg-acfmvtc5z52****

Uid

string

The user ID.

130715431409****

Listen

object

The listening configuration.

HttpsPorts

array

The list of HTTPS ports.

integer

The HTTPS port.

443

ProtectionResource

string

The type of protection resource to use. Valid values:

  • share: shared cluster.

  • gslb: intelligent load balancing of the shared cluster.

share

CustomCiphers

array

The specific custom cipher suites to add.

Note

This parameter is returned only when CipherSuite is set to 99.

string

The custom cipher suite.

ECDHE-ECDSA-AES128-GCM-SHA256

TLSVersion

string

The TLS version. Valid values:

  • tlsv1

  • tlsv1.1

  • tlsv1.2

tlsv1.2

Http2Enabled

boolean

Indicates whether HTTP/2 is enabled. Valid values:

  • true: Enabled.

  • false: Disabled.

false

CertId

string

The certificate ID.

72***76-cn-hangzhou

CipherSuite

integer

The type of cipher suite. Valid values:

  • 1: all cipher suites.

  • 2: strong cipher suites.

  • 99: custom cipher suites.

1

EnableTLSv3

boolean

Indicates whether TLS 1.3 is supported. Valid values:

  • true: Supported.

  • false: Not supported.

true

IPv6Enabled

boolean

Indicates whether IPv6 is enabled. Valid values:

  • true: Enabled.

  • false: Disabled.

false

FocusHttps

boolean

Indicates whether HTTPS forced redirect is enabled. Valid values:

  • true: Enabled.

  • false: Disabled.

false

XffHeaders

array

The list of custom header fields used to obtain the client IP address, in the format of ["header1","header2",...].

Note

This parameter is returned only when XffHeaderMode is set to 2, which indicates that WAF reads the value of a custom header field that you specify in the request header as the client IP address.

string

The custom header field used to obtain the client IP address.

Client-ip

XffHeaderMode

integer

The method that WAF uses to obtain the originating IP address of the client. Valid values:

  • 0: No Layer 7 proxy is deployed in front of WAF.

  • 1: WAF reads the first value of the X-Forwarded-For (XFF) header field as the client IP address.

  • 2: WAF reads the value of a custom header field that you specify as the client IP address.

0

ExclusiveIp

boolean

Indicates whether an exclusive IP address is supported. Valid values:

  • true: Supported.

  • false: Not supported.

true

HttpPorts

array

The list of HTTP listening ports.

integer

The HTTP listening port.

80

Id

integer

The access ID.

12345

Redirect

object

The forwarding configuration.

ConnectTimeout

integer

The connection timeout period. Unit: seconds. Valid values: 5 to 120.

120

Keepalive

boolean

Indicates whether persistent connections are enabled. Valid values:

  • true: Enabled.

  • false: Disabled.

true

SniEnabled

boolean

Indicates whether back-to-origin Server Name Indication (SNI) is enabled. Valid values:

  • true: Enabled.

  • false: Disabled.

true

CnameEnabled

boolean

Specifies whether to enable public cloud disaster recovery. Valid values:

  • true: Enabled.

  • false: Disabled.

true

KeepaliveTimeout

integer

The idle timeout period for persistent connections. Valid values: 1 to 60. Default value: 15. Unit: seconds.

Note

Specifies how long an idle reused persistent connection is kept before it is released.

15

ReadTimeout

integer

The read timeout period. Unit: seconds. Valid values: 5 to 1800.

200

Backends

array

The IP address or domain name of the origin server that corresponds to the domain name.

string

The IP address or domain name of the origin server that corresponds to the domain name.

1.1.XX.XX

SniHost

string

The custom value of the SNI extension field. An empty value indicates that no custom SNI value is set. By default, the value of the Host field in the request header is used as the value of the SNI extension field.

Note

This parameter is returned only when SniEnabled is set to true, which indicates that back-to-origin SNI is enabled.

www.aliyundoc.com

FocusHttpBackend

boolean

Indicates whether forced HTTP back-to-origin is enabled. Valid values:

  • true: Enabled.

  • false: Disabled.

true

WriteTimeout

integer

The write timeout period. Unit: seconds. Valid values: 5 to 1800.

200

RoutingRules

string

The hybrid cloud forwarding rules, represented as a string converted from a JSON array. Each element in the JSON array is a struct that contains the following fields:

  • rs: Array type. The list of back-to-origin IP addresses or back-to-origin CNAMEs.

  • location: String type. The name of the protection node.

  • locationId: Long type. The ID of the protection node.

[ { "rs": [ "1.1.XX.XX" ], "locationId": 535, "location": "test1111" } ]

Retry

boolean

Indicates whether WAF retries when back-to-origin fails. Valid values:

  • true: Retries.

  • false: Does not retry.

true

RequestHeaders

array<object>

The traffic tag fields and values of the domain name, used to tag traffic processed by WAF.

object

The traffic tag fields and values of the domain name, used to tag traffic processed by WAF.

Value

string

The value of the specified custom request header field.

bbb

Key

string

The specified custom request header field.

aaa

KeepaliveRequests

integer

The number of requests that reuse persistent connections. Valid values: 60 to 1000.

Note

The number of persistent connections to reuse after persistent connections are enabled.

1000

Loadbalance

string

The load balancing algorithm used for back-to-origin. Valid values:

  • iphash: IP Hash algorithm.

  • roundRobin: round-robin algorithm.

  • leastTime: Least Time algorithm.

iphash

Domain

string

The domain name.

www.aliyundoc.com

Cname

string

The CNAME assigned by WAF to the domain name.

Note

This parameter is returned only when CnameEnabled is set to true (public cloud disaster recovery is enabled).

50fqmu1ci7g0xtiyxnrhgx6qdhmn****.yundunwaf5.com

TotalCount

integer

The total number of entries returned.

24

RequestId

string

The request ID.

98D2AA9A-5959-5CCD-83E3-B6606232A2BE

Examples

Success response

JSON format

{
  "Domains": [
    {
      "Status": 1,
      "ResourceManagerResourceGroupId": "rg-acfmvtc5z52****",
      "Uid": "130715431409****",
      "Listen": {
        "HttpsPorts": [
          443
        ],
        "ProtectionResource": "share",
        "CustomCiphers": [
          "ECDHE-ECDSA-AES128-GCM-SHA256"
        ],
        "TLSVersion": "tlsv1.2",
        "Http2Enabled": false,
        "CertId": "72***76-cn-hangzhou",
        "CipherSuite": 1,
        "EnableTLSv3": true,
        "IPv6Enabled": false,
        "FocusHttps": false,
        "XffHeaders": [
          "Client-ip"
        ],
        "XffHeaderMode": 0,
        "ExclusiveIp": true,
        "HttpPorts": [
          80
        ]
      },
      "Id": 12345,
      "Redirect": {
        "ConnectTimeout": 120,
        "Keepalive": true,
        "SniEnabled": true,
        "CnameEnabled": true,
        "KeepaliveTimeout": 15,
        "ReadTimeout": 200,
        "Backends": [
          "1.1.XX.XX"
        ],
        "SniHost": "www.aliyundoc.com",
        "FocusHttpBackend": true,
        "WriteTimeout": 200,
        "RoutingRules": "[\n      {\n            \"rs\": [\n                  \"1.1.XX.XX\"\n            ],\n            \"locationId\": 535,\n            \"location\": \"test1111\"\n      }\n]",
        "Retry": true,
        "RequestHeaders": [
          {
            "Value": "bbb",
            "Key": "aaa"
          }
        ],
        "KeepaliveRequests": 1000,
        "Loadbalance": "iphash"
      },
      "Domain": "www.aliyundoc.com",
      "Cname": "50fqmu1ci7g0xtiyxnrhgx6qdhmn****.yundunwaf5.com"
    }
  ],
  "TotalCount": 24,
  "RequestId": "98D2AA9A-5959-5CCD-83E3-B6606232A2BE"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.