Querying a VPC Flow Log
Function
This API is used to query a VPC flow log.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
vpc:flowLogs:get
Read
flowLog *
- vpc:FlowLogId
- vpc:FlogLogResourceType
-
-
URI
GET /v1/{project_id}/fl/flow_logs/{flowlog_id}
Table 1 describes the parameters.
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID. |
|
flowlog_id |
Yes |
String |
Flow log ID |
Request Parameters
None
Example Request
GET https://{Endpoint}/v1/b2782e6708b8475c993e6064bc456bf8/fl/flow_logs/1e10cd9d-742a-4d36-a9fd-aee9784336ff
Response Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
flow_log |
flow_log object |
FlowLog objects. For details, see Table 3. |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
|
|
name |
String |
|
|
tenant_id |
String |
|
|
description |
String |
|
|
resource_type |
String |
|
|
resource_id |
String |
|
|
traffic_type |
String |
|
|
log_group_id |
String |
|
|
log_topic_id |
String |
|
|
log_store_type |
String |
|
|
admin_state |
Boolean |
|
|
status |
String |
|
|
created_at |
String |
|
|
updated_at |
String |
|
Example Response
{
"flow_log": {
"id": "35868d55-443e-4d5c-90a4-ac618dc45c1a",
"name": "flow",
"description": "just a test",
"tenant_id": "b2782e6708b8475c993e6064bc456bf8",
"resource_type": "port",
"resource_id": "05c4052d-8d14-488f-aa00-19fea5a25fde",
"traffic_type": "reject",
"log_group_id": "05c4052d-8d14-488f-aa00-19fea5a25fff",
"log_topic_id": "a9d7dee7-37d2-4cba-a208-a016252aaa63",
"log_store_type": "lts",
"created_at": "2019-01-14T11:03:02",
"updated_at": "2019-01-14T11:03:02",
"status": "ACTIVE",
"admin_state": true
}
}
Status Code
See Status Codes.
Error Code
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot