1. Packages
  2. DigitalOcean Provider
  3. API Docs
  4. getDropletAutoscale
DigitalOcean v4.41.0 published on Wednesday, Mar 26, 2025 by Pulumi

digitalocean.getDropletAutoscale

Explore with Pulumi AI

digitalocean logo
DigitalOcean v4.41.0 published on Wednesday, Mar 26, 2025 by Pulumi

    Example Usage

    Get the Droplet Autoscale pool by name:

    import * as pulumi from "@pulumi/pulumi";
    import * as digitalocean from "@pulumi/digitalocean";
    
    const my_imported_autoscale_pool = digitalocean.getDropletAutoscale({
        name: my_existing_autoscale_pool.name,
    });
    
    import pulumi
    import pulumi_digitalocean as digitalocean
    
    my_imported_autoscale_pool = digitalocean.get_droplet_autoscale(name=my_existing_autoscale_pool["name"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := digitalocean.LookupDropletAutoscale(ctx, &digitalocean.LookupDropletAutoscaleArgs{
    			Name: pulumi.StringRef(my_existing_autoscale_pool.Name),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using DigitalOcean = Pulumi.DigitalOcean;
    
    return await Deployment.RunAsync(() => 
    {
        var my_imported_autoscale_pool = DigitalOcean.GetDropletAutoscale.Invoke(new()
        {
            Name = my_existing_autoscale_pool.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.digitalocean.DigitaloceanFunctions;
    import com.pulumi.digitalocean.inputs.GetDropletAutoscaleArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var my-imported-autoscale-pool = DigitaloceanFunctions.getDropletAutoscale(GetDropletAutoscaleArgs.builder()
                .name(my_existing_autoscale_pool.name())
                .build());
    
        }
    }
    
    variables:
      my-imported-autoscale-pool:
        fn::invoke:
          function: digitalocean:getDropletAutoscale
          arguments:
            name: ${["my-existing-autoscale-pool"].name}
    

    Get the Droplet Autoscale pool by ID:

    import * as pulumi from "@pulumi/pulumi";
    import * as digitalocean from "@pulumi/digitalocean";
    
    const my_imported_autoscale_pool = digitalocean.getDropletAutoscale({
        id: my_existing_autoscale_pool.id,
    });
    
    import pulumi
    import pulumi_digitalocean as digitalocean
    
    my_imported_autoscale_pool = digitalocean.get_droplet_autoscale(id=my_existing_autoscale_pool["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := digitalocean.LookupDropletAutoscale(ctx, &digitalocean.LookupDropletAutoscaleArgs{
    			Id: pulumi.StringRef(my_existing_autoscale_pool.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using DigitalOcean = Pulumi.DigitalOcean;
    
    return await Deployment.RunAsync(() => 
    {
        var my_imported_autoscale_pool = DigitalOcean.GetDropletAutoscale.Invoke(new()
        {
            Id = my_existing_autoscale_pool.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.digitalocean.DigitaloceanFunctions;
    import com.pulumi.digitalocean.inputs.GetDropletAutoscaleArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var my-imported-autoscale-pool = DigitaloceanFunctions.getDropletAutoscale(GetDropletAutoscaleArgs.builder()
                .id(my_existing_autoscale_pool.id())
                .build());
    
        }
    }
    
    variables:
      my-imported-autoscale-pool:
        fn::invoke:
          function: digitalocean:getDropletAutoscale
          arguments:
            id: ${["my-existing-autoscale-pool"].id}
    

    Using getDropletAutoscale

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDropletAutoscale(args: GetDropletAutoscaleArgs, opts?: InvokeOptions): Promise<GetDropletAutoscaleResult>
    function getDropletAutoscaleOutput(args: GetDropletAutoscaleOutputArgs, opts?: InvokeOptions): Output<GetDropletAutoscaleResult>
    def get_droplet_autoscale(id: Optional[str] = None,
                              name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetDropletAutoscaleResult
    def get_droplet_autoscale_output(id: Optional[pulumi.Input[str]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetDropletAutoscaleResult]
    func LookupDropletAutoscale(ctx *Context, args *LookupDropletAutoscaleArgs, opts ...InvokeOption) (*LookupDropletAutoscaleResult, error)
    func LookupDropletAutoscaleOutput(ctx *Context, args *LookupDropletAutoscaleOutputArgs, opts ...InvokeOption) LookupDropletAutoscaleResultOutput

    > Note: This function is named LookupDropletAutoscale in the Go SDK.

    public static class GetDropletAutoscale 
    {
        public static Task<GetDropletAutoscaleResult> InvokeAsync(GetDropletAutoscaleArgs args, InvokeOptions? opts = null)
        public static Output<GetDropletAutoscaleResult> Invoke(GetDropletAutoscaleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDropletAutoscaleResult> getDropletAutoscale(GetDropletAutoscaleArgs args, InvokeOptions options)
    public static Output<GetDropletAutoscaleResult> getDropletAutoscale(GetDropletAutoscaleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: digitalocean:index/getDropletAutoscale:getDropletAutoscale
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of Droplet Autoscale pool.
    Name string
    The name of Droplet Autoscale pool.
    Id string
    The ID of Droplet Autoscale pool.
    Name string
    The name of Droplet Autoscale pool.
    id String
    The ID of Droplet Autoscale pool.
    name String
    The name of Droplet Autoscale pool.
    id string
    The ID of Droplet Autoscale pool.
    name string
    The name of Droplet Autoscale pool.
    id str
    The ID of Droplet Autoscale pool.
    name str
    The name of Droplet Autoscale pool.
    id String
    The ID of Droplet Autoscale pool.
    name String
    The name of Droplet Autoscale pool.

    getDropletAutoscale Result

    The following output properties are available:

    Supporting Types

    GetDropletAutoscaleConfig

    CooldownMinutes int
    Cooldown duration
    MaxInstances int
    Max number of members
    MinInstances int
    Min number of members
    TargetCpuUtilization double
    CPU target threshold
    TargetMemoryUtilization double
    Memory target threshold
    TargetNumberInstances int
    Target number of members
    CooldownMinutes int
    Cooldown duration
    MaxInstances int
    Max number of members
    MinInstances int
    Min number of members
    TargetCpuUtilization float64
    CPU target threshold
    TargetMemoryUtilization float64
    Memory target threshold
    TargetNumberInstances int
    Target number of members
    cooldownMinutes Integer
    Cooldown duration
    maxInstances Integer
    Max number of members
    minInstances Integer
    Min number of members
    targetCpuUtilization Double
    CPU target threshold
    targetMemoryUtilization Double
    Memory target threshold
    targetNumberInstances Integer
    Target number of members
    cooldownMinutes number
    Cooldown duration
    maxInstances number
    Max number of members
    minInstances number
    Min number of members
    targetCpuUtilization number
    CPU target threshold
    targetMemoryUtilization number
    Memory target threshold
    targetNumberInstances number
    Target number of members
    cooldown_minutes int
    Cooldown duration
    max_instances int
    Max number of members
    min_instances int
    Min number of members
    target_cpu_utilization float
    CPU target threshold
    target_memory_utilization float
    Memory target threshold
    target_number_instances int
    Target number of members
    cooldownMinutes Number
    Cooldown duration
    maxInstances Number
    Max number of members
    minInstances Number
    Min number of members
    targetCpuUtilization Number
    CPU target threshold
    targetMemoryUtilization Number
    Memory target threshold
    targetNumberInstances Number
    Target number of members

    GetDropletAutoscaleCurrentUtilization

    Cpu double
    Average CPU utilization
    Memory double
    Average Memory utilization
    Cpu float64
    Average CPU utilization
    Memory float64
    Average Memory utilization
    cpu Double
    Average CPU utilization
    memory Double
    Average Memory utilization
    cpu number
    Average CPU utilization
    memory number
    Average Memory utilization
    cpu float
    Average CPU utilization
    memory float
    Average Memory utilization
    cpu Number
    Average CPU utilization
    memory Number
    Average Memory utilization

    GetDropletAutoscaleDropletTemplate

    Image string
    Droplet image
    Ipv6 bool
    Enable droplet IPv6
    ProjectId string
    Droplet project ID
    Region string
    Droplet region
    Size string
    Droplet size
    SshKeys List<string>
    Droplet SSH keys
    Tags List<string>
    Droplet tags
    UserData string
    Droplet user data
    VpcUuid string
    Droplet VPC UUID
    WithDropletAgent bool
    Enable droplet agent
    Image string
    Droplet image
    Ipv6 bool
    Enable droplet IPv6
    ProjectId string
    Droplet project ID
    Region string
    Droplet region
    Size string
    Droplet size
    SshKeys []string
    Droplet SSH keys
    Tags []string
    Droplet tags
    UserData string
    Droplet user data
    VpcUuid string
    Droplet VPC UUID
    WithDropletAgent bool
    Enable droplet agent
    image String
    Droplet image
    ipv6 Boolean
    Enable droplet IPv6
    projectId String
    Droplet project ID
    region String
    Droplet region
    size String
    Droplet size
    sshKeys List<String>
    Droplet SSH keys
    tags List<String>
    Droplet tags
    userData String
    Droplet user data
    vpcUuid String
    Droplet VPC UUID
    withDropletAgent Boolean
    Enable droplet agent
    image string
    Droplet image
    ipv6 boolean
    Enable droplet IPv6
    projectId string
    Droplet project ID
    region string
    Droplet region
    size string
    Droplet size
    sshKeys string[]
    Droplet SSH keys
    tags string[]
    Droplet tags
    userData string
    Droplet user data
    vpcUuid string
    Droplet VPC UUID
    withDropletAgent boolean
    Enable droplet agent
    image str
    Droplet image
    ipv6 bool
    Enable droplet IPv6
    project_id str
    Droplet project ID
    region str
    Droplet region
    size str
    Droplet size
    ssh_keys Sequence[str]
    Droplet SSH keys
    tags Sequence[str]
    Droplet tags
    user_data str
    Droplet user data
    vpc_uuid str
    Droplet VPC UUID
    with_droplet_agent bool
    Enable droplet agent
    image String
    Droplet image
    ipv6 Boolean
    Enable droplet IPv6
    projectId String
    Droplet project ID
    region String
    Droplet region
    size String
    Droplet size
    sshKeys List<String>
    Droplet SSH keys
    tags List<String>
    Droplet tags
    userData String
    Droplet user data
    vpcUuid String
    Droplet VPC UUID
    withDropletAgent Boolean
    Enable droplet agent

    Package Details

    Repository
    DigitalOcean pulumi/pulumi-digitalocean
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the digitalocean Terraform Provider.
    digitalocean logo
    DigitalOcean v4.41.0 published on Wednesday, Mar 26, 2025 by Pulumi