更新第三方服務,例如東西向網路自我檢查或南北向網路自我檢查的狀態。

您可以啟用或停用系統上的南北向或東西向服務插入組態狀態。依預設,服務插入狀態會停用,直到建立服務為止。
  • 更新服務的狀態。執行下列 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
    }