3 / 3
Jul 2024

I’m currently using an M20 instance and I wanted to confirm if there’s an API that can trigger an immediate scaling process to upgrade to an M30 instance or to scale down to a smaller instance. I’ve reviewed the available APIs, but the one I found only enables auto-scaling, which is not what I need. Instead, I need an API that can directly initiate a scaling operation immediately without relying on auto-scaling

I tired this but it’s not working

curl --request PUT \ --url 'https://cloud.mongodb.com/api/atlas/v1.0/groups/{GROUP-ID}/clusters/{CLUSTER-NAME}/processTypes/{PROCESS-TYPE}' \ --header 'Authorization: Basic {YOUR-ATLAS-API-KEY}' \ --header 'Content-Type: application/json' \ --data '{ "providerSettings": { "instanceSizeName": "{NEW-INSTANCE-SIZE}" } }'
1 year later