adamant-kite-43734
09/05/2024, 7:03 AMnutritious-computer-61979
09/05/2024, 9:42 AM<api url>/v2/system/config
Wil give you output in v1 format. I loaded the api docs in swagger, see link https://raw.githubusercontent.com/neuvector/neuvector/main/controller/api/apis.yaml
You will need to look at the model, this is the correct call
- name: Disable Network Policy Enforcement
ansible.builtin.uri:
url: "{{ nv_url }}/v2/system/config"
method: PATCH
headers:
{
"X-Auth-Token": "{{ nv_token }}",
"accept": "application/json",
"Content-Type": "application/json"
}
body_format: json
body: {
"net_config": {
"disable_net_policy": true
}
}
status_code: 200
validate_certs: "{{ nv_ca_verify }}"
quaint-candle-18606
09/05/2024, 2:46 PMquaint-candle-18606
09/05/2024, 3:16 PMnutritious-computer-61979
09/06/2024, 5:23 AMnutritious-computer-61979
09/06/2024, 7:04 AM