ログサーバ設定
API情報
| API種別 | メソッド | URI | 対象 | 名称 | 実行 |
|---|---|---|---|---|---|
| 設定 | PUT | /:GisServiceCode/firewalls/:IfwServiceCode/syslog.json | ファイアウォール | ログサーバ設定 | 同期 |
- 指定されたファイアウォールにログサーバを設定します
- ファイアウォールがメンテナンス中の場合はメンテナンスが完了するまでログサーバの設定はできません
リクエストパラメータ
| パラメータ | 必須 | 意味 | 値 | |
|---|---|---|---|---|
| URL | GisServiceCode | ○ | P2契約のサービスコード | gis######## |
| IfwServiceCode | ○ | ファイアウォールのサービスコード | ifw######## | |
| ボディ | Address | ○ | ログサーバのアドレス | IPv4アドレス |
| Protocol | ○ | 使用プロトコル | "TCP", "UDP" | |
| Port | ○ | ログサーバのポート番号 | 数字 |
レスポンス
| フィールド | タイプ | 意味 | 値 |
|---|---|---|---|
| Current | Object | 変更後のログサーバ設定 | オブジェクト |
| Current .Address | String | 変更後のログサーバのアドレス | IPv4アドレス |
| Current .Protocol | String | 変更後の使用プロトコル | "TCP", "UDP" |
| Current .Port | String | 変更後のログサーバのポート番号 | 数字 |
| Previous | Object | 変更前のログサーバ設定 | オブジェクト |
| Previous.Address | String | 変更前のログサーバのアドレス | IPv4アドレス |
| Previous.Protocol | String | 変更前の使用プロトコル | "TCP", "UDP" |
| Previous.Port | String | 変更前のログサーバのポート番号 | 数字 |
制限
- 特になし
サンプル
リクエストボディ
{
"Address": "192.168.2.222",
"Protocol": "UDP",
"Port": "514"
}
レスポンス (JSON)
{
"RequestId": "xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx",
"Current": {
"Address": "192.168.2.222",
"Protocol": "UDP",
"Port": "514"
},
"Previous": {
"Address": "192.168.2.111",
"Protocol": "TCP",
"Port": "514"
}
}