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).
Configure SSH Servers

Configure SSH Servers

Operation

URI

Description

PUT

/sshs/sshServer

Configure SSH servers.

  • Request example:
    <?xml version="1.0" encoding="UTF-8"?>
    <sshServer>
        <portNumber>22</portNumber>
        <authenticationTimeout>90</authenticationTimeout>
        <rekeyInterval>2</rekeyInterval>
        <keepAliveEnable>Enable</keepAliveEnable>
        <compatibleSsh1x>Disable</compatibleSsh1x> 
        <stelnetEnable>Enable</stelnetEnable>
        <sftpEnable>Enable</sftpEnable>
        <sftpMaxUser>10</sftpMaxUser>
        <sftpTimeoutMin>1</sftpTimeoutMin>
        <sftpTimeoutSec>30</sftpTimeoutSec>
        <snetconfEnable>Enable</snetconfEnable>
        <sshAuthDefPass>Disable</sshAuthDefPass>
        <authRetries>4</authRetries>
        <scpEnable>Enable</scpEnable>
        <scpMaxsession>5</scpMaxsession>
        <snetconfPortEnable>Enable</snetconfPortEnable>
        <desEnable>Enable</desEnable>
    </sshServer>

    Table 13-23 describes elements in requests.

    Table 13-23 Elements

    Element

    Description

    portNumber

    Specifies the number of the port that the SSH server monitors. The port number can be either 22 or an integer ranging from 1025 to 65535.

    sshacl4Num

    Specifies an ACL number for IPv4 protocols. The value is an integer ranging from 2000 to 3999.

    sshacl4Name

    Specifies an ACL name for IPv4 protocols. The value is a string of 1 to 32 characters.

    sshacl6Num

    Specifies an ACL number for IPv6 protocols. The value is an integer ranging from 2000 to 3999.

    sshacl6Name

    Specifies an ACL name for IPv6 protocols. The value is a string of 1 to 32 characters.

    authenticationTimeout

    Specifies the timeout period of an SSH connection. The value ranges between 1 to 120 seconds.

    rekeyInterval

    Specifies an interval at which the key pair of the SSH server is updated. The value ranges between 0 to 24 hours.

    keepAliveEnable

    Specifies whether to enable the keepalive feature on the SSH server.

    compatibleSsh1x

    Specifies the status of the version-compatible function on the SSH server.

    stelnetEnable

    Specifies whether to enable the STelnet service on the SSH server.

    sftpEnable

    Specifies whether to enable the SFTP service on the SSH server.

    sftpMaxUser

    Specifies the maximum number of sessions for SFTP. The value ranges from 0 to 15.

    sftpTimeoutMin

    Specifies a timeout period, in minutes. The value ranges from 0 to 35791 minutes.

    sftpTimeoutSec

    Specifies a timeout period, in seconds. The value ranges from 0 to 59 seconds.

    snetconfEnable

    Specifies whether to enable the SNETCONF service on the SSH server.

    sshAuthDefPass

    Specifies password authentication as the default authentication mode for SSH users.

    authRetries

    Specifies the number of retries to authenticate an SSH connection. The value ranges from 1 to 5.

    scpEnable

    Specifies whether to enable the SCP service on the SSH server.

    scpMaxsession

    Specifies the maximum number of SCP clients that can be connected to the SSH server. The value ranges from 0 to 5.

    snetconfPortEnable

    Specifies whether to establish a NETCONF connection on the well-known port 830.

    desEnable

    Specifies whether to enable the DES encryption algorithm on the SSH server.

    rsaHostKey

    Specifies an RSA host key as the key to be assigned to the SSH server.

    rsaServerKey

    Specifies an RSA server key as the key to be assigned to the SSH server.

    dsaHostKey

    Specifies a DSA host key as the key to be assigned to the SSH server.

    eccHostKey

    Specifies an ECC host key as the key to be assigned to the SSH server.

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

    Table 13-24 describes status codes in responses.

    Table 13-24 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.

Configure SNETCONF Servers

Operation

URI

Description

PUT

/sshs/sshServer/snetconfEnable

Configure SNETCONF Servers.

  • Request example
    <?xml version="1.0" encoding="UTF-8"?>
    <snetconfEnable>Enable</snetconfEnable>

    Table 13-25 describes elements in requests.

    Table 13-25 Elements

    Elements

    Description

    snetconfEnable

    Enables or disable the SNETCONF service of a SSH server.

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

    Table 13-26 describes status codes in responses.

Table 13-26 Status Code

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: 10715

Downloads: 16

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