All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::VPC::FlowLog

Last Updated:Mar 20, 2024

DATASOURCE::VPC::FlowLog is used to query a flow log by log ID.

Syntax

{
  "Type": "DATASOURCE::VPC::FlowLog",
  "Properties": {
    "FlowLogId": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

FlowLogId

String

Yes

Yes

The ID of the flow log.

None.

Return values

Fn::GetAtt

  • FlowLogName: the name of the flow log.

  • Description: the description of the flow log.

  • LogStoreName: the name of the Logstore that is used to store the captured traffic.

  • ResourceId: the ID of the resource from which traffic is captured.

  • ProjectName: the name of the project that is used to manage the captured traffic.

  • CreateTime: the time when the flow log was created.

  • ResourceType: the type of the resource from which traffic is captured.

  • BusinessStatus: the business state.

  • FlowLogId: the ID of the flow log.

  • AggregationInterval: the interval at which data is aggregated.

  • TrafficType: the type of the captured traffic.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      FlowLogId:
        Description:
          en: The flow log ID.
        Required: true
        Type: String
    Resources:
      ExtensionDataSource:
        Properties:
          FlowLogId:
            Ref: FlowLogId
        Type: DATASOURCE::VPC::FlowLog
    Outputs:
      AggregationInterval:
        Description: Data aggregation interval.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - AggregationInterval
      BusinessStatus:
        Description: Business status.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - BusinessStatus
      CreateTime:
        Description: the time of creation.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - CreateTime
      Description:
        Description: The Description of flow log.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - Description
      FlowLogId:
        Description: The flow log ID.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - FlowLogId
      FlowLogName:
        Description: The flow log name.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - FlowLogName
      LogStoreName:
        Description: The log store name.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - LogStoreName
      ProjectName:
        Description: The project name.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - ProjectName
      ResourceId:
        Description: The resource id.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - ResourceId
      ResourceType:
        Description: The resource type.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - ResourceType
      TrafficType:
        Description: The traffic type.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - TrafficType
                            
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "FlowLogId": {
          "Type": "String",
          "Description": {
            "en": "The flow log ID."
          },
          "Required": true
        }
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::VPC::FlowLog",
          "Properties": {
            "FlowLogId": {
              "Ref": "FlowLogId"
            }
          }
        }
      },
      "Outputs": {
        "FlowLogName": {
          "Description": "The flow log name.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "FlowLogName"
            ]
          }
        },
        "Description": {
          "Description": "The Description of flow log.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Description"
            ]
          }
        },
        "LogStoreName": {
          "Description": "The log store name.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "LogStoreName"
            ]
          }
        },
        "ResourceId": {
          "Description": "The resource id.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "ResourceId"
            ]
          }
        },
        "ProjectName": {
          "Description": "The project name.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "ProjectName"
            ]
          }
        },
        "CreateTime": {
          "Description": "the time of creation.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "CreateTime"
            ]
          }
        },
        "ResourceType": {
          "Description": "The resource type.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "ResourceType"
            ]
          }
        },
        "BusinessStatus": {
          "Description": "Business status.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "BusinessStatus"
            ]
          }
        },
        "FlowLogId": {
          "Description": "The flow log ID.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "FlowLogId"
            ]
          }
        },
        "AggregationInterval": {
          "Description": "Data aggregation interval.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "AggregationInterval"
            ]
          }
        },
        "TrafficType": {
          "Description": "The traffic type.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "TrafficType"
            ]
          }
        }
      }
    }