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 12800 and 12800E V200R003C00

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-507 describes elements in a request.

    Table 3-507  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-508 describes status codes in a response.

    Table 3-508  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-509 describes elements in a request.

    Table 3-509  Elements

    Element

    Description

    bdId

    Specifies a BD ID.

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

      Table 3-510 describes status codes in a response.

      Table 3-510  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-511 describes elements in a request.

      Table 3-511  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-512 describes status codes in a response.

      Table 3-512  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-513 describes elements in a request.

    Table 3-513  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-514 shows elements in responses.

    Table 3-514  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-515 describes status codes in a response.

    Table 3-515  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-516 describes elements in requests.

    Table 3-516  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-517 shows elements in responses.

    Table 3-517  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-518 describes status codes in responses.

    Table 3-518  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-05-05

Document ID: EDOC1100004147

Views: 60768

Downloads: 28

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next