{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"To update the configuration of an existing autoscale pool, send a PUT request to\n`/v2/droplets/autoscale/$AUTOSCALE_POOL_ID`. The request must contain a full representation\nof the autoscale pool including existing attributes. \n","properties":{"path":{"type":"object","properties":{"autoscale_pool_id":{"type":"string","examples":["0d3db13e-a604-4944-9827-7ec2642d32ac"],"description":"A unique identifier for an autoscale pool."}},"required":["autoscale_pool_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/autoscale_pool_create"}},"required":["path"],"additionalProperties":false,"definitions":{"autoscale_pool_create":{"type":"object","properties":{"name":{"type":"string","description":"The human-readable name of the autoscale pool. This field cannot be updated","examples":["my-autoscale-pool"]},"config":{"oneOf":[{"$ref":"#/definitions/autoscale_pool_static_config"},{"$ref":"#/definitions/autoscale_pool_dynamic_config"}],"type":"object","description":"The scaling configuration for an autoscale pool, which is how the pool scales up and down (either by resource utilization or static configuration)."},"droplet_template":{"$ref":"#/definitions/autoscale_pool_droplet_template"}},"required":["name","config","droplet_template"]},"autoscale_pool_static_config":{"type":"object","properties":{"target_number_instances":{"title":"static config","type":"integer","description":"Fixed number of instances in an autoscale pool.","minimum":1,"maximum":1000,"examples":[3]}},"required":["target_number_instances"]},"autoscale_pool_dynamic_config":{"type":"object","properties":{"min_instances":{"type":"integer","description":"The minimum number of Droplets in an autoscale pool.","minimum":1,"maximum":500,"examples":[5]},"max_instances":{"type":"integer","description":"The maximum number of Droplets in an autoscale pool.","minimum":1,"maximum":1000,"examples":[10]},"target_cpu_utilization":{"type":"number","description":"Target CPU utilization as a decimal.","minimum":0.05,"maximum":1,"examples":[0.6]},"target_memory_utilization":{"type":"number","description":"Target memory utilization as a decimal.","minimum":0.05,"maximum":1,"examples":[0.6]},"cooldown_minutes":{"type":"integer","description":"The number of minutes to wait between scaling events in an autoscale pool. Defaults to 10 minutes.","minimum":5,"maximum":20,"examples":[5]}},"required":["min_instances","max_instances"]},"autoscale_pool_droplet_template":{"type":"object","properties":{"name":{"type":"string","description":"The name(s) to be applied to all Droplets in the autoscale pool.","examples":["my-droplet-name"]},"region":{"type":"string","enum":["nyc1","nyc2","nyc3","ams2","ams3","sfo1","sfo2","sfo3","sgp1","lon1","fra1","tor1","blr1","syd1"],"description":"The datacenter in which all of the Droplets will be created.","examples":["tor1"]},"size":{"type":"string","description":"The Droplet size to be used for all Droplets in the autoscale pool.","examples":["c-2"]},"image":{"type":"string","description":"The Droplet image to be used for all Droplets in the autoscale pool. You may specify the slug or the image ID.","examples":["ubuntu-20-04-x64"]},"ssh_keys":{"type":"array","items":{"type":"string"},"description":"The SSH keys to be installed on the Droplets in the autoscale pool. You can either specify the key ID or the fingerprint.\nRequires `ssh_key:read` scope.\n","examples":[["88:66:90:d2:68:d5:b5:85:e3:26:26:11:31:57:e6:f8"]]},"tags":{"type":"array","items":{"type":"string"},"description":"The tags to apply to each of the Droplets in the autoscale pool.\nRequires `tag:read` scope.\n","examples":[["my-tag"]]},"vpc_uuid":{"type":"string","description":"The VPC where the Droplets in the autoscale pool will be created. The VPC must be in the region where you want to create the Droplets.\nRequires `vpc:read` scope.\n","examples":["760e09ef-dc84-11e8-981e-3cfdfeaae000"]},"with_droplet_agent":{"type":"boolean","description":"Installs the Droplet agent. This must be set to true to monitor Droplets for resource utilization scaling.","examples":[true]},"project_id":{"type":"string","description":"The project that the Droplets in the autoscale pool will belong to.\nRequires `project:read` scope.\n","examples":["746c6152-2fa2-11ed-92d3-27aaa54e4988"]},"ipv6":{"type":"boolean","description":"Assigns a unique IPv6 address to each of the Droplets in the autoscale pool.","examples":[true]},"user_data":{"type":"string","description":"A string containing user data that cloud-init consumes to configure a Droplet on first boot. User data is often a cloud-config file or Bash script. It must be plain text and may not exceed 64 KiB in size.","examples":["#cloud-config\nruncmd:\n  - touch /test.txt\n"]},"public_networking":{"type":"boolean","default":true,"description":"An optional boolean indicating whether the Droplets should be created with public networking or not. By default, all Droplets are created with public networking available. If explicitly set to `false`, only private networking will be enabled, and public networking will be disabled; currently this means that it will not have any public static or Reserved IPv4 or IPv6 address, nor can one be assigned later. If explicitly set to `false`, `ipv6` must also be `false`.","examples":[true]}},"required":["region","image","size","ssh_keys"]}}},"name":"Update Autoscale Pool","id":"digitalocean.autoscalepools_update","example":{"path":{"autoscale_pool_id":"0d3db13e-a604-4944-9827-7ec2642d32ac"}},"maxRequests":1,"summary":false}}