# Can you access AXIS PTZ controls via Ignition?

**URL:** <https://forum.inductiveautomation.com/t/can-you-access-axis-ptz-controls-via-ignition/85175>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [February 2, 2024, 8:31pm UTC](https://forum.inductiveautomation.com/t/can-you-access-axis-ptz-controls-via-ignition/85175 "2024-02-02T20:31:07Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Cameron\_Nickle](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@Cameron\_Nickle](https://forum.inductiveautomation.com/u/Cameron_Nickle)\
**Post date:** [February 6, 2024, 4:40pm UTC](https://forum.inductiveautomation.com/t/can-you-access-axis-ptz-controls-via-ignition/85175/5 "2024-02-06T16:40:22Z")

</div>

With a little looking it seems that the self signed certificate is not trusted. So I added a bypass for testing purposes to see if I could actually make it work before I went about adding the certificate and what not. (from here: [Unable to POST on a REST API using https - #8 by Ben\_Hunt](https://forum.inductiveautomation.com/t/unable-to-post-on-a-rest-api-using-https/66769/8))

This is currently what I have in a simple button event:

```auto
client = system.net.httpClient(bypass_cert_validation = True)
url = "https://10.10.0.3/axis-cgi/com/ptz.cgi?zoom=1000"
client.post(url)

```

```auto
<Response@1172685220 'https://10.10.0.3/axis-cgi/com/ptz.cgi?zoom=1000' [401]>

```

However, this still does not seem to accept the zoom function to the camera regardless of HTTP or HTTPS. The password and username variables also don't seem to make a difference. 401 is still the return.

The weird thing about this is I did a basic test and just threw the URL into a browser and ran it and it will zoom the camera in but not via the button.

If you have any further suggestions they would be greatly appreciated.

Thank you,

Cam

---

_[View the full topic](https://forum.inductiveautomation.com/t/can-you-access-axis-ptz-controls-via-ignition/85175)._
