# REST API call with curl to cockpit

**URL:** <https://forums.rockylinux.org/t/rest-api-call-with-curl-to-cockpit/14232>\
**Category:** Rocky Linux Help & Support\
**Created:** [May 23, 2024, 3:14pm UTC](https://forums.rockylinux.org/t/rest-api-call-with-curl-to-cockpit/14232 "2024-05-23T15:14:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lipkowski.be](https://avatars.discourse-cdn.com/v4/letter/l/8e8cbc/32.png) [@lipkowski.be](https://forums.rockylinux.org/u/lipkowski.be)\
**Post date:** [May 23, 2024, 3:14pm UTC](https://forums.rockylinux.org/t/rest-api-call-with-curl-to-cockpit/14232/1 "2024-05-23T15:14:01Z")

</div>

Hi,

currently i manage my KVM vms via ssh and virsh. Now i have found the cockpit interface. Thats looking nice. But i need to control it remote with my scripts. I have searched hours but i can not find a way to controll it via REST API. Is there a docu? Everything what i have found is a way to create plugins for cockpit, but thats not what i want to do.

---

<div class="post-metadata">

**Author:** ![efdevse](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/efdevse/32/2616_2.png) [@efdevse](https://forums.rockylinux.org/u/efdevse)\
**Post date:** [May 24, 2024, 2:00pm UTC](https://forums.rockylinux.org/t/rest-api-call-with-curl-to-cockpit/14232/2 "2024-05-24T14:00:32Z")

</div>

Haven’t used it, but there are a few pages about the API(s), and how to use/work with it.

- [API: base1](https://cockpit-project.org/guide/latest/api-base1.html)
- [Introduction](https://getcockpit.com/documentation/core/api/introduction)
  - [Authentication](https://getcockpit.com/documentation/core/api/authentication)

If that is what you were looking for?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [July 23, 2024, 2:00pm UTC](https://forums.rockylinux.org/t/rest-api-call-with-curl-to-cockpit/14232/3 "2024-07-23T14:00:48Z")

</div>

Closed on July 23, 2024, 2:00pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
