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).
FTP Client

FTP Client

Transfer Files Through FTP

Operation

URI

Description

POST

/ftpc/ftpcTransferFiles/ftpcTransferFile

Transfer files through FTP.

  • Request example
    <?xml version="1.0" encoding="UTF-8"?> 
    <ftpcTransferFile> 
    <serverIpv4Address>10.0.0.1</serverIpv4Address> 
    <commandType>get</commandType> 
    <userName>username</userName> 
    <password>password</password> 
    <localFileName>cfcard:/VRPV8.cc</localFileName> 
    <remoteFileName>image/VRPV8.cc</remoteFileName> 
    </ftpcTransferFile>

    Table 11-1 describes elements in requests

    Table 11-1 Elements

    Element

    Description

    serverIpv4Address

    Specifies the IPv4 address of the file server. This element is mandatory.

    commandType

    Specifies the file transfer operation, such as Get or Put. This element is mandatory.

    userName

    Specifies the user name of the file server.

    password

    Specifies the user password of the file server.

    localFileName

    Specifies the name of the local file.

    remoteFileName

    Specifies the name of the remote file.

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

    Table 11-2 describes status codes in responses.

    Table 11-2 Status codes in responses

    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.

    FTP file Transmission Directory

Operation

URI

Description

GET

/ftpc/ftpcDirs/ftpcDir

Display the FTP file transmission directory.

  • Request example
    <?xml version="1.0" encoding="UTF-8"?> 
    <ftpcDir> 
    <serverIpv4Address>10.0.0.1</serverIpv4Address> 
    <userName>root</userName> 
    <password>password</password> 
    <dirName>/opt/</dirName> 
    <dirInfo></dirInfo> 
    </ftpcDir>

    Table 11-3 describes elements in requests.

    Table 11-3 Elements

    Element

    Description

    serverIpv4Address

    Specifies the IPv4 address of the file server.

    serverPort

    Specifies the server port on which the dir command is run.

    sourceIpv4Address

    Specifies the IPv4 address of the file client.

    userName

    Specifies the user name of the file server. This element is mandatory.

    password

    Specifies the user password of the file server. This element is mandatory.

    vpnInstanceName

    Specifies the name of a VPN used to connect to the server.

    sourceInterfaceName

    Specifies the name of a source interface used to display the directory content.

    dirName

    Specifies the name of a directory.

    dirInfo

    Displays the content of a directory.

  • Response example (XML format)
    <?xml version="1.0" encoding="UTF-8"?> <ftpcDir>
      <serverIpv4Address>189.58.144.58</serverIpv4Address>
      <userName>root</userName>
      <password></password>
      <dirName>/opt/</dirName>
      <dirInfo>/opt/VRPV800R012C00B297.rpg</dirInfo>
    </ftpcDir>

    Table 11-4 describes status codes in responses.

    Table 11-4 Status codes in responses

    Status Code

    Description

    200 OK

    The operation succeeded.

    400 Bad Request

    The request cannot be implemented because the request is incorrect in syntax or the information attribute in the request is incorrect.

    500 Internal Server Error

    Internal errors in services cause a request failure or an unidentified request.

Translation
Download
Updated: 2019-04-03

Document ID: EDOC1100075372

Views: 12862

Downloads: 18

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