IPAMツールとして実績があるInfobloxにはREST APIがある。
curlでInfoblox REST APIのスキーマを取得してみよう。curlはWindows 10のコマンドにも含まれている。
curl -k -u admin:infoblox -X GET "https://192.168.3.51/wapi/v2.11/?_schema&_return_as_object=1"
スキーマサンプル出力:
補足説明:
オブジェクトのスキーマにアクセスすると、オブジェクトのフィールド定義を参照できる。
Fixed Addressのスキーマを参照する例:
curl -k -u admin:infoblox -X GET "https://192.168.3.51/wapi/v2.11/fixedaddress?_schema&_return_as_object=1"
IPv4Addressのスキーマを参照する例:
curl -k -u admin:infoblox -X GET "https://192.168.3.51/wapi/v2.11/ipv4address?_schema&_return_as_object=1"
まとめ:
curlの基本的な使用方法を把握し効率良く調査する
オブジェクトのスキーマでどのフィールドを実装時に使用するのかアタリを付ける
※公式なAPIリファレンスは勿論のこと、公式コミュニティに有益な情報があるためご活用して頂きたい