# Creating a python Script to GET and POST SLO's within Dynatrace for Availability, Error Rate and Response Time

**URL:** <https://community.dynatrace.com/t/creating-a-python-script-to-get-and-post-slos-within-dynatrace-for-availability-error-rate-and-response-time/31844>\
**Category:** Dynatrace API\
**Tags:** slo, python, dynatrace-api\
**Created:** [June 17, 2021, 12:32pm UTC](https://community.dynatrace.com/t/creating-a-python-script-to-get-and-post-slos-within-dynatrace-for-availability-error-rate-and-response-time/31844 "2021-06-17T12:32:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![whitakerj96](https://avatars.discourse-cdn.com/v4/letter/w/9de0a6/32.png) [@whitakerj96](https://community.dynatrace.com/u/whitakerj96)\
**Post date:** [June 17, 2021, 12:32pm UTC](https://community.dynatrace.com/t/creating-a-python-script-to-get-and-post-slos-within-dynatrace-for-availability-error-rate-and-response-time/31844/1 "2021-06-17T12:32:35Z")

</div>

Hi Guys,

I have been tasked with creating a python script to integrate with Dynatrace in order to Post and update the SLO’s within Dynatrace for Availability, Error Rate and Response times.

Would someone be able to give me some advice as to where to start or a sample code that I can use to help as I am unsure where to start being new to Dynatrace.

Thanks

---

<div class="post-metadata">

**Author:** ![Malaik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/malaik/32/32673_2.png) [@Malaik](https://community.dynatrace.com/u/Malaik)\
**Post date:** [July 12, 2021, 12:00pm UTC](https://community.dynatrace.com/t/creating-a-python-script-to-get-and-post-slos-within-dynatrace-for-availability-error-rate-and-response-time/31844/2 "2021-07-12T12:00:55Z")

</div>

Hello&nbsp;[@whitakerj96](https://community.dynatrace.com/user/43014)

Why you want to use python … to do something proposed by defaut on dynatrace?

A simple dashboard can solve your need.

Good day.

---

<div class="post-metadata">

**Author:** ![bobby\_crumley](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/bobby_crumley/32/9485_2.png) [@bobby\_crumley](https://community.dynatrace.com/u/bobby_crumley)\
**Post date:** [July 12, 2021, 2:22pm UTC](https://community.dynatrace.com/t/creating-a-python-script-to-get-and-post-slos-within-dynatrace-for-availability-error-rate-and-response-time/31844/3 "2021-07-12T14:22:40Z")

</div>

Hey&nbsp;&nbsp;Whitaker! You should be able to find what you’re looking for if you look at the Environment API V2. Scroll down to “Manage SLOs” and you should be able to find what you need. I can’t help with the actual python script, but if you do need deep dive hands on help, let me know and I can work with you to get some services to build it out for you, exactly to your needs. For now though, check out the SLOs under Environment API V2, add your API token, click to “TryItOut” and see if these options will fit your needs.

Check this for more details:&nbsp;[Service-level objectives API - POST an SLO — Dynatrace Docs](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/service-level-objectives/post-slo/)

Thanks -

Bob Crumley

---

<div class="post-metadata">

**Author:** ![Ben-Noble](https://avatars.discourse-cdn.com/v4/letter/b/e5b9ba/32.png) [@Ben-Noble](https://community.dynatrace.com/u/Ben-Noble)\
**Post date:** [September 3, 2021, 6:18pm UTC](https://community.dynatrace.com/t/creating-a-python-script-to-get-and-post-slos-within-dynatrace-for-availability-error-rate-and-response-time/31844/4 "2021-09-03T18:18:51Z")

</div>

Hi,&nbsp;whitakerj96 - are you still working on this?

-Ben
