Authorization: Bearer ********************x-api-key: ********************{
"target": {
"name": "target test",
"hosts": "155.168.1.0/24",
"exclude_hosts": "155.168.1.55",
"comment": "my comment"
}
}curl --location --request POST '/v2/targets' \
--header 'Authorization: Bearer <token>' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"target": {
"name": "target test",
"hosts": "155.168.1.0/24",
"exclude_hosts": "155.168.1.55",
"comment": "my comment"
}
}'{
"data": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"type": "targets",
"attributes": {
"uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
"name": "string",
"hosts": "string",
"exclude_hosts": "string",
"comment": "string",
"app_type": "string",
"max_hosts": 0,
"owner": {
"username": "string"
}
}
}
}