Call the GetSlsService operation to retrieve the activation status of Simple Log Service. The endpoint must be China (Shanghai) or Singapore.
Operation description
This operation requires an AccessKey pair. For more information, see AccessKey pair.
An AccessKey pair for an Alibaba Cloud account grants full access to all APIs. This poses a high security threat. Create and use a RAM user for API access or routine operations and maintenance (O&M). The RAM user must have permissions to operate Simple Log Service resources. For more information, see Create and authorize a RAM user.
Try it now
Test
RAM authorization
Request syntax
GET /slsservice HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
| headers |
object |
||
| Content-Type |
string |
||
| Server |
string |
||
| Connection |
string |
||
| Date |
string |
||
| x-log-requestid |
string |
||
| Content-Length |
string |
||
| serviceStatus |
The response body. |
Examples
Success response
JSON format
{
"status": "NotExist",
"enabled": false
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.