> elem: name: "config" > > val: bool_val: "{ \"enable-flow-control\":true }" > > Errors are reported using the status.proto message in the RPC return message. gNMI GET Request The gNMI Get RPC specifies how to retrieve one or more of the configuration attributes, state attributes, derived state attributes, or all attributes associated with a supported mode from a date tree. A GetRequest is sent from a client to the target to retrieve values from the data tree. A GetResponse is sent in response to a GetRequest. GetRequest JSON Structure The following is a sample GetRequest JSON structure. Both the GetRequest and GetResponse are displayed.
GetRequest The following is a path for the openconfig-interfaces model ++++++++ Sending get request: ++++++++ path { elem { name: "interfaces" } elem { name: "interface" key { key: "name" value: "Loopback111" } } } GetResponse encoding: JSON_IETF ++++++++ Received get response: ++++++++ notification { timestamp: 1521699434792345469 update { path { elem { name: "interfaces" } elem { name: "interface" key { key: "name" value: "\"Loopback111\"" } gNMI Protocol gNMI GET Request gNMI Protocol 5