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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • 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
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Issue with the API to change MemoryLimit

Issue with the API to change MemoryLimit

Scheduled Pinned Locked Moved Solved Support
api
5 Posts 2 Posters 1.7k Views 2 Watching
  • 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
    • A alwynispat

      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

      girishG Do not disturb
      girishG Do not disturb
      girish
      Staff
      wrote 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 Do not disturb
          girishG Do not disturb
          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
          • girishG girish

            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 Offline
            A Offline
            alwynispat
            wrote 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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

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