Modifies the name and description of a flow log.

Debug

Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
CenId String Yes cen-7qthudw0ll6jmc****

The ID of the CEN instance.

FlowLogId String Yes flowlog-m5evbtbpt****

The ID of the flow log.

RegionId String Yes cn-hangzhou

The ID of the region to which the flow log belongs. To query the region ID, call DescribeRegions.

Action String No ModifyFlowLogAttribute

The name of this action. Value: ModifyFlowLogAttribute.

ClientToken String No 02fb3da4-130e-11e9-8e44-0016e04115b

The client token used to guarantee the idempotence of the request. The value of this parameter is generated by the client and must be unique among different requests. It must be 1 to 64 ASCII characters in length.

Description String No This is my Flowlog.

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

FlowLogName String No myFlowlog

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

Response parameters

Parameter Type Example value Description
RequestId String 9A411874-2EC8-4633-9D30-9012DCE89DD1

The ID of the request.

Success String true

Indicates whether the operation is successful. Valid values:

  • true: The operation is successful.
  • false: The operation is unsuccessful.

Examples

Request example


http(s)://[Endpoint]/? Action=ModifyFlowLogAttribute
&CenId=cen-7qthudw0ll6jmc****
&FlowLogId=flowlog-m5evbtbpt****
&RegionId=cn-hangzhou
&<CommonParameters>

Response example

XML format

<ModifyFlowLogAttributeResponse>
	  <RequestId>9A411874-2EC8-4633-9D30-9012DCE89DD1</RequestId>
      <Success>true</Success>
</ModifyFlowLogAttributeResponse>

JSON format

{
	"RequestId":"9A411874-2EC8-4633-9D30-9012DCE89DD1",
	"Success":true
}

Errors

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