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 V200R005C10

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).
Query the IPv6 Address of an Interface

Query the IPv6 Address of an Interface

Operation

URI

Description

GET

/ifm/interfaces/interface/ifmAm6

Query the IPv6 address of an interface.

  • Request example
    <?xml version="1.0" encoding="UTF-8"?>
    <interfaces>
        <interface>
            <ifName>10GE1/0/1</ifName>
            <ifmAm6/>
        </interface>
    </interfaces>

    Table 9-54 describes elements in requests.

    Table 9-54 Elements

    Element

    Description

    ifName

    Specifies an interface name.

    ifmAm6

    Specifies IPv6 configurations.

  • Response example (XML format)
    <?xml version="1.0" encoding="UTF-8"?>
    <interfaces>
           <interface>
              <ifName>10GE1/0/1</ifName>
              <ifmAm6>
                <enableFlag>true</enableFlag>
                <ifMtu6>1500</ifMtu6>
                <autoLinkLocal>true</autoLinkLocal>
                <am6CfgAddrs>
                  <am6CfgAddr>
                    <ifIp6Addr>100::</ifIp6Addr>
                    <addrPrefixLen>64</addrPrefixLen>
                    <addrType6>global</addrType6>
                    <ifIDGenType>cga</ifIDGenType>
                    <collisionCount>0</collisionCount>
                  </am6CfgAddr>
                  <am6CfgAddr>
                    <ifIp6Addr>FE80::3ABA:4C00:654:4102</ifIp6Addr>
                    <addrPrefixLen>10</addrPrefixLen>
                    <addrType6>linkLocal</addrType6>
                    <ifIDGenType>none</ifIDGenType>
                    <collisionCount>0</collisionCount>
                  </am6CfgAddr>
                </am6CfgAddrs>
                <am6CgaInfos>
                  <am6CgaInfo>
                    <rsaKeyLabel>rsa</rsaKeyLabel>
                    <secLevel>1</secLevel>
                    <modifier>::</modifier>
                  </am6CgaInfo>
                </am6CgaInfos>
              </ifmAm6>
          </interface> 
    </interfaces>

    Table 9-55 describes elements in responses.

    Table 9-55 Elements

    Element

    Description

    ifName

    Specifies an interface name.

    ifmAm6

    Specifies IPv6 configurations.

    enableFlag

    Specifies whether IPv6 is enabled on a control interface.

    ifMtu6

    Specifies the MTU of an IPv6 interface.

    autoLinkLocal

    Specifies whether the automatic link-local address generation function is enabled on a control interface.

    am6CfgAddrs

    Specifies an IPv6 address list.

    am6CfgAddr

    Specifies an IPv6 address configuration.

    ifIp6Addr

    Specifies an IPv6 address.

    addrPrefixLen

    Specifies the length of an IPv6 prefix.

    addrType6

    Specifies an IPv6 address type.

    ifIDGenType

    Specifies an IPv6 address algorithm.

    collisionCount

    Specifies the number of times that IPv6 addresses conflict.

    am6CgaInfos

    Specifies a CGA address container.

    am6CgaInfo

    Specifies a CGA address instance.

    rsaKeyLabel

    Specifies an RSA key.

    secLevel

    Specifies a security level.

    modifier

    Specifies a CGA address modifier.

    Table 9-56 describes status codes in responses.

    Table 9-56 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-04-03

Document ID: EDOC1100075372

Views: 10436

Downloads: 16

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