Queries the configuration of custom log fields for a website.
Operation description
-
Description: Queries the custom log field configuration for a website, including custom fields in request headers, response headers, and cookies.
-
Scenarios: Retrieve specific HTTP header or cookie information for log analysis.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:GetSiteCustomLog |
none |
*Site
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SiteId |
integer |
Yes |
The website ID, which can be obtained by calling the ListSites operation. |
11223*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
6befa4aa-2a94-4f51-a245-295787192d2c |
| SiteId |
integer |
The website ID. |
167026711*** |
| ConfigId |
integer |
The ID of the custom log field configuration. |
6befa4aa-2a94-4f51-a245-295787192d2c |
| LogCustomField |
object |
The custom fields. |
|
| RequestHeaders |
array |
The request header fields. |
|
|
string |
The request header. |
x-acs-request-id |
|
| ResponseHeaders |
array |
The response header fields. |
|
|
string |
The response header. |
X_Swift_Error |
|
| Cookies |
array |
The cookie fields. |
|
|
string |
The cookie. |
sessionId |
|
| IsExist |
boolean |
Indicates whether the custom configuration exists. |
true |
Examples
Success response
JSON format
{
"RequestId": "6befa4aa-2a94-4f51-a245-295787192d2c",
"SiteId": 0,
"ConfigId": 0,
"LogCustomField": {
"RequestHeaders": [
"x-acs-request-id"
],
"ResponseHeaders": [
"X_Swift_Error"
],
"Cookies": [
"sessionId"
]
},
"IsExist": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
| 400 | InternalError | An internal exception occurred, please try again later. | An inner exception was triggered. Please try again later. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.