更新流量镜像会话
所有文档
menu

网络诊断服务 NDS

更新流量镜像会话

描述

更新流量镜像会话实例的配置信息。

请求结构

Plain Text
1PUT /v{version}/traffic/mirror/session/{trafficMirrorSessionId}?{action}&clientToken={clientToken} HTTP/1.1   
2Host: nds.bj.baidubce.com      
3Authorization: authorization string
4{
5    "name":{name},
6    "description":{description},
7    "trafficMirrorRuleGroupId":{trafficMirrorRuleGroupId},
8    "vni":{vni},
9    "packetLength":{packetLength}
10}

请求头域

除公共头域外,无其它特殊头域。

请求参数

参数名称
类型
是否必需
参数位置
描述
version String URL参数 API版本号,当前取值为1
clientToken String Query参数 幂等性Token,是一个长度不超过64位的ASCII字符串
trafficMirrorSessionId String URL参数 流量镜像会话实例ID
action String Query参数 本接口该值为modifyAttribute
name String RequestBody参数 流量镜像会话的名称,限制:大小写字母、数字,中文以及-_/.特殊字符,必须以字母、中文开头,长度1-65
description String RequestBody参数 流量镜像会话的描述,长度1-200
trafficMirrorRuleGroupId String RequestBody参数 筛选条件ID
vni Integer RequestBody参数 VXLAN Network Identifier,用来区分不同的镜像流量,取值范围1~16777215
packetLength Integer RequestBody参数 数据包长度,镜像的每个数据包中的字节数,取值范围0或者100~1500,0代表镜像这个会话

返回头域

除公共头域,无其它特殊头域。

返回参数

无特殊返回参数。

请求示例

Plain Text
1PUT /v1/traffic/mirror/session/ms-w2d4kgc3x0y1?modifyAttribute&clientToken=1849ef6b-f73c-4f5d-b88b-259ca47af849 HTTP/1.1
2Host: nds.bj.baidubce.com
3Authorization: bce-auth-v1/c3119080364d11e8912505e5e0ae9978/2019-04-02T08:14:25Z/3600/host;x-bce-account;x-bce-client-ip;x-bce-date;x-bce-request-id;x-bce-security-token/6b93bfd5ca2328fcb5560fa57f56253d80a629f6aac9c9cb74adf9a055fceb53
4{
5    "name":"mirrorInstance",
6    "description":"this is a desc",
7    "trafficMirrorRuleGroupId": "rg-unzyuaviqnxc",
8	"vni": 1,
9	"packetLength": 300
10}

返回示例

Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 7e789a40-adac-414a-8bd4-916d6be61112
3Date: Mon, 02 Apr 2019 08:14:25 GMT
4Content-Type: application/json;charset=UTF-8
5Server: BWS
上一篇
删除流量镜像会话
下一篇
查询流量镜像会话列表