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

Configuration Guide - Network Management and Monitoring

CloudEngine 12800 and 12800E V200R005C10

This document describes the configurations of Network Management and Monitoring, including SNMP, RMON, LLDP, NQA, Service Diagnosis, Mirroring, Packet Capture, sFlow, and NETCONF.
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).
RESTCONF Message Formats

RESTCONF Message Formats

RESTCONF is an HTTP-based protocol. Messages transmitted between a client and a server are HTTP packets, including request packets and response packets.

Request

A request is sent by a RESTCONF client to a RESTCONF server. It contains three parts: request line, request header, and request body, as shown in Figure 4-2.
Figure 4-2 Request format
Figure 4-3 URI format
Table 4-3 Request fields

Field

Description

Method

RESTCONF operation method, which acts upon the target resource specified in the request URI. For details, see RESTCONF Operation Methods.

URI

As shown in Figure 4-3, URI fields are as follows:
  • restconf: resource's root path, which is obtained from the well-known URI (/.well-known/host-meta).
  • path: resource's relative path, which is specified by the YANG model.
  • query: query parameters. For details, see Query Parameters.

HTTP/Version-number

HTTP protocol version.

Header-Name-n:value

Header field name: value.

Optional request body

(Optional) request message body.

Response

A response is returned by a RESTCONF server to a RESTCONF client in response to the client's request. A response also contains three parts: response line, response header, and response body, as shown in Figure 4-4.
Figure 4-4 Response format
Table 4-4 Response fields

Field

Description

HTTP/Version-number

HTTP protocol version.

Status code

HTTP status code. For details, see Status Codes.

Message

HTTP status message.

Header-Name-n:value

Header field name: value.

Optional request body

(Optional) Response message body.

Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100075344

Views: 19618

Downloads: 22

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