Enables the LogShipper feature of Log Service for a resource group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:CreateResourceLog |
create |
*Resource
|
None | None |
Request syntax
POST /api/v2/resources/{ClusterId}/{ResourceId}/log HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The ID of the region to which the resource group belongs. |
cn-shanghai |
| ResourceId |
string |
Yes |
The ID of the resource group. For more information about how to query the ID of a resource group, see ListResources. |
eas-r-asdasdasd**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| ProjectName |
string |
Yes |
The Log Service project associated with the resource group. For more information about how to query the project, see ListProject. |
eas-r-asdasdasd-sls |
| LogStore |
string |
Yes |
The Log Service Logstore. For more information about how to query a Logstore, see ListLogStores. |
access_log |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82**** |
| Message |
string |
The returned message. |
Resource [eas-r-asdasdasd****] is deleted. |
Examples
Success response
JSON format
{
"RequestId": "40325405-579C-4D82****",
"Message": "Resource [eas-r-asdasdasd****] is deleted."
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.