Modifies the name and description of a flow log.

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 ModifyFlowLogAttribute

The operation that you want to perform. Set the value to ModifyFlowLogAttribute.

FlowLogId String Yes flowlog-m5evbtbptxxxxxxxxxxxx

The ID of the flow log.

RegionId String Yes cn-qingdao

The ID of the region to which the flow log belongs. You can call the DescribeRegions operation to query the region IDs.

FlowLogName String No myFlowlog

The name of the flow log.

The name must be 2 to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter and cannot start with http:// or https://.

Description String No This is my Flowlog.

The description of the flow log.

The description must be 2 to 256 characters in length. The description must start with a letter, but cannot start with http:// or https://.

Response parameters

Parameter Type Example Description
RequestId String F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1

The ID of the request.

Success String true

Indicates whether the request succeeded.

  • true: The request succeeded.
  • false: The request failed.

Examples

Sample requests

https://vpc.aliyuncs.com/?Action=ModifyFlowLogAttribute
&RegionId=cn-qingdao
&FlowLogId=flowlog-m5evbtbptxxxxxxxxxxxx
&FlowLogName=myFlowlog
&Common request parameter

Sample success responses

XML format

<ModifyFlowLogAttributeResponse>
	  <RequestId>62172DD5-6BAC-45DF-8D44-xxxxxxxx</RequestId>
	  <Success>true</Success>
</ModifyFlowLogAttributeResponse>

JSON format

{
    "RequestId": "62172DD5-6BAC-45DF-8D44-xxxxxxxx",
    "Success": "true"
}

Error codes

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