Get diff between two versions

View as Markdown
Generate a diff between two versions of a configuration file.

Authentication

AuthorizationBearer

Bearer JWT used by CLI and machine clients on svc-* endpoints. Authentication is required by default, but deployments may disable it with [auth] required = false. Browser OIDC sessions, mTLS, SPIFFE identities, and trusted gateway identity headers may also satisfy authentication outside this generated client flow.

Path parameters

device_uuidstringRequiredformat: "uuid"
filenamestringRequired

Query parameters

from_versionintegerRequired
to_versionintegerRequired
file_typeenumOptional
Enum for config file types.
Allowed values:

Response

Successful Response
device_uuidstringformat: "uuid"
Device UUID
diffstring
Unified diff output
diff_statsmap from strings to integers
Statistics about the diff
filenamestring
File name
from_versioninteger
Source version
new_contentstring
Content of target version
old_contentstring
Content of source version
to_versioninteger
Target version
deviceobject or null
Device metadata from Nautobot

Errors

422
Unprocessable Entity Error