Refer to the exhibit.
OR
An administrator attempts to perform a GET using the Cisco IOS XE RESTOCNF API to return the hostname of a device. The sequence diagram illustrated the HTTP message observed. Which change to the API request resolves the issue?
The issue shown in the sequence diagram is an HTTP 401 Unauthorized response. This suggests that the authentication credentials provided are incorrect or improperly formatted. The correct format for the credentials in a cURL command should be without quotes around the username and password. Hence, changing -u 'cisco
' to -u cisco
resolves the issue.
Currently there are no comments in this discussion, be the first to comment!