DigitalOcean v4.41.0 published on Wednesday, Mar 26, 2025 by Pulumi
digitalocean.getDropletAutoscale
Explore with Pulumi AI
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:
getDropletAutoscale Result
The following output properties are available:
- Configs
List<Pulumi.
Digital Ocean. Outputs. Get Droplet Autoscale Config> - Created
At string - Current
Utilizations List<Pulumi.Digital Ocean. Outputs. Get Droplet Autoscale Current Utilization> - Droplet
Templates List<Pulumi.Digital Ocean. Outputs. Get Droplet Autoscale Droplet Template> - Status string
- Updated
At string - Id string
- Name string
- configs List<Property Map>
- created
At String - current
Utilizations List<Property Map> - droplet
Templates List<Property Map> - status String
- updated
At String - id String
- name String
Supporting Types
GetDropletAutoscaleConfig
- Cooldown
Minutes int - Cooldown duration
- Max
Instances int - Max number of members
- Min
Instances int - Min number of members
- Target
Cpu doubleUtilization - CPU target threshold
- Target
Memory doubleUtilization - Memory target threshold
- Target
Number intInstances - 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 float64Utilization - CPU target threshold
- Target
Memory float64Utilization - Memory target threshold
- Target
Number intInstances - Target number of members
- cooldown
Minutes Integer - Cooldown duration
- max
Instances Integer - Max number of members
- min
Instances Integer - Min number of members
- target
Cpu DoubleUtilization - CPU target threshold
- target
Memory DoubleUtilization - Memory target threshold
- target
Number IntegerInstances - Target number of members
- cooldown
Minutes number - Cooldown duration
- max
Instances number - Max number of members
- min
Instances number - Min number of members
- target
Cpu numberUtilization - CPU target threshold
- target
Memory numberUtilization - Memory target threshold
- target
Number numberInstances - 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_ floatutilization - CPU target threshold
- target_
memory_ floatutilization - Memory target threshold
- target_
number_ intinstances - Target number of members
- cooldown
Minutes Number - Cooldown duration
- max
Instances Number - Max number of members
- min
Instances Number - Min number of members
- target
Cpu NumberUtilization - CPU target threshold
- target
Memory NumberUtilization - Memory target threshold
- target
Number NumberInstances - Target number of members
GetDropletAutoscaleCurrentUtilization
GetDropletAutoscaleDropletTemplate
- Image string
- Droplet image
- Ipv6 bool
- Enable droplet IPv6
- Project
Id string - Droplet project ID
- Region string
- Droplet region
- Size string
- Droplet size
- Ssh
Keys List<string> - Droplet SSH keys
- List<string>
- Droplet tags
- User
Data string - Droplet user data
- Vpc
Uuid string - Droplet VPC UUID
- With
Droplet boolAgent - Enable droplet agent
- image String
- Droplet image
- ipv6 Boolean
- Enable droplet IPv6
- project
Id String - Droplet project ID
- region String
- Droplet region
- size String
- Droplet size
- ssh
Keys List<String> - Droplet SSH keys
- List<String>
- Droplet tags
- user
Data String - Droplet user data
- vpc
Uuid String - Droplet VPC UUID
- with
Droplet BooleanAgent - 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
- Sequence[str]
- Droplet tags
- user_
data str - Droplet user data
- vpc_
uuid str - Droplet VPC UUID
- with_
droplet_ boolagent - Enable droplet agent
- image String
- Droplet image
- ipv6 Boolean
- Enable droplet IPv6
- project
Id String - Droplet project ID
- region String
- Droplet region
- size String
- Droplet size
- ssh
Keys List<String> - Droplet SSH keys
- List<String>
- Droplet tags
- user
Data String - Droplet user data
- vpc
Uuid String - Droplet VPC UUID
- with
Droplet BooleanAgent - 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.