SAP Sailing Analytics Webservices API Version 1.0

URL: /sailinglandscape/api/landscape/changeautoscalingreplicasinstancetype

Description:

Changes the instance type used by the auto-scaling replicas of an existing application replica set. The replica set's launch template and auto-scaling group are updated to use the new instance type, so that replicas launched from then on use it. This can be used to scale the replicas up or down, e.g., to react to a change in expected load. The master process is not affected by this operation; to move the master to a differently-sized instance use movemastertootherinstance instead. On success, the updated replica set is returned.


Webservice Type: POST
Output format: json
Mandatory query parameters:
regionId, region where the replica set is located, e.g., eu-west-1
replicaSetName, name of the replica set whose auto-scaling replicas' instance type is to be changed; used as the hostname to which the domain name is appended, as well as for the database and RabbitMQ exchange name
instanceType, the new AWS instance type to use for the auto-scaling replicas, such as C5_4_XLARGE; see here
Optional form parameters:
keyName, the name of the SSH key to use; must identify an existing SSH key by that name in the region specified and will be used to log on to existing and new instances using a root ssh connection. If not specified, the key used to launch an instance will be used for trying to connect to it, and a private key with matching name for the respective region will be looked up.
privateKeyEncryptionPassphrase, the pass phrase to decrypt the private key for the key specified by the keyName parameter
Request method: POST
Example: curl -X POST -d 'regionId=eu-west-2' -d 'replicaSetName=mynewevent' -d 'instanceType=C5_4_XLARGE' -d 'keyName=Horst' --data-urlencode 'privateKeyEncryptionPassphrase=HorstsSuperSecretPassword' -H 'Authorization: Bearer RwGK+DV38LKjeuDu+Bx87/3blLJHD7Ff+NCLeud9nRQ=' "https://sapsailing.com/sailinglandscape/api/landscape/changeautoscalingreplicasinstancetype"
produces output:
            {
              "name": "mynewevent",
              "version": "build-202112151552"
            }
        
Back to Web Service Overview