Add Cisco Switch
Add Cisco switch as data source. You must provide one of IP or FQDN field in the request body. Appropriate proxy id is retrieved from infra/nodes URL to select the proxy node.
Add a Cisco switch as datasource.
'notes' is an optional parameter.
'config_polling_interval_in_min', 'config_polling_interval_type', scheduled_config_polling_time, scheduled_config_polling_days are optional parameters. Default polling
interval will be set if value is not provided in the parameters.
'config_polling_interval_type' can be [PRESET, CUSTOM, SCHEDULED]
For 'config_polling_interval_type' = 'PRESET', 'config_polling_interval_in_min' should be in - [10 min, 15 min, 30 min, 1 hour, 12 hours, 1 day, 3 days, 5 days, 7 days].
For 'config_polling_interval_type' = 'CUSTOM', 'config_polling_interval_in_min' should be in - Minimum- 10 minutes, Maximum- 7 days
For 'config_polling_interval_type' = 'SCHEDULED', scheduled_config_polling_time should be UTC time of the config polling task execution and scheduled_config_polling_days should be comma separated days when the task is desired to be scheduled.
{
"ip": "192.168.10.1",
"fqdn": "your.domain.com",
"proxy_id": "1000:104:12313412",
"nickname": "vc1",
"enabled": false,
"notes": "Located in DC1",
"config_polling_interval_in_min": "10",
"scheduled_config_polling_time": "2:00",
"scheduled_config_polling_days": "MONDAY,TUESDAY",
"config_polling_interval_type": "CUSTOM",
"credentials": {
"username": "readonly",
"password": "VMware1!"
},
"switch_type": "NEXUS_6K"
}
Created
{
"entity_id": "string",
"entity_type": "string",
"ip": "192.168.10.1",
"fqdn": "your.domain.com",
"proxy_id": "1000:104:12313412",
"nickname": "vc1",
"enabled": false,
"notes": "Located in DC1",
"certificate": "-----BEGIN CERTIFICATE----- ..etc..",
"sha_thumbprint": "15:37:46:1E:DB:70:65:80:B2:74:E5:78:25:E5:AD:39:14:53:69:18",
"new_certificate": "-----BEGIN CERTIFICATE----- ..etc..",
"new_sha_thumbprint": "13:37:46:1E:DB:70:65:80:B2:74:E5:78:25:E5:AD:39:14:53:69:18",
"config_polling_interval_in_min": "10",
"scheduled_config_polling_time": "2:00",
"scheduled_config_polling_days": "MONDAY,TUESDAY",
"config_polling_interval_type": "CUSTOM",
"credentials": {
"username": "readonly",
"password": "VMware1!"
},
"switch_type": "NEXUS_6K"
}
Bad Request
{
"code": 0,
"message": "string",
"details": [
{
"code": 0,
"message": "string",
"target": [
"string"
]
}
]
}
code
message
Unauthorized
Forbidden
Precondition Failed
{
"code": 0,
"message": "string",
"details": [
{
"code": 0,
"message": "string",
"target": [
"string"
]
}
]
}
code
message
Internal Error