Activates Log Service.

Prerequisites

A service-linked role is created and Security Center is authorized to access cloud resources. You can call the CreateServiceLinkedRole operation to create service-linked roles and authorize Security Center to access cloud resources.

Scenarios

Before you use the log analysis feature of Security Center, you must call the ModifyOpenLogShipper operation to activate Log Service.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyOpenLogShipper

The operation that you want to perform.

Set the value to ModifyOpenLogShipper.

From String No sas

The ID of the request source. Set the value to sas.

All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.

For more information about sample requests, see the "Examples" section of this topic.

Response parameters

Parameter Type Example Description
RequestId String 25EC270F-5783-4416-AD7C-1EDF063A039C

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ModifyOpenLogShipper
&<Common request parameters>

Sample success responses

XML format

<ModifyOpenLogShipperResponse>
      <RequestId>25EC270F-5783-4416-AD7C-1EDF063A039C</RequestId>
</ModifyOpenLogShipperResponse>

JSON format

{
    "RequestId":"25EC270F-5783-4416-AD7C-1EDF063A039C"
}

Error codes

For a list of error codes, visit the API Error Center.