Queries the configurations of an accelerated domain name. You can query the configuration of one or more features at a time.

Note The maximum number of times that each user can call this operation per second is 100.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeCdnDomainConfigs

The operation that you want to perform. Set the value to DescribeCdnDomainConfigs.

DomainName String Yes example.com

The accelerated domain name. You can specify only one domain name in each call.

FunctionNames String No aliauth

The name of the feature. You can specify multiple features and separate them with commas (,).

ConfigId String No 6295

The ID of the configuration. For more information about ConfigId, see Usage notes on ConfigId.

Response parameters

Parameter Type Example Description
DomainConfigs Array of DomainConfig

The configurations of the domain name.

DomainConfig
ConfigId String 6295

The ID of the configuration.

FunctionArgs Array of FunctionArg

The configuration of each feature.

FunctionArg
ArgName String auth_type

The parameter key.

ArgValue String req_auth

The parameter value.

FunctionName String aliauth

The name of the feature.

Status String success

The status of the configuration. Valid values:

  • success: The configuration is applied.
  • testing:The configuration is being tested.
  • failed: The configuration failed.
  • configuring: The configuration is in progress.
RequestId String C80705BF-0F76-41FA-BAD1-5B59296A4E59

The ID of the request.

Examples

Sample requests

http(s)://cdn.aliyuncs.com/?Action=DescribeCdnDomainConfigs
&DomainName=example.com
&FunctionNames=aliauth
&<Common request parameters>

Sample success responses

XML format

<DescribeCdnDomainConfigsResponse>
      <RequestId>C80705BF-0F76-41FA-BAD1-5B59296A4E59</RequestId>
      <DomainConfigs>
            <DomainConfig>
                  <Status>success</Status>
                  <FunctionArgs>
                        <FunctionArg>
                              <ArgName>auth_type</ArgName>
                              <ArgValue>req_auth</ArgValue>
                        </FunctionArg>
                        <FunctionArg>
                              <ArgName>ali_auth_dual</ArgName>
                              <ArgValue>on</ArgValue>
                        </FunctionArg>
                  </FunctionArgs>
                  <ConfigId>6295</ConfigId>
                  <FunctionName>aliauth</FunctionName>
            </DomainConfig>
      </DomainConfigs>
</DescribeCdnDomainConfigsResponse>

JSON format

{
    "RequestId": "C80705BF-0F76-41FA-BAD1-5B59296A4E59",
    "DomainConfigs": {
        "DomainConfig": [
            {
                "Status": "success",
                "FunctionArgs": {
                    "FunctionArg": [
                        {
                            "ArgName": "auth_type",
                            "ArgValue": "req_auth"
                        },
                        {
                            "ArgName": "ali_auth_dual",
                            "ArgValue": "on"
                        }
                    ]
                },
                "ConfigId": 6295,
                "FunctionName": "aliauth"
            }
        ]
    }
}

Error codes

HttpCode Error code Error message Description
400 Invalid%s.ValueNotSupported FunctionName [%s] is not supported. The error message returned because the FunctionName parameter is set to an invalid value.

For a list of error codes, visit the API Error Center.