华为乾坤-创建快速诊断任务:请求示例
时间:2025-02-17 11:38:48
请求示例
cURL的示例
curl -k -s -L -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Accept-Language: en-US' -H 'X-AUTH-TOKEN: x-yyyyyy' 'https://192.168.1.125:18002/rest/openapi/netslaservice/v1/quick-diagnosis' -d '{ "serviceId" : "11", "sourceNeDn" : "NE=40000038", "targetAddress" : "127.0.0.1", "icmpEchoParam" : { "vrfName" : "test", "probeCount" : 3, "interval" : 4, "timeout" : 3, "packetDataSize" : 500, "packetData" : "test", "maxTTL" : 30, "tos" : 0, "byPassRouteTable" : 2, "sourceAddressType" : 1, "sourceAddress" : "127.0.0.1", "ifIndex" : "" } }'
HTTP的示例
POST /rest/openapi/netslaservice/v1/quick-diagnosis HTTP/1.1 Host: 192.168.1.125:18002 Content-Type: application/json Accept: application/json Accept-Language: en-US X-AUTH-TOKEN: x-yyyyyy { "serviceId" : "11", "sourceNeDn" : "NE=40000038", "targetAddress" : "127.0.0.1", "icmpEchoParam" : { "vrfName" : "test", "probeCount" : 3, "interval" : 4, "timeout" : 3, "packetDataSize" : 500, "packetData" : "test", "maxTTL" : 30, "tos" : 0, "byPassRouteTable" : 2, "sourceAddressType" : 1, "sourceAddress" : "127.0.0.1", "ifIndex" : "" } }
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000002044583594.html