Queries flow logs.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
expressconnectrouter:DescribeFlowLogs | create | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
EcrId | string | Yes | The ID of the Express Connect Router (ECR) instance. | ecr-a5xqrgbeidz1w8**** |
DryRun | boolean | No | Specifies whether to perform a dry run. Valid values:
| true |
ClientToken | string | No | A client token that you can use to ensure the idempotence of the request. You must use a client token that is unique among different requests. The token can contain only ASCII characters. Note If you do not specify this parameter, the system uses the RequestId of the API request as the ClientToken. The RequestId may be different for each API request. | 02fb3da4-130e-11e9-8e44-00**** |
| Tag | array<object> | No | The tags. You can specify up to 20 tags. | |
object | No | A list of tags. | ||
Key | string | No | The tag key. The tag key cannot be an empty string. The tag key can be up to 128 characters long. It cannot start with aliyun or acs: and cannot contain http:// or https://. | TestKey |
Value | string | No | The tag value. The tag value can be an empty string. The tag value can be up to 128 characters long. It cannot start with acs: and cannot contain http:// or https://. | TestValue |
NextToken | string | No | The token that is used for the next query. Valid values:
| gAAAAABkWw******* |
MaxResults | integer | No | The number of entries to return on each page. Valid values: 1 to 2,147,483,647. Default value: 10. | 10 |
FlowLogId | string | No | The ID of the flow log instance. | ecr-flog-jqnr0veifo5d**** |
FlowLogName | string | No | The name of the flow log. The name can be 0 to 128 characters long. | same-flowlog |
ProjectName | string | No | The name of the Log Service project where captured traffic is stored.
A project name must be globally unique within an Alibaba Cloud region and cannot be modified after it is created. The name must meet the following requirements:
| myFlowlog |
LogStoreName | string | No | The name of the Logstore where captured traffic is stored.
| myFlowlog |
InstanceId | string | No | The ID of the virtual border router (VBR) that is associated with the ECR instance. | vbr-j6cwxhgg0s5nuephp**** |
ResourceGroupId | string | No | The ID of the resource group to which the flow log instance belongs. | rg-aek2aq7f4va**** |
Response elements
Element | Type | Description | Example |
object | The response object. | ||
RequestId | string | The request ID. | 6FABF516-FED3-5697-BDA2-B18C5D9A**** |
Success | boolean | Indicates whether the request was successful. Valid values:
| True |
Code | string | The response code. A value of 200 indicates that the request was successful. For more information about other values, see the **Error codes** section of this topic. | 200 |
Message | string | The response message. | OK |
HttpStatusCode | integer | The HTTP status code. | 200 |
DynamicCode | string | The dynamic error code. | IllegalParamFormat.EcrId |
DynamicMessage | string | The dynamic error message that is used to replace the Note For example, if the error message is The Value of Input Parameter %s is not valid and the DynamicMessage parameter returns DtsJobId, the specified DtsJobId parameter is invalid. | The param format of EcrId **** is illegal. |
AccessDeniedDetail | string | The details of the access denial. | Authentication is failed for **** |
TotalCount | integer | The total number of entries that match the query. | 11 |
MaxResults | integer | The number of entries to return on each page. Valid values: 1 to 2,147,483,647. Default value: 10. | 10 |
NextToken | string | The token that is used for the next query. Valid values:
| AAAAAYws9fJ0Ur4MGm/5OkDoW/Zn0J0/sCjivzwX9oBcwFnWaaas/kSG+J/WzLOxJHS4**** |
| FlowLogs | array<object> | A list of flow logs. | |
object | The details of the flow log. | ||
FlowLogId | string | The ID of the flow log instance. | ecr-flog-leypqehtgtia2***** |
EcrId | string | The ID of the ECR instance. | ecr-h4cop1khw98***** |
RegionId | string | The region ID of the ECR instance. | cn-shanghai |
Status | string | The status of the flow log.
| Active |
FlowLogName | string | The name of the flow log. | myFlowlog |
Description | string | The description of the Express Connect Router (ECR) instance. | myFlowlog |
Interval | integer | The aggregation interval for the flow log. Unit: seconds. Valid values:
Default value: 600. | 600 |
SamplingRate | string | The sampling rate. Valid values:
Default value: 1:4096. | 1:4096 |
LogStoreName | string | The name of the Logstore that stores the captured traffic. | FlowLogStore |
ProjectName | string | The name of the project that stores the captured traffic. | FlowLogProject |
InstanceType | string | The type of the network instance. The value is fixed as VBR, which indicates a virtual border router.
| VBR |
ResourceGroupId | string | The ID of the resource group to which the flow log instance belongs. | rg-aekzb3xwrexc4ry |
| Tags | array<object> | The tags that are added to the Express Connect Router (ECR) instance. | |
object | The details of the tag. | ||
Key | string | The tag key. The tag key cannot be an empty string. Note The tag key can be up to 64 characters long. It cannot start with | TagKey |
Value | string | The tag value. Note The tag value can be up to 128 characters long and cannot start with | TagValue |
InstanceId | string | The ID of the VBR instance associated with the flow log. | vbr-9dpty76irpf4u15***** |
CreationTime | string | The time when the flow log was created. The time is displayed in the YYYY-MM-DDThh:mm:ssZ format and is in Coordinated Universal Time (UTC). | 2023-09-21T04:20Z |
SlsRegionId | string | The region ID of Log Service. | cn-hangzhou |
Examples
Success response
JSON format
{
"RequestId": "6FABF516-FED3-5697-BDA2-B18C5D9A****",
"Success": true,
"Code": "200",
"Message": "OK",
"HttpStatusCode": 200,
"DynamicCode": "IllegalParamFormat.EcrId",
"DynamicMessage": "The param format of EcrId **** is illegal.",
"AccessDeniedDetail": "Authentication is failed for ****\n",
"TotalCount": 11,
"MaxResults": 10,
"NextToken": "AAAAAYws9fJ0Ur4MGm/5OkDoW/Zn0J0/sCjivzwX9oBcwFnWaaas/kSG+J/WzLOxJHS4****",
"FlowLogs": [
{
"FlowLogId": "ecr-flog-leypqehtgtia2*****",
"EcrId": "ecr-h4cop1khw98*****",
"RegionId": "cn-shanghai",
"Status": "Active",
"FlowLogName": "myFlowlog",
"Description": "myFlowlog",
"Interval": 600,
"SamplingRate": "1:4096 ",
"LogStoreName": "FlowLogStore",
"ProjectName": "FlowLogProject",
"InstanceType": "VBR",
"ResourceGroupId": "rg-aekzb3xwrexc4ry",
"Tags": [
{
"Key": "TagKey",
"Value": "TagValue"
}
],
"InstanceId": "vbr-9dpty76irpf4u15*****",
"CreationTime": "2023-09-21T04:20Z",
"SlsRegionId": "cn-hangzhou"
}
]
}Error codes
HTTP status code | Error code | Error message | Description |
400 | IncorrectStatus.Ecr | Ecr Status does not allow current operation. | The status of the express connect gateway instance does not allow the current operation. Currently, other operations are being performed or the express connect gateway instance is being deleted. Please try again later. |
400 | OperationDenied.ForceDeleting | The current instance is being deleted. | Your current operation is rejected and the leased line gateway instance is being forcibly deleted. Please try again later. |
400 | UnsupportedRegion | Feature not supported in specified region. | The specified region does not support the leased line gateway function. |
400 | IllegalParamFormat.%s | The param format of %s is illegal. | Illegal parameter format |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.