Trace-Share / Trace-API

Rest API to support processing of packet traces
GNU Affero General Public License v3.0
0 stars 1 forks source link

Update changelog #4

Open TomasMadeja opened 4 years ago

TomasMadeja commented 4 years ago

API

Dependencies

TomasMadeja commented 4 years ago
/mix/create
{
    name=<name>,
    description=<desc>,
    labels=[<label>],
    annotated_units=[
        {
            id_annotated_unit=<id>,
            ip_mapping=[
                {
                    "original" : <mac>,
                    "replacement" : <mac>
                }
            ],
            mac_mapping=[
                {
                    "original" : <mac>,
                    "replacement" : <mac>
                }
            ],
            port_mapping=[
                {
                    "ip":
                        "type": "old" 
                        "address": <ipaddr>
                    "port": 
                        "old": <portnum>
                        "new": <portnum>
                }
            ],
            timestamp=<number>
        }
    ]
}

/unit/normalize
{
    "id_unit": <id>,
    "mac_mapping": [
        {
            "mac" : <macaddr>,
            "ips" : [
                <ipaddr>
            ]
        }
    ],
    "ips": {
        "target_nodes": [
            <ipaddr>
        ],
        "intermediate_nodes": [
            <ipaddr>
        ],
        "source_nodes": [
            <ipaddr>
        ]
    },
    "tcp_timestamp_mapping": [
        {
            "ip" : <ipaddr>,
            "min" : <number>
        }
    ]
}