Enables the service log feature for a project.
Operation description
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:CreateLogging |
create |
*Project
|
|
None |
Request syntax
POST /logging HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
The name of the project. |
ali-test-project |
| body |
object |
Yes |
The request body. |
|
| loggingProject |
string |
Yes |
The name of the project to which service logs are stored. |
my-project |
| loggingDetails |
array<object> |
Yes |
The configurations of service logs. |
|
|
object |
No |
|||
| type |
string |
Yes |
The type of service logs. Valid values:
|
consumergroup_log |
| logstore |
string |
Yes |
The name of the Logstore to which service logs of the type are stored. |
my-logstore |
Response elements
|
Element |
Type |
Description |
Example |
None defined.
Examples
Success response
JSON format
{}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.