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)
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
Options
- Ahttps://10.200.200.216:443/restconf/data/Cisco-IOS-XE-native:native/interface/GigabitEthernet=1%2F0%2F1
- Bhttp://10.200.200.216:80/restconf/data/Cisco-IOS-XE-native:native/interface/GigabitEthernet1%2F0%2F1
- Chttps://10.200.200.216:443/restconf/data/Cisco-IOS-XE-native:native/interface-GigabitEthernet/1/0/1
- Dhttp://10.200.200.216:80/restconf/data/Cisco-IOS-XE-native:native/interface/GigabitEthernet=1/0/1
How the community answered
(23 responses)- A83% (19)
- B4% (1)
- C4% (1)
- D9% (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
Community Discussion
No community discussion yet for this question.
