nerdexam
Cisco

200-901 · Question #448

Refer to the exhibit. An administrator uses RESTCONF to retrieve the interface configuration of Gi1/0/1. Which URL path retrieves filtered information only for Gi1/0/1? A. B. C. D.

The correct answer is A. https://10.200.200.216:443/restconf/data/Cisco-IOS-XE-native:native/interface/GigabitEthernet=1%2F0%2F1. A valid RESTCONF URL for a specific list instance requires three things: (1) HTTPS on port 443 for security - HTTP on port 80 (B, D) is incorrect; (2) an equals sign (=) to separate the list node from its key value - a missing '=' (B) or using dashes (C) is wrong syntax; and (3)

Understanding and Using APIs

Question

Refer to the exhibit. An administrator uses RESTCONF to retrieve the interface configuration of Gi1/0/1. Which URL path retrieves filtered information only for Gi1/0/1? A. B. C. D.

Exhibit

200-901 question #448 exhibit

Options

How the community answered

(23 responses)
  • A
    83% (19)
  • B
    4% (1)
  • C
    4% (1)
  • D
    9% (2)

Explanation

A valid RESTCONF URL for a specific list instance requires three things: (1) HTTPS on port 443 for security - HTTP on port 80 (B, D) is incorrect; (2) an equals sign (=) to separate the list node from its key value - a missing '=' (B) or using dashes (C) is wrong syntax; and (3) URL-encoding of forward slashes in the interface name - '/' must be encoded as '%2F' since slashes are path delimiters in URLs. Option A satisfies all three requirements: HTTPS/443, '=1%2F0%2F1' as the properly encoded key.

Topics

#RESTCONF#API Query/Filtering#URL Path Construction#Network Automation

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice