展示を参照してください。 管理者は、Cisco IOS XE RESTCONF API を使用してデバイスのホスト名を返す GET 操作を実行しようとします。図のシーケンス図は、観察された HTTP メッセージを示しています。API 要求のどの変更によって問題が解決されますか?
正解:D
The HTTP 401 Unauthorized error indicates that the request lacks proper authentication credentials. However, in this case, the credentials are provided, so the issue likely stems from a missing or incorrect header. The Content-Type header is necessary for many REST APIs to specify the format of the request body. Adding the Content-Type: application/yang-data+json header ensures that the server correctly interprets the request as JSON formatted data according to the YANG data model. References: * Cisco DevNet Associate Certification Guide * Cisco IOS XE RESTCONF API Documentation