{
"target": {
"name": "target test",
"hosts": "155.168.1.0/24",
"exclude_hosts": "155.168.1.55",
"credentials": {
"ssh": "3d93f13d-fe75-4d5f-a6f9-7916c56a46ca",
"smb": "3d43fe94-3c23-49d9-b61b-62a6b516a841",
"esxi": "5018e745-21f4-42fd-a757-dccd5220f062",
"snmp": "f60cef17-b24e-472e-8868-db35d7a5e896"
},
"port_list_id": null,
"alive_test": "scan_config_default",
"comment": "my comment"
}
}
curl --location --request PUT '/v2/targets/' \
--header 'Content-Type: application/json' \
--data-raw '{
"target": {
"name": "target test",
"hosts": "155.168.1.0/24",
"exclude_hosts": "155.168.1.55",
"credentials": {
"ssh": "3d93f13d-fe75-4d5f-a6f9-7916c56a46ca",
"smb": "3d43fe94-3c23-49d9-b61b-62a6b516a841",
"esxi": "5018e745-21f4-42fd-a757-dccd5220f062",
"snmp": "f60cef17-b24e-472e-8868-db35d7a5e896"
},
"port_list_id": null,
"alive_test": "scan_config_default",
"comment": "my comment"
}
}'
{
"data": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"hosts": "string",
"exclude_hosts": "string",
"comment": "string"
}
}