Queries the details of a custom response code configuration for a site.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SiteId |
integer |
Yes |
Site ID. For more information, see ListSites. |
775724064754208 |
| ConfigId |
integer |
Yes |
Configuration ID. |
424022244554752 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
Request ID. |
36af3fcc-43d0-441c-86b1-428951dc8225 |
| ConfigId |
integer |
Configuration ID. |
352816096987136 |
| ConfigType |
string |
The configuration type. Valid values:
|
global |
| SiteVersion |
integer |
The site configuration version number. For sites with version management enabled, specify this parameter to indicate the target version. Default value: 0. |
0 |
| Sequence |
integer |
The rule execution order. A smaller value indicates a higher priority. |
1 |
| RuleEnable |
string |
Indicates whether the rule is enabled. Do not set this parameter for a global configuration. Valid values:
|
on |
| Rule |
string |
The rule condition, expressed as a conditional expression to match requests. Do not set this parameter for a global configuration. Valid values:
|
(http.host eq "video.example.com") |
| RuleName |
string |
The rule name. Do not set this parameter for a global configuration. |
rule_example |
| ReturnCode |
string |
The response code. |
200 |
| PageId |
string |
The response page. |
0 |
Examples
Success response
JSON format
{
"RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225",
"ConfigId": 352816096987136,
"ConfigType": "global",
"SiteVersion": 0,
"Sequence": 1,
"RuleEnable": "on",
"Rule": "(http.host eq \"video.example.com\")\n",
"RuleName": "rule_example",
"ReturnCode": "200",
"PageId": "0"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.