You can call this operation to query the environment configuration (phased release).

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 DescribeDcdnDomainStagingConfig

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

DomainName String Yes example.com

The name of the accelerated domain.

FunctionNames String Yes aliauth

The names of the features to query. You can specify multiple features and separate them with commas (,).

Response parameters

Parameter Type Example Description
DomainConfigs Array

The configurations of accelerated domain names returned.

ConfigId String 6295

The ID of the configuration.

FunctionArgs Array

The descriptions of a feature.

ArgName String auth_type

The name of the configuration.

ArgValue String req_auth

The value of the configuration.

FunctionName String aliauth

The name of the feature.

Status String success

The status of the feature. Valid values:

  • success
  • testing
  • failed
  • configuring
RequestId String C80705BF-0F76-41FA-BAD1-5B59296A4E59

The ID of the request.

Examples

Sample requests

http://dcdn.aliyuncs.com/?Action=DescribeDcdnDomainStagingConfig
&DomainName=example.com
&FunctionNames=aliauth
&<Common request parameters>

Sample success responses

XML format

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

JSON format

{
    "RequestId": "C80705BF-0F76-41FA-BAD1-5B59296A4E59",
    "DomainConfigs":  [{
            "Status": "success",
            "FunctionArgs": [
                {
                    "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 specified configuration is not supported.

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