Get Device Details
cnc_get_deviceRetrieve the full inventory record for a single Cisco Crosswork device by uuid or exact host name. Read-only; pass one selector to fetch all node fields such as state, profile, and connectivity info.
Instructions
Get the full inventory record of one device by uuid or host name.
Read-only. Pass exactly one selector. Returns every field Crosswork holds for the node: uuid, host_name, node_ip, admin_state, reachability_state, operational_state, reachability_check, profile, connectivity_info, product_info, routing_info, tag_names, dg_name/dg_uuid, nso_state, errors, creation_time, last_upd_time, ...
Note the read/write asymmetry: node_ip.inet_af reads as a string ('ROBOT_INET_ADDR_TYPE_v4') but is the integer 0 in write bodies, so do not feed this object straight back into a write.
Returns: str: JSON object of the node, or "Error: ..." (not found -> no device matched the selector; ambiguous -> a wildcard host_name matched several devices, use the uuid).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | No | Device uuid (e.g. '2a9b7c1e-0f3d-4b8a-9c6e-1d2f3a4b5c6d'). | |
| host_name | No | Device host name, exact match, case-insensitive (e.g. 'PE1'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |