调用RemoveSourcesFromTrafficMirrorSession接口删除镜像会话中的镜像源。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | RemoveSourcesFromTrafficMirrorSession |
系统规定参数。取值:RemoveSourcesFromTrafficMirrorSession。 |
ClientToken | String | 否 | 0c593ea1-3bea-11e9-b96b-88e9fe63**** |
客户端Token,用于保证请求的幂等性。 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符。 说明 若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId可能不一样。
|
DryRun | Boolean | 否 | false |
是否只预检此次请求,取值:
|
TrafficMirrorSessionId | String | 是 | tms-j6cla50buc44ap8tu**** |
需要删除镜像源的镜像会话实例ID。 |
RegionId | String | 是 | cn-hongkong |
镜像会话的所属地域ID。您可以通过调用DescribeRegions接口获取地域ID。关于流量镜像支持的地域,请参见流量镜像概述。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | A33B2C6A-89D1-4DEA-A807-A6E8CC552484 |
请求ID。 |
示例
请求示例
http(s)://[Endpoint]/?Action=RemoveSourcesFromTrafficMirrorSession
&RegionId=cn-hongkong
&TrafficMirrorSessionId=tms-j6cla50buc44ap8tu****
&TrafficMirrorSourceIds.1=eni-j6c8znm5l1yt4sox****
&<公共请求参数>
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<RemoveSourcesFromTrafficMirrorSessionResponse>
<RequestId>A33B2C6A-89D1-4DEA-A807-A6E8CC552484</RequestId>
</RemoveSourcesFromTrafficMirrorSessionResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "A33B2C6A-89D1-4DEA-A807-A6E8CC552484"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | IncorrectBusinessStatus.TrafficMirror | The business status of traffic mirror is incorrect. | 流量镜像的商业状态不正确。 |
400 | OptInRequired.TrafficMirror | You need to subscribe to the traffic mirror service first. | 未开通流量镜像服务。 |
400 | DuplicatedParam.SourceInstanceIds | The parameter of source instance IDs contains duplicate values. | 流量镜像源实例ID参数中包含重复值。 |
400 | ResourceNotFound.TrafficMirrorSession | The specified resource of traffic mirror session is not found. | 指定的流量镜像会话不存在。 |
400 | IncorrectStatus.TrafficMirrorSession | The status of traffic mirror session is incorrect. | 流量镜像会话状态不正确。 |
400 | ResourceNotAssociated.TrafficMirrorSource | The specified traffic mirror source and session are not associated. | 指定的流量镜像源和会话不存在绑定关系。 |
400 | ResourceNotFound.NetworkInterface | The specified resource of network interface is not found. | 指定的网卡不存在。 |
400 | ResourceNotFound.EcsInstance | The specified resource of ECS instance is not found. | 指定的ECS实例不存在。 |
访问错误中心查看更多错误码。