Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Cloudron Forum

Apps | Demo | Docs | Install

Issue with the API to change MemoryLimit

Scheduled Pinned Locked Moved Solved Support
api
5 Posts 2 Posters 52 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alwynispat
    wrote on last edited by girish
    #1

    I tried using the API to change the memory limit of a service but it keeps rejecting that the value needs to be a number, when clearly it is.

    dbccbfab-881b-40d0-9697-bc383008650a-image.png

    Find me at Mastodon

    girishG 1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    replied to alwynispat on last edited by
    #2

    @alwynispat They key should be memoryLimit and not memory

    1 Reply Last reply
    0
  • A Offline
    A Offline
    alwynispat
    wrote on last edited by
    #3

    API docs says memory.

    image.png

    Anyway, I tried memorylimit and it failed too. am I missing something else?

    image.png

    Find me at Mastodon

    1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    wrote on last edited by girish
    #4

    This works for me:

    curl 'https://my.domain.com/api/v1/services/mysql' \
        -X POST -H 'Authorization: Bearer xx' \
        -H 'Content-Type: application/json' \
         --data-raw '{"memoryLimit":973078528}'
    
    A 1 Reply Last reply
    0
  • A Offline
    A Offline
    alwynispat
    replied to girish on last edited by
    #5

    @girish said in Issue with the API to change MemoryLimit:

    --data-raw '{"memoryLimit":973078528}

    Thanks! this bit helped.

    Find me at Mastodon

    1 Reply Last reply
    1
  • girishG girish marked this topic as a question on
  • girishG girish has marked this topic as solved on

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks