access-token: ********************{
"name": "SW-001",
"snmp_support": true,
"snmp_port": 161,
"control_support": true,
"cabinet_id": 1,
"unit": [
0
],
"capacity": 48,
"device": "switch",
"type": "public",
"switch_model_id": 1,
"routing_support": 0,
"ip_blocks": [
0
],
"relate_scripts": [
{
"switch_script_id": 1,
"node": "string"
}
]
}curl --location '/admin/switchs' \
--header 'access-token: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "SW-001",
"snmp_support": true,
"snmp_port": 161,
"control_support": true,
"cabinet_id": 1,
"unit": [
0
],
"capacity": 48,
"device": "switch",
"type": "public",
"switch_model_id": 1,
"routing_support": 0,
"ip_blocks": [
0
],
"relate_scripts": [
{
"switch_script_id": 1,
"node": "string"
}
]
}'{
"success": true
}