Admin: Switches

Register a single switch

post/api/admin/switches

Request

  • Base URL: https://api.fiber.ac (the document declares no server; this is the origin it was published from)
  • URL: https://api.fiber.ac/api/admin/switches
  • Auth: none declared

Request body

namestring required
vendor'arista' | 'cisco' | 'nvidia' | 'juniper' | 'unknown'
modelstring nullable
rolestring
rack_idstring nullable
pod_idstring nullable
mgmt_ipstring nullable

management IP (IPv4 또는 hostname)

gnmi_portinteger
tenant_idstring
usernamestring nullable
passwordstring nullable

평문 — 저장 시 Fernet 으로 즉시 암호화

ssh_keystring nullable

평문 PEM/OpenSSH key — 저장 시 암호화

auth_method'password' | 'ssh_key' | 'mtls'
poll_interval_sinteger
tls_insecureboolean
source'manual' | 'csv' | 'netbox' | 'cloudvision' | 'netq' | 'dcnm'
source_refstring nullable

Response

Successful Response

idinteger required
namestring required
vendorstring required
modelstring nullable
rolestring required
rack_idstring nullable
pod_idstring nullable
mgmt_ipstring nullable
gnmi_portinteger required
tenant_idstring required
enabledboolean required
onboarded_atstring date-time nullable
last_seen_atstring date-time nullable
last_probe_okboolean nullable
last_probe_errstring nullable
vendor_osstring nullable
vendor_os_verstring nullable
sourcestring required
source_refstring nullable
poll_interval_sinteger required
tls_insecureboolean required
config_versioninteger required
has_passwordboolean
has_ssh_keyboolean
auth_methodstring nullable
usernamestring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.