Queries the logging configuration of a gateway, including the logging status, Simple Log Service (SLS) project name, and Logstore name.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hcs-sgw:DescribeGatewayLogging |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GatewayId |
string |
Yes |
The gateway ID. |
gw-000eg44nmxbsfwb*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| SlsProject |
string |
The SLS project name. |
123*** |
| RequestId |
string |
The request ID. |
17D08346-BD08-4107-BFBC-01A6AAD5F5FB |
| Message |
string |
The response message. |
successful |
| GatewayLoggingStatus |
string |
The logging status of the gateway. Valid values:
|
Enabled |
| SlsLogstore |
string |
The SLS Logstore name. |
alex*** |
| Code |
string |
The HTTP status code. A value of 200 indicates success. |
200 |
| Success |
boolean |
Indicates whether the request succeeded. |
true |
Examples
Success response
JSON format
{
"SlsProject": "123***",
"RequestId": "17D08346-BD08-4107-BFBC-01A6AAD5F5FB",
"Message": "successful",
"GatewayLoggingStatus": "Enabled",
"SlsLogstore": "alex***",
"Code": "200",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | EmptyGatewayId | You must enter a valid ID for the gateway. | You must enter a valid ID for the gateway. |
| 400 | GatewayNotExist | The specified gateway does not exist. You must specify a valid parameter. | The specified gateway does not exist. You must specify a valid parameter. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.