更新第三方服务的状态,例如东西向网络侦测或南北向网络侦测。
您可以在系统上启用或禁用南北向或东西向服务插入配置状态。默认情况下,在创建服务之前,服务插入状态为“已禁用”。
- 更新服务状态。运行以下 API 命令。
PUT https://<policy-mgr>/policy/api/v1/infra/settings/service-insertion/security/status { "north_south_enabled": false, "resource_type": "PolicySIStatusConfiguration", "_revision": 1 } Example Response: { "resource_type": "PolicySIStatusConfiguration", "id": "si-status", "display_name": "/infra/settings/service-insertion/security/status", "path": "/infra/settings/service-insertion/security/status", "relative_path": "si-status", "north_south_enabled": false, "east_west_enabled": true, "_create_user": "system", "_create_time": 1554274751846, "_last_modified_user": "admin", "_last_modified_time": 1554275071006, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 2 }