Catalyst Center APIで設定を配備する8 / 10

所在地でのデバイス取得

GET /dna/intent/api/v1/network-device

このコマンドのlocationクエリで所在地を絞り込める。

location=BALTIMOREとgeolocation=BALTIMOREは異なる引数名である。取得成功200と要求不正400を分け、Pythonの分岐はelifを使う。

学習パスへ
参考資料