Queries the configurations of an accelerated domain name. You can query the configurations of one or more features at the same time.
Operation description
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DomainName | string | Yes | The accelerated domain name. You can specify only one domain name in each request. | example.com |
FunctionNames | string | No | The names of the features. Separate multiple feature names with commas (,). For more information, see Parameters for configuring features for domain names. | aliauth |
ConfigId | string | No | The ID of the configuration. For more information about ConfigId, see Usage notes on ConfigId. | 6295 |
Response parameters
ParentId configuration example
If the ParentId parameter is **-1**, the existing rule conditions in the configurations are deleted.
"functionArgs": [{
"argName": "Parameter A",
"argValue": Value of parameter A"
},
{
"argName": "Parameter B",
"argValue": "Value of parameter B"
}],
"functionName": "Feature name"
"ParentId": "Optional. This corresponds to configid of the referenced rule condition."
}]
The following code provides a sample configuration if parentId is not used. In this example, the origin_request_header feature is used to add back-to-origin HTTP headers, and the rule condition whose configuration ID is 222728944812032 is referenced.
"functionArgs": [{
"argName": "header_operation_type",
"argValue": "add"
}, {
"argName": "header_name",
"argValue": "Accept-Encoding"
}, {
"argName": "header_value",
"argValue": "gzip"
}, {
"argName": "duplicate",
"argValue": "off"
}],
"functionName": "origin_request_header"
}]
The following code provides a sample configuration if parentId is used. In this example, the origin_request_header feature is used to add back-to-origin HTTP headers, and the rule condition whose configuration ID is 222728944812032 is referenced.
"functionArgs": [{
"argName": "header_operation_type",
"argValue": "add"
}, {
"argName": "header_name",
"argValue": "Accept-Encoding"
}, {
"argName": "header_value",
"argValue": "gzip"
}, {
"argName": "duplicate",
"argValue": "off"
}],
"functionName": "origin_request_header",
"parentId": "222728944812032"
}]
Examples
Sample success responses
JSON
format
{
"RequestId": "C80705BF-0F76-41FA-BAD1-5B59296A4E59",
"DomainConfigs": {
"DomainConfig": [
{
"Status": "success",
"ParentId": "222728944812032",
"ConfigId": "6295",
"FunctionName": "aliauth",
"FunctionArgs": {
"FunctionArg": [
{
"ArgName": "auth_type",
"ArgValue": "req_auth"
}
]
}
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | Invalid%s.ValueNotSupported | FunctionName [%s] is not supported. | The specified method is not supported. |
For a list of error codes, visit the Service error codes.