Restore factory defaults on an NVLink Domain’s switches
Restores factory defaults on every switch in an NVLink Domain. Only Provider Admins can call this endpoint. The Site must be Registered and belong to the current organization’s provider.
target is required, case-sensitive, and has no default:
nvosclears the NVOS configuration and reboots the switches.sdnrestores the SDN configuration to factory defaults.
Every switch in the Domain must be ingested. The request returns 409 if a conflicting task is Pending or Running on any of the Domain’s racks. A rack’s task fails without resetting any of its switches if a host in that rack does not become ready for a disruptive operation, for example because a Tenant is using it. If a host goes into use while the task is running, remaining switches whose resets have not been submitted are skipped and the task fails. Resets already accepted may still complete. This check cannot be overridden.
The reset runs in the background. A 202 response returns one task ID for each rack the Domain’s switches belong to, in no particular order. It means the tasks were created, not that the switches accepted or completed the resets. Use the Task APIs to see whether each task completed, failed, or was terminated. If a rack’s task fails before any reset is submitted, read its task message for the reason. When available, its task report provides additional details. A completed task means the Site reported the resets as finished, not that the Domain is operational. NICo does not restore the switch configurations or re-ingest the switches afterwards.
If the Site does not support the selected reset, the task fails.
Failed or uncertain reset submissions are not retried automatically. After a timeout or a lost response, check existing tasks and the switches before submitting again, since resets may already be running. Avoid starting another reset of the same type on these switches outside this API while their tasks are running, as a task may report that reset’s outcome instead.
Authentication
export JWT_BEARER_TOKEN="<jwt-bearer-token>"
# Example org name: "acme-inc
export ORG_NAME=<org-name>
# Use the JWT bearer token in your API request auth header:
curl -v -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $JWT_BEARER_TOKEN" https://nico-rest-api.nico.svc.cluster.local/v2/org/$ORG_NAME/nico/user/current
Path parameters
Request
Registered site owned by the current organization’s provider.
Required reset scope. Accepted values are nvos and sdn; case-sensitive, with no default.
Response
Reset tasks created; hardware work is asynchronous.
Asynchronous reset task IDs, one per owning rack; ordering is unspecified.