展示を参照してください。 または 管理者は、Cisco IOS XE RESTOCNF API を使用して GET を実行し、デバイスのホスト名を返そうとします。シーケンス図には、観察された HTTP メッセージが表示されています。API 要求にどのような変更を加えると、問題が解決しますか。
正解:B
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. Reference: Cisco DevNet Associate Certification Guide, Chapter on Cisco IOS XE REST API .