展示を参照してください。 エンジニアは、Cisco AMP for Endpoints API を介してデータ収集の要求を送信します。エンジニアはすべてのコンピュータのガイドとホスト名のデータを一覧表示する必要がありますが、最初の要求では 2,000 項目のうち 500 項目のみが返されます。次に、エンジニアはすべてのデータを収集するためのループを追加します。要求を完了するには、コードが不足しているスクリプトに何を追加する必要がありますか?
正解:A
To complete the requests and retrieve all the data, the correct code that needs to be added is next_url = response_json['metadata']['links']['next']. This ensures that the script retrieves the URL for the next set of data from the 'links' object within the 'metadata' section of the JSON response. This allows the loop to continue until all data is collected.