問題 ccnp-350-701-topic-1-question-293・第1版

問題

DNA CenterのIntent APIで、登録されたネットワーク機器の件数を取得する要求はどれか。

  1. A 
    GET https://controller.example/dna/intent/api/v1/network-device/count
    
  2. B 
    GET https://controller.example/dna/intent/api/v1/network-device?parameter1=value&parameter2=value
    
  3. C 
    GET https://controller.example/dna/intent/api/v1/network-device/startIndex/recordsToReturn
    
  4. D 
    GET https://controller.example/dna/intent/api/v1/network-device
    

正解:A

理由

GETのnetwork-device/countで機器の件数を取得する。JSON応答の整数値responseが件数を表す。hostname等のフィルターを付けると、その条件に合う機器を数える。

📘 Cisco DNA Center Get Device Count

選択肢ごとの説明

A.
GET https://controller.example/dna/intent/api/v1/network-device/count

count endpointが、指定した条件に合う機器の件数を返す。

B.
GET https://controller.example/dna/intent/api/v1/network-device?parameter1=value&parameter2=value

一覧の取得へ検索条件を付ける候補で、件数用のendpointはAである。

C.
GET https://controller.example/dna/intent/api/v1/network-device/startIndex/recordsToReturn

一覧の範囲を指定する候補で、件数用の要求とは異なる。

D.
GET https://controller.example/dna/intent/api/v1/network-device

ネットワーク機器の一覧を取得する。

参考資料

お問い合わせ

演習する →