所选语种没有对应资源,请选择:

本站点使用Cookies,继续浏览表示您同意我们使用Cookies。Cookies和隐私政策>

提示

尊敬的用户,您的IE浏览器版本过低,为获取更好的浏览体验,请升级您的IE浏览器。

升级

CloudEngine 12800, 12800E V200R005C10 RESTful API参考

本文档介绍了设备支持的OPS API,内容包含OPS 支持的操作、请求示例、请求中元素说明、响应示例、响应中元素说明和响应状态码说明。
评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
配置VLAN绑定BD

配置VLAN绑定BD

操作

URI

描述

POST

/evc/bds/bd

配置VLAN绑定BD。

I. 创建BD的同时绑定。

  • 请求示例:
    <?xml version="1.0" encoding="UTF-8"?>
        <bd operation="create">
            <bdId>10</bdId>
            <bdDesc/>
            <statistic>disable</statistic>
            <macLearn>enable</macLearn>
            <bdBindVlan>
                <vlanList>0020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000:0020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</vlanList>
            </bdBindVlan>
        </bd>

    请求中元素说明如表17-45所示。

    表17-45 请求中元素说明

    元素

    描述

    bdId

    指定BD的ID。

    vlanList

    BD绑定VLAN,BITMAP类型。

  • 响应示例(XML格式):
    <?xml version="1.0" encoding="UTF-8"?> 
    <ok/>

    响应状态码说明如表17-46所示。

    表17-46 响应状态码说明

    状态码

    描述

    200 OK

    操作执行成功。

    400 Bad Request

    无法执行请求操作,请求消息语法错误,或者请求消息中信息的属性不合法。

    500 Internal Server Error

    服务的各种内部异常导致请求操作失败,或者无法识别的处理异常。

    II. 先创建BD,再绑定VLAN。

    请求示例:
    <?xml version="1.0" encoding="UTF-8"?>
    <bds>
        <bd operation="create">
            <bdId>11</bdId>
            <bdDesc/>
            <statistic>disable</statistic>   
            <macLearn>enable</macLearn>
            <bdBindVlan>
                <vlanList/>
            </bdBindVlan>
        </bd>
    </bds>

    请求中元素说明如表17-47所示。

    表17-47 请求中元素说明

    元素

    描述

    bdId

    指定BD的ID。

    • 响应示例(XML格式):
      <?xml version="1.0" encoding="UTF-8"?> 
      <ok/>

      响应状态码说明如表17-48所示。

      表17-48 响应状态码说明

      状态码

      描述

      200 OK

      操作执行成功。

      400 Bad Request

      无法执行请求操作,请求消息语法错误,或者请求消息中信息的属性不合法。

      500 Internal Server Error

      服务的各种内部异常导致请求操作失败,或者无法识别的处理异常。

    • 请求示例:
      <?xml version="1.0" encoding="UTF-8"?>
      <bds>
          <bd operation="merge">
              <bdId>11</bdId>
              <bdBindVlan>
              <vlanList>0010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000:0010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</vlanList>
              </bdBindVlan>
          </bd>
      </bds>

      请求中元素说明如表17-49所示。

      表17-49 请求中元素说明

      元素

      描述

      bdId

      指定BD的ID。

      vlanList

      BD绑定VLAN,BITMAP类型。

    • 响应示例(XML格式):
      <?xml version="1.0" encoding="UTF-8"?> 
      <ok/>

      响应状态码说明如表17-50所示。

      表17-50 响应状态码说明

      状态码

      描述

      200 OK

      操作执行成功。

      400 Bad Request

      无法执行请求操作,请求消息语法错误,或者请求消息中信息的属性不合法。

      500 Internal Server Error

      服务的各种内部异常导致请求操作失败,或者无法识别的处理异常。

翻译
下载文档
更新时间:2019-04-03

文档编号:EDOC1100075559

浏览量:2553

下载量:44

平均得分:
本文档适用于这些产品
相关文档
相关版本
分享
上一页 下一页