Add a Device
POST https://{{crosswork_ip}}:30603/crosswork/ztp/v1/devices
Use this API Call to Add a device on Crosswork for ZTP.
Request Body
{"nodes"=>[{"uuid"=>"", "hostName"=>"ztp-device-13", "serialNumber"=>"FOC2249R0K4", "macAddress"=>"", "credentialProfile"=>"device", "osPlatform"=>"IOS-XR", "deviceFamily"=>"CISCO NCS5500", "profileName"=>"", "image"=>"cw-image-uuid-de996554-1bea-44ac-b8dd-81a2c0655225", "config"=>"6038df7e-51a3-4364-8e4e-8be4044bca63", "status"=>"Unprovisioned", "providerInfo"=>{"providerName"=>"", "providerDeviceKey"=>""}, "version"=>"7.0.1"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |