虚拟私有云 VPC-创建流日志:请求示例

时间:2024-10-12 09:48:13

请求示例

  • 创建流日志,日志采集的资源类型为port,资源id为05c4052d-8d14-488f-aa00-19fea5a25fde,日志采集类型为reject,日志组id为05c4052d-8d14-488f-aa00-19fea5a25fdd,日志主题id为a9d7dee7-37d2-4cba-a208-a016252aaa63。
    POST https://{Endpoint}/v1/b2782e6708b8475c993e6064bc456bf8/fl/flow_logs
    
    {
        "flow_log": {
            "name": "flowlog",
            "description": "just a test",
            "resource_type": "port",
            "resource_id": "05c4052d-8d14-488f-aa00-19fea5a25fde",
            "traffic_type": "reject",
            "log_group_id": "05c4052d-8d14-488f-aa00-19fea5a25fdd",
            "log_topic_id": "a9d7dee7-37d2-4cba-a208-a016252aaa63"
        }
    }

support.huaweicloud.com/api-vpc/vpc_flow_0001.html