Pynautobot

Latest version: v2.2.0

Safety actively analyzes 638699 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

2.0.0rc.1

Significant Updates

Release Candidate.
New release train for nautobot 2.X

1.5.2

- (174) Fixes for authentication change in Nautobot.

1.5.0

New Features

- (125) Adds Update Method based on ID to keep within the pynautobot experience to update a device (jamesharr)

python
import os
from pynautobot import api
url = os.environ["NAUTOBOT_URL"]
token = os.environ["NAUTOBOT_TOKEN"]
nautobot = api(url=url, token=token)
Update status and name fields
result = nautobot.dcim.devices.update(
id="491d799a-eeee-bbbb-aaaa-7c5cbb5b71b6",
data={
"comments": "removed from service",
"status": "decommissioned",
},
)


v.1.4.0

New Features

- (56) Adds ability to execute a job via pynautobot

> Run an instance of the job

python
Gets the job from the list of all jobs
>>> gc_backup_job = nautobot.extras.jobs.all()[14]
>>> job_result = gc_backup_job.run()
>>> job_result.result.id
'1838f8bd-440f-434e-9f29-82b46549a31d' <-- Job Result ID.


> Running the job with inputs

python
job = nautobot.extras.jobs.all()[7]
job.run(data={"hostname_regex": ".*"})


Package Updates

- Updates `gitpython` to 3.1.30
-

1.3.0

New Features

- (85) Added `retries` option to API

Bug Fixes

- (94) Fixes API version key for updating records

1.2.2

Bug Fixes

- (84) Fixes URLs for plugins with nested endpoints (i.e. /api/plugins/app_name/endpoint/nested_endpoint)

1.2.1

- (76) Feature: Removing the restriction on `id` for filter
> It is now allowed to filter per id. (switch = devices.get(id="..."))
- (81) Development: Added two invoke tasks:
- `debug` to get the logs for Nautobot to the screen
- `stop` to execute `docker-compose down` for started containers

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.