set switch role
POST https://{{dcnm}}/rest/control/switches/roles
Used to set the desired device's role within the fabric. Can be one or more devices defined within the array.
Please ensure correct serial numbers are used within the array
Request Body
{"0"=>{"serialNumber"=>"9FXMD0HF6F3", "role"=>"leaf"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Dcnm-token | string | ||
Content-Type | string |