Dumps the logs of a General-purpose NAS file system to 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 CreateLogAnalysis

The operation that you want to perform.

Set the value to CreateLogAnalysis.

RegionId String Yes cn-hangzhou

The ID of the region.

FileSystemId String Yes 174494xxxx

The ID of the file system.

Response parameters

Parameter Type Example Description
RequestId String 5B4511A7-C99E-4071-AA8C-32E2529DA963

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=CreateLogAnalysis
&RegionId=cn-hangzhou
&FileSystemId=174494xxxx
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<CreateLogAnalysisResponse>
    <RequestId>5B4511A7-C99E-4071-AA8C-32E2529DA963</RequestId>
</CreateLogAnalysisResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "5B4511A7-C99E-4071-AA8C-32E2529DA963"
}

Error codes

HTTP status code Error code Error message Description
400 SubAccount.NoLogSLRPermission The RAM user does not have the permission to create service linked role AliyunServiceRoleForNasLogDelivery. Please authorize the RAM user the permission ram:CreateServiceLinkedRole. The error message returned because the RAM user is not authorized to create the AliyunServiceRoleForNasLogDelivery service-linked role. Grant the ram:CreateServiceLinkedRole permission to the RAM user.
400 InvalidFilesystemType.NotSupport The API operation does not support the file system type. The error message returned because this operation does not support the specified type of file system.
404 InvalidFileSystem.NotFound The specified file system does not exist. The error message returned because the specified file system does not exist.

For a list of error codes, see Service error codes.