Traceflow Resource Service Create

Traceflow Resource Service Create

Create a Traceflow.

Request
URI
POST
https://{api_host}/https://your_org.tmc.cloud.vmware.com/v1alpha1/clusters/{traceflow.fullName.clusterName}/network/antrea/traceflows
COPY
Path Parameters
string
traceflow.fullName.clusterName
Required

Name of Cluster.


Request Body
{
    "traceflow": {
        "fullName": {
            "orgId": "string",
            "managementClusterName": "string",
            "provisionerName": "string",
            "clusterName": "string",
            "name": "string"
        },
        "type": {
            "kind": "string",
            "version": "string",
            "package": "string"
        },
        "meta": {
            "uid": "string",
            "generation": "string",
            "resourceVersion": "string",
            "creationTime": "string",
            "updateTime": "string",
            "description": "string",
            "parentReferences": [
                {
                    "rid": "string",
                    "uid": "string"
                }
            ]
        },
        "spec": {
            "source": {
                "namespace": "string",
                "pod": "string",
                "ip": "string"
            },
            "destination": {
                "namespace": "string",
                "pod": "string",
                "service": "string",
                "ip": "string"
            },
            "packet": {
                "srcIP": "string",
                "dstIP": "string",
                "length": 0,
                "ipHeader": {
                    "srcIP": "string",
                    "protocol": 0,
                    "ttl": 0,
                    "flags": 0
                },
                "ipv6Header": {
                    "srcIP": "string",
                    "nextHeader": 0,
                    "hopLimit": 0
                },
                "transportHeader": {
                    "icmp": {
                        "id": 0,
                        "sequence": 0
                    },
                    "udp": {
                        "srcPort": 0,
                        "dstPort": 0
                    },
                    "tcp": {
                        "srcPort": 0,
                        "dstPort": 0,
                        "flags": 0
                    }
                }
            },
            "liveTraffic": false,
            "droppedOnly": false,
            "timeout": 0
        },
        "status": {
            "phase": "string",
            "reason": "string",
            "startTime": "string",
            "dataplaneTag": 0,
            "results": [
                {
                    "node": "string",
                    "role": "string",
                    "timestamp": "string",
                    "observations": [
                        {
                            "component": "string",
                            "componentInfo": "string",
                            "action": "string",
                            "pod": "string",
                            "dstMAC": "string",
                            "networkPolicy": "string",
                            "ttl": 0,
                            "translatedSrcIP": "string",
                            "translatedDstIP": "string",
                            "tunnelDstIP": "string"
                        }
                    ]
                }
            ],
            "capturedPacket": {
                "srcIP": "string",
                "dstIP": "string",
                "length": 0,
                "ipHeader": {
                    "srcIP": "string",
                    "protocol": 0,
                    "ttl": 0,
                    "flags": 0
                },
                "ipv6Header": {
                    "srcIP": "string",
                    "nextHeader": 0,
                    "hopLimit": 0
                },
                "transportHeader": {
                    "icmp": {
                        "id": 0,
                        "sequence": 0
                    },
                    "udp": {
                        "srcPort": 0,
                        "dstPort": 0
                    },
                    "tcp": {
                        "srcPort": 0,
                        "dstPort": 0,
                        "flags": 0
                    }
                }
            }
        }
    }
}
Responses
200

A successful response.

{
    "traceflow": {
        "fullName": {
            "orgId": "string",
            "managementClusterName": "string",
            "provisionerName": "string",
            "clusterName": "string",
            "name": "string"
        },
        "type": {
            "kind": "string",
            "version": "string",
            "package": "string"
        },
        "meta": {
            "uid": "string",
            "generation": "string",
            "resourceVersion": "string",
            "creationTime": "string",
            "updateTime": "string",
            "description": "string",
            "parentReferences": [
                {
                    "rid": "string",
                    "uid": "string"
                }
            ]
        },
        "spec": {
            "source": {
                "namespace": "string",
                "pod": "string",
                "ip": "string"
            },
            "destination": {
                "namespace": "string",
                "pod": "string",
                "service": "string",
                "ip": "string"
            },
            "packet": {
                "srcIP": "string",
                "dstIP": "string",
                "length": 0,
                "ipHeader": {
                    "srcIP": "string",
                    "protocol": 0,
                    "ttl": 0,
                    "flags": 0
                },
                "ipv6Header": {
                    "srcIP": "string",
                    "nextHeader": 0,
                    "hopLimit": 0
                },
                "transportHeader": {
                    "icmp": {
                        "id": 0,
                        "sequence": 0
                    },
                    "udp": {
                        "srcPort": 0,
                        "dstPort": 0
                    },
                    "tcp": {
                        "srcPort": 0,
                        "dstPort": 0,
                        "flags": 0
                    }
                }
            },
            "liveTraffic": false,
            "droppedOnly": false,
            "timeout": 0
        },
        "status": {
            "phase": "string",
            "reason": "string",
            "startTime": "string",
            "dataplaneTag": 0,
            "results": [
                {
                    "node": "string",
                    "role": "string",
                    "timestamp": "string",
                    "observations": [
                        {
                            "component": "string",
                            "componentInfo": "string",
                            "action": "string",
                            "pod": "string",
                            "dstMAC": "string",
                            "networkPolicy": "string",
                            "ttl": 0,
                            "translatedSrcIP": "string",
                            "translatedDstIP": "string",
                            "tunnelDstIP": "string"
                        }
                    ]
                }
            ],
            "capturedPacket": {
                "srcIP": "string",
                "dstIP": "string",
                "length": 0,
                "ipHeader": {
                    "srcIP": "string",
                    "protocol": 0,
                    "ttl": 0,
                    "flags": 0
                },
                "ipv6Header": {
                    "srcIP": "string",
                    "nextHeader": 0,
                    "hopLimit": 0
                },
                "transportHeader": {
                    "icmp": {
                        "id": 0,
                        "sequence": 0
                    },
                    "udp": {
                        "srcPort": 0,
                        "dstPort": 0
                    },
                    "tcp": {
                        "srcPort": 0,
                        "dstPort": 0,
                        "flags": 0
                    }
                }
            }
        }
    }
}

default

An unexpected error response.

Returns grpc.gateway.runtime.Error of type(s) */*
{
    "error": "string",
    "code": 0,
    "message": "string",
    "details": [
        {
            "typeUrl": "string",
            "value": "string"
        }
    ]
}