No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

RESTful API Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes the OPS APIs supported by the device, including OPS-supported operations, request examples, elements in the requests, response examples, elements in the responses, and response status codes.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Bind a BD to a VLAN

Bind a BD to a VLAN

Bind a BD to a VLAN

Operation

URI

Description

POST

/evc/bds/bd

Bind a BD to a VLAN.

I. Create a BD and bind it to a VLAN at the same time.

  • Request example
    <?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>

    Table 3-480 describes elements in a request.

    Table 3-480  Elements

    Element

    Description

    bdId

    Specifies a BD ID.

    vlanList

    Specifies the VLAN to which the BD is bound. The value is of a Bitmap type.

  • Response example (XML format)
    <?xml version="1.0" encoding="UTF-8"?> 
    <ok/>

    Table 3-481 describes status codes in a response.

    Table 3-481  Status codes

    Status Code

    Description

    200 OK

    The operation succeeded.

    400 Bad Request

    The request operation failed because the request is incorrect in syntax or the information attribute in the request is incorrect.

    500 Internal Server Error

    The request operation failed because of internal errors in services or unidentified processing errors.

    II. Create a BD and then bind it to a VLAN.

    Request example
    <?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>

    Table 3-482 describes elements in a request.

    Table 3-482  Elements

    Element

    Description

    bdId

    Specifies a BD ID.

    • Response example (XML format)
      <?xml version="1.0" encoding="UTF-8"?> 
      <ok/>

      Table 3-483 describes status codes in a response.

      Table 3-483  Status codes

      Status Code

      Description

      200 OK

      The operation succeeded.

      400 Bad Request

      The request operation failed because the request is incorrect in syntax or the information attribute in the request is incorrect.

      500 Internal Server Error

      The request operation failed because of internal errors in services or unidentified processing errors.

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

      Table 3-484 describes elements in a request.

      Table 3-484  Elements

      Element

      Description

      bdId

      Specifies a BD ID.

      vlanList

      Specifies the VLAN to which the BD is bound. The value is of a Bitmap type.

    • Response example (XML format)
      <?xml version="1.0" encoding="UTF-8"?> 
      <ok/>

      Table 3-485 describes status codes in a response.

      Table 3-485  Status codes

      Status Code

      Description

      200 OK

      The operation succeeded.

      400 Bad Request

      The request operation failed because the request is incorrect in syntax or the information attribute in the request is incorrect.

      500 Internal Server Error

      The request operation failed because of internal errors in services or unidentified processing errors.

Query the VLAN Bound to a BD

Operation

URI

Description

GET

/evc/bds/bd

Query the VLAN bound to a BD.

  • Request example
    <?xml version="1.0" encoding="UTF-8"?>
        <bd>
            <bdId>10</bdId>
            <bdDesc/>
            <statistic/>
            <macLearn/>
            <vbdif>
                <ifName/>
            </vbdif>
            <bdStatistics>
            <inboundPackets/>
            <inboundBytes/>
            <outboundPackets/>
            <outboundBytes/>
            </bdStatistics>
            <bdBindVlan>
                <vlanList/>
            </bdBindVlan>
        </bd>

    Table 3-486 describes elements in a request.

    Table 3-486  Elements

    Element

    Description

    bdId

    Specifies a BD ID.

    vlanList

    Specifies the VLAN to which the BD is bound. The value is of a Bitmap type.

  • Response example (XML format)
    <?xml version="1.0" encoding="UTF-8"?>
    <bds>
        <bd>
            <bdId>10</bdId>
            <bdDesc></bdDesc>
            <macLearn>enable</macLearn>
            <statistic>disable</statistic>
            <bdBindVlan>
            <vlanList>4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</vlanList>
            </bdBindVlan>
        </bd>
    </bds>

    Table 3-487 shows elements in responses.

    Table 3-487  Elements

    Element

    Description

    bdId

    Specifies a BD ID.

    vlanList

    Specifies the VLAN to which the BD is bound. The value is of a Bitmap type.

    Table 3-488 describes status codes in a response.

    Table 3-488  Status codes

    Status Code

    Description

    200 OK

    The operation succeeded.

    400 Bad Request

    The request operation failed because the request is incorrect in syntax or the information attribute in the request is incorrect.

    500 Internal Server Error

    The request operation failed because of internal errors in services or unidentified processing errors.

Delete the Binding Between a VLAN and a BD

Operation

URI

Description

POST

/evc/bds/bd

Delete the binding between a VLAN and a BD.

  • Request example
    <?xml version="1.0" encoding="UTF-8"?>
        <bd operation="merge">
            <bdId>10</bdId>
            <bdBindVlan>
                <vlanList>0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000:0020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</vlanList>
            </bdBindVlan>
        </bd>

    Table 3-489 describes elements in requests.

    Table 3-489  Elements

    Element

    Description

    vlanId

    Specifies a VLAN ID.

    cfgBand

    Specifies the bandwidth for a VLANIF interface.

    dampTime

    Specifies a delay after which a VLANIF interface goes Down.

  • Response example (XML format)
    <?xml version="1.0" encoding="UTF-8"?>
    <vlans>
        <vlan>
            <vlanId>1</vlanId>
            <vlanif>
                <ifName>Vlanif1</ifName>
                <cfgBand>2</cfgBand>
                <dampTime>2</dampTime>
            </vlanif>
        </vlan>
    </vlans>

    Table 3-490 shows elements in responses.

    Table 3-490  Elements

    Element

    Description

    bdId

    Specifies a BD ID.

    vlanList

    Specifies a list of VLANs to which a BD is bound. The value is a BITMAP type.

    Table 3-491 describes status codes in responses.

    Table 3-491  Status codes

    Status Code

    Description

    200 OK

    The operation succeeded.

    400 Bad Request

    The request operation failed because the request is incorrect in syntax or the information attribute in the request is incorrect.

    500 Internal Server Error

    The request operation failed because of internal errors in services or unidentified processing errors.

Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166567

Views: 28085

Downloads: 123

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next