digitalocean.getDroplets
Explore with Pulumi AI
Get information on Droplets for use in other resources, with the ability to filter and sort the results. If no filters are specified, all Droplets will be returned.
This data source is useful if the Droplets in question are not managed by the provider or you need to utilize any of the Droplets’ data.
By default, only non-GPU Droplets are returned. To list only GPU Droplets, set
the gpus
attribute to true
.
Note: You can use the digitalocean.Droplet
data source to obtain metadata
about a single Droplet if you already know the id
, unique name
, or unique tag
to retrieve.
Example Usage
Use the filter
block with a key
string and values
list to filter images.
For example to find all Droplets with size s-1vcpu-1gb
:
import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";
const small = digitalocean.getDroplets({
filters: [{
key: "size",
values: ["s-1vcpu-1gb"],
}],
});
import pulumi
import pulumi_digitalocean as digitalocean
small = digitalocean.get_droplets(filters=[{
"key": "size",
"values": ["s-1vcpu-1gb"],
}])
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.GetDroplets(ctx, &digitalocean.GetDropletsArgs{
Filters: []digitalocean.GetDropletsFilter{
{
Key: "size",
Values: []string{
"s-1vcpu-1gb",
},
},
},
}, 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 small = DigitalOcean.GetDroplets.Invoke(new()
{
Filters = new[]
{
new DigitalOcean.Inputs.GetDropletsFilterInputArgs
{
Key = "size",
Values = new[]
{
"s-1vcpu-1gb",
},
},
},
});
});
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.GetDropletsArgs;
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 small = DigitaloceanFunctions.getDroplets(GetDropletsArgs.builder()
.filters(GetDropletsFilterArgs.builder()
.key("size")
.values("s-1vcpu-1gb")
.build())
.build());
}
}
variables:
small:
fn::invoke:
function: digitalocean:getDroplets
arguments:
filters:
- key: size
values:
- s-1vcpu-1gb
You can filter on multiple fields and sort the results as well:
import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";
const small_with_backups = digitalocean.getDroplets({
filters: [
{
key: "size",
values: ["s-1vcpu-1gb"],
},
{
key: "backups",
values: ["true"],
},
],
sorts: [{
key: "created_at",
direction: "desc",
}],
});
import pulumi
import pulumi_digitalocean as digitalocean
small_with_backups = digitalocean.get_droplets(filters=[
{
"key": "size",
"values": ["s-1vcpu-1gb"],
},
{
"key": "backups",
"values": ["true"],
},
],
sorts=[{
"key": "created_at",
"direction": "desc",
}])
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.GetDroplets(ctx, &digitalocean.GetDropletsArgs{
Filters: []digitalocean.GetDropletsFilter{
{
Key: "size",
Values: []string{
"s-1vcpu-1gb",
},
},
{
Key: "backups",
Values: []string{
"true",
},
},
},
Sorts: []digitalocean.GetDropletsSort{
{
Key: "created_at",
Direction: pulumi.StringRef("desc"),
},
},
}, 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 small_with_backups = DigitalOcean.GetDroplets.Invoke(new()
{
Filters = new[]
{
new DigitalOcean.Inputs.GetDropletsFilterInputArgs
{
Key = "size",
Values = new[]
{
"s-1vcpu-1gb",
},
},
new DigitalOcean.Inputs.GetDropletsFilterInputArgs
{
Key = "backups",
Values = new[]
{
"true",
},
},
},
Sorts = new[]
{
new DigitalOcean.Inputs.GetDropletsSortInputArgs
{
Key = "created_at",
Direction = "desc",
},
},
});
});
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.GetDropletsArgs;
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 small-with-backups = DigitaloceanFunctions.getDroplets(GetDropletsArgs.builder()
.filters(
GetDropletsFilterArgs.builder()
.key("size")
.values("s-1vcpu-1gb")
.build(),
GetDropletsFilterArgs.builder()
.key("backups")
.values("true")
.build())
.sorts(GetDropletsSortArgs.builder()
.key("created_at")
.direction("desc")
.build())
.build());
}
}
variables:
small-with-backups:
fn::invoke:
function: digitalocean:getDroplets
arguments:
filters:
- key: size
values:
- s-1vcpu-1gb
- key: backups
values:
- 'true'
sorts:
- key: created_at
direction: desc
Using getDroplets
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 getDroplets(args: GetDropletsArgs, opts?: InvokeOptions): Promise<GetDropletsResult>
function getDropletsOutput(args: GetDropletsOutputArgs, opts?: InvokeOptions): Output<GetDropletsResult>
def get_droplets(filters: Optional[Sequence[GetDropletsFilter]] = None,
gpus: Optional[bool] = None,
sorts: Optional[Sequence[GetDropletsSort]] = None,
opts: Optional[InvokeOptions] = None) -> GetDropletsResult
def get_droplets_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDropletsFilterArgs]]]] = None,
gpus: Optional[pulumi.Input[bool]] = None,
sorts: Optional[pulumi.Input[Sequence[pulumi.Input[GetDropletsSortArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDropletsResult]
func GetDroplets(ctx *Context, args *GetDropletsArgs, opts ...InvokeOption) (*GetDropletsResult, error)
func GetDropletsOutput(ctx *Context, args *GetDropletsOutputArgs, opts ...InvokeOption) GetDropletsResultOutput
> Note: This function is named GetDroplets
in the Go SDK.
public static class GetDroplets
{
public static Task<GetDropletsResult> InvokeAsync(GetDropletsArgs args, InvokeOptions? opts = null)
public static Output<GetDropletsResult> Invoke(GetDropletsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDropletsResult> getDroplets(GetDropletsArgs args, InvokeOptions options)
public static Output<GetDropletsResult> getDroplets(GetDropletsArgs args, InvokeOptions options)
fn::invoke:
function: digitalocean:index/getDroplets:getDroplets
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<Pulumi.
Digital Ocean. Inputs. Get Droplets Filter> - Filter the results.
The
filter
block is documented below. - Gpus bool
- A boolean value specifying whether or not to list GPU Droplets
- Sorts
List<Pulumi.
Digital Ocean. Inputs. Get Droplets Sort> - Sort the results.
The
sort
block is documented below.
- Filters
[]Get
Droplets Filter - Filter the results.
The
filter
block is documented below. - Gpus bool
- A boolean value specifying whether or not to list GPU Droplets
- Sorts
[]Get
Droplets Sort - Sort the results.
The
sort
block is documented below.
- filters
List<Get
Droplets Filter> - Filter the results.
The
filter
block is documented below. - gpus Boolean
- A boolean value specifying whether or not to list GPU Droplets
- sorts
List<Get
Droplets Sort> - Sort the results.
The
sort
block is documented below.
- filters
Get
Droplets Filter[] - Filter the results.
The
filter
block is documented below. - gpus boolean
- A boolean value specifying whether or not to list GPU Droplets
- sorts
Get
Droplets Sort[] - Sort the results.
The
sort
block is documented below.
- filters
Sequence[Get
Droplets Filter] - Filter the results.
The
filter
block is documented below. - gpus bool
- A boolean value specifying whether or not to list GPU Droplets
- sorts
Sequence[Get
Droplets Sort] - Sort the results.
The
sort
block is documented below.
- filters List<Property Map>
- Filter the results.
The
filter
block is documented below. - gpus Boolean
- A boolean value specifying whether or not to list GPU Droplets
- sorts List<Property Map>
- Sort the results.
The
sort
block is documented below.
getDroplets Result
The following output properties are available:
- Droplets
List<Pulumi.
Digital Ocean. Outputs. Get Droplets Droplet> - A list of Droplets satisfying any
filter
andsort
criteria. Each Droplet has the following attributes: - Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Pulumi.
Digital Ocean. Outputs. Get Droplets Filter> - Gpus bool
- Sorts
List<Pulumi.
Digital Ocean. Outputs. Get Droplets Sort>
- Droplets
[]Get
Droplets Droplet - A list of Droplets satisfying any
filter
andsort
criteria. Each Droplet has the following attributes: - Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Droplets Filter - Gpus bool
- Sorts
[]Get
Droplets Sort
- droplets
List<Get
Droplets Droplet> - A list of Droplets satisfying any
filter
andsort
criteria. Each Droplet has the following attributes: - id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Droplets Filter> - gpus Boolean
- sorts
List<Get
Droplets Sort>
- droplets
Get
Droplets Droplet[] - A list of Droplets satisfying any
filter
andsort
criteria. Each Droplet has the following attributes: - id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Droplets Filter[] - gpus boolean
- sorts
Get
Droplets Sort[]
- droplets
Sequence[Get
Droplets Droplet] - A list of Droplets satisfying any
filter
andsort
criteria. Each Droplet has the following attributes: - id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[Get
Droplets Filter] - gpus bool
- sorts
Sequence[Get
Droplets Sort]
- droplets List<Property Map>
- A list of Droplets satisfying any
filter
andsort
criteria. Each Droplet has the following attributes: - id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- gpus Boolean
- sorts List<Property Map>
Supporting Types
GetDropletsDroplet
- Backups
This property is required. bool - Whether backups are enabled.
- Created
At This property is required. string - the creation date for the Droplet
- Disk
This property is required. int - The size of the Droplet's disk in GB.
- Id
This property is required. int - The ID of the Droplet.
- Image
This property is required. string - The Droplet image ID or slug.
- Ipv4Address
This property is required. string - The Droplet's public IPv4 address
- Ipv4Address
Private This property is required. string - The Droplet's private IPv4 address
- Ipv6
This property is required. bool - Whether IPv6 is enabled.
- Ipv6Address
This property is required. string - The Droplet's public IPv6 address
- Ipv6Address
Private This property is required. string - The Droplet's private IPv6 address
- Locked
This property is required. bool - Whether the Droplet is locked.
- Memory
This property is required. int - The amount of the Droplet's memory in MB.
- Monitoring
This property is required. bool - Whether monitoring agent is installed.
- Name
This property is required. string - name of the Droplet
- Price
Hourly This property is required. double - Droplet hourly price.
- Price
Monthly This property is required. double - Droplet monthly price.
- Private
Networking This property is required. bool - Whether private networks are enabled.
- Region
This property is required. string - The region the Droplet is running in.
- Size
This property is required. string - The unique slug that identifies the type of Droplet.
- Status
This property is required. string - The status of the Droplet.
This property is required. List<string>- A list of the tags associated to the Droplet.
- Urn
This property is required. string - The uniform resource name of the Droplet
- Vcpus
This property is required. int - The number of the Droplet's virtual CPUs.
- Volume
Ids This property is required. List<string> - List of the IDs of each volumes attached to the Droplet.
- Vpc
Uuid This property is required. string - The ID of the VPC where the Droplet is located.
- Backups
This property is required. bool - Whether backups are enabled.
- Created
At This property is required. string - the creation date for the Droplet
- Disk
This property is required. int - The size of the Droplet's disk in GB.
- Id
This property is required. int - The ID of the Droplet.
- Image
This property is required. string - The Droplet image ID or slug.
- Ipv4Address
This property is required. string - The Droplet's public IPv4 address
- Ipv4Address
Private This property is required. string - The Droplet's private IPv4 address
- Ipv6
This property is required. bool - Whether IPv6 is enabled.
- Ipv6Address
This property is required. string - The Droplet's public IPv6 address
- Ipv6Address
Private This property is required. string - The Droplet's private IPv6 address
- Locked
This property is required. bool - Whether the Droplet is locked.
- Memory
This property is required. int - The amount of the Droplet's memory in MB.
- Monitoring
This property is required. bool - Whether monitoring agent is installed.
- Name
This property is required. string - name of the Droplet
- Price
Hourly This property is required. float64 - Droplet hourly price.
- Price
Monthly This property is required. float64 - Droplet monthly price.
- Private
Networking This property is required. bool - Whether private networks are enabled.
- Region
This property is required. string - The region the Droplet is running in.
- Size
This property is required. string - The unique slug that identifies the type of Droplet.
- Status
This property is required. string - The status of the Droplet.
This property is required. []string- A list of the tags associated to the Droplet.
- Urn
This property is required. string - The uniform resource name of the Droplet
- Vcpus
This property is required. int - The number of the Droplet's virtual CPUs.
- Volume
Ids This property is required. []string - List of the IDs of each volumes attached to the Droplet.
- Vpc
Uuid This property is required. string - The ID of the VPC where the Droplet is located.
- backups
This property is required. Boolean - Whether backups are enabled.
- created
At This property is required. String - the creation date for the Droplet
- disk
This property is required. Integer - The size of the Droplet's disk in GB.
- id
This property is required. Integer - The ID of the Droplet.
- image
This property is required. String - The Droplet image ID or slug.
- ipv4Address
This property is required. String - The Droplet's public IPv4 address
- ipv4Address
Private This property is required. String - The Droplet's private IPv4 address
- ipv6
This property is required. Boolean - Whether IPv6 is enabled.
- ipv6Address
This property is required. String - The Droplet's public IPv6 address
- ipv6Address
Private This property is required. String - The Droplet's private IPv6 address
- locked
This property is required. Boolean - Whether the Droplet is locked.
- memory
This property is required. Integer - The amount of the Droplet's memory in MB.
- monitoring
This property is required. Boolean - Whether monitoring agent is installed.
- name
This property is required. String - name of the Droplet
- price
Hourly This property is required. Double - Droplet hourly price.
- price
Monthly This property is required. Double - Droplet monthly price.
- private
Networking This property is required. Boolean - Whether private networks are enabled.
- region
This property is required. String - The region the Droplet is running in.
- size
This property is required. String - The unique slug that identifies the type of Droplet.
- status
This property is required. String - The status of the Droplet.
This property is required. List<String>- A list of the tags associated to the Droplet.
- urn
This property is required. String - The uniform resource name of the Droplet
- vcpus
This property is required. Integer - The number of the Droplet's virtual CPUs.
- volume
Ids This property is required. List<String> - List of the IDs of each volumes attached to the Droplet.
- vpc
Uuid This property is required. String - The ID of the VPC where the Droplet is located.
- backups
This property is required. boolean - Whether backups are enabled.
- created
At This property is required. string - the creation date for the Droplet
- disk
This property is required. number - The size of the Droplet's disk in GB.
- id
This property is required. number - The ID of the Droplet.
- image
This property is required. string - The Droplet image ID or slug.
- ipv4Address
This property is required. string - The Droplet's public IPv4 address
- ipv4Address
Private This property is required. string - The Droplet's private IPv4 address
- ipv6
This property is required. boolean - Whether IPv6 is enabled.
- ipv6Address
This property is required. string - The Droplet's public IPv6 address
- ipv6Address
Private This property is required. string - The Droplet's private IPv6 address
- locked
This property is required. boolean - Whether the Droplet is locked.
- memory
This property is required. number - The amount of the Droplet's memory in MB.
- monitoring
This property is required. boolean - Whether monitoring agent is installed.
- name
This property is required. string - name of the Droplet
- price
Hourly This property is required. number - Droplet hourly price.
- price
Monthly This property is required. number - Droplet monthly price.
- private
Networking This property is required. boolean - Whether private networks are enabled.
- region
This property is required. string - The region the Droplet is running in.
- size
This property is required. string - The unique slug that identifies the type of Droplet.
- status
This property is required. string - The status of the Droplet.
This property is required. string[]- A list of the tags associated to the Droplet.
- urn
This property is required. string - The uniform resource name of the Droplet
- vcpus
This property is required. number - The number of the Droplet's virtual CPUs.
- volume
Ids This property is required. string[] - List of the IDs of each volumes attached to the Droplet.
- vpc
Uuid This property is required. string - The ID of the VPC where the Droplet is located.
- backups
This property is required. bool - Whether backups are enabled.
- created_
at This property is required. str - the creation date for the Droplet
- disk
This property is required. int - The size of the Droplet's disk in GB.
- id
This property is required. int - The ID of the Droplet.
- image
This property is required. str - The Droplet image ID or slug.
- ipv4_
address This property is required. str - The Droplet's public IPv4 address
- ipv4_
address_ private This property is required. str - The Droplet's private IPv4 address
- ipv6
This property is required. bool - Whether IPv6 is enabled.
- ipv6_
address This property is required. str - The Droplet's public IPv6 address
- ipv6_
address_ private This property is required. str - The Droplet's private IPv6 address
- locked
This property is required. bool - Whether the Droplet is locked.
- memory
This property is required. int - The amount of the Droplet's memory in MB.
- monitoring
This property is required. bool - Whether monitoring agent is installed.
- name
This property is required. str - name of the Droplet
- price_
hourly This property is required. float - Droplet hourly price.
- price_
monthly This property is required. float - Droplet monthly price.
- private_
networking This property is required. bool - Whether private networks are enabled.
- region
This property is required. str - The region the Droplet is running in.
- size
This property is required. str - The unique slug that identifies the type of Droplet.
- status
This property is required. str - The status of the Droplet.
This property is required. Sequence[str]- A list of the tags associated to the Droplet.
- urn
This property is required. str - The uniform resource name of the Droplet
- vcpus
This property is required. int - The number of the Droplet's virtual CPUs.
- volume_
ids This property is required. Sequence[str] - List of the IDs of each volumes attached to the Droplet.
- vpc_
uuid This property is required. str - The ID of the VPC where the Droplet is located.
- backups
This property is required. Boolean - Whether backups are enabled.
- created
At This property is required. String - the creation date for the Droplet
- disk
This property is required. Number - The size of the Droplet's disk in GB.
- id
This property is required. Number - The ID of the Droplet.
- image
This property is required. String - The Droplet image ID or slug.
- ipv4Address
This property is required. String - The Droplet's public IPv4 address
- ipv4Address
Private This property is required. String - The Droplet's private IPv4 address
- ipv6
This property is required. Boolean - Whether IPv6 is enabled.
- ipv6Address
This property is required. String - The Droplet's public IPv6 address
- ipv6Address
Private This property is required. String - The Droplet's private IPv6 address
- locked
This property is required. Boolean - Whether the Droplet is locked.
- memory
This property is required. Number - The amount of the Droplet's memory in MB.
- monitoring
This property is required. Boolean - Whether monitoring agent is installed.
- name
This property is required. String - name of the Droplet
- price
Hourly This property is required. Number - Droplet hourly price.
- price
Monthly This property is required. Number - Droplet monthly price.
- private
Networking This property is required. Boolean - Whether private networks are enabled.
- region
This property is required. String - The region the Droplet is running in.
- size
This property is required. String - The unique slug that identifies the type of Droplet.
- status
This property is required. String - The status of the Droplet.
This property is required. List<String>- A list of the tags associated to the Droplet.
- urn
This property is required. String - The uniform resource name of the Droplet
- vcpus
This property is required. Number - The number of the Droplet's virtual CPUs.
- volume
Ids This property is required. List<String> - List of the IDs of each volumes attached to the Droplet.
- vpc
Uuid This property is required. String - The ID of the VPC where the Droplet is located.
GetDropletsFilter
- Key
This property is required. string - Filter the Droplets by this key. This may be one of
backups
,created_at
,disk
,id
,image
,ipv4_address
,ipv4_address_private
,ipv6
,ipv6_address
,ipv6_address_private
,locked
,memory
,monitoring
,name
,price_hourly
,price_monthly
,private_networking
,region
,size
,status
,tags
,urn
,vcpus
,volume_ids
, orvpc_uuid
. - Values
This property is required. List<string> - A list of values to match against the
key
field. Only retrieves Droplets where thekey
field takes on one or more of the values provided here. - All bool
- Set to
true
to require that a field match all of thevalues
instead of just one or more of them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure that all of thevalues
are present in the list or set. - Match
By string - One of
exact
(default),re
, orsubstring
. For string-typed fields, specifyre
to match by using thevalues
as regular expressions, or specifysubstring
to match by treating thevalues
as substrings to find within the string field.
- Key
This property is required. string - Filter the Droplets by this key. This may be one of
backups
,created_at
,disk
,id
,image
,ipv4_address
,ipv4_address_private
,ipv6
,ipv6_address
,ipv6_address_private
,locked
,memory
,monitoring
,name
,price_hourly
,price_monthly
,private_networking
,region
,size
,status
,tags
,urn
,vcpus
,volume_ids
, orvpc_uuid
. - Values
This property is required. []string - A list of values to match against the
key
field. Only retrieves Droplets where thekey
field takes on one or more of the values provided here. - All bool
- Set to
true
to require that a field match all of thevalues
instead of just one or more of them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure that all of thevalues
are present in the list or set. - Match
By string - One of
exact
(default),re
, orsubstring
. For string-typed fields, specifyre
to match by using thevalues
as regular expressions, or specifysubstring
to match by treating thevalues
as substrings to find within the string field.
- key
This property is required. String - Filter the Droplets by this key. This may be one of
backups
,created_at
,disk
,id
,image
,ipv4_address
,ipv4_address_private
,ipv6
,ipv6_address
,ipv6_address_private
,locked
,memory
,monitoring
,name
,price_hourly
,price_monthly
,private_networking
,region
,size
,status
,tags
,urn
,vcpus
,volume_ids
, orvpc_uuid
. - values
This property is required. List<String> - A list of values to match against the
key
field. Only retrieves Droplets where thekey
field takes on one or more of the values provided here. - all Boolean
- Set to
true
to require that a field match all of thevalues
instead of just one or more of them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure that all of thevalues
are present in the list or set. - match
By String - One of
exact
(default),re
, orsubstring
. For string-typed fields, specifyre
to match by using thevalues
as regular expressions, or specifysubstring
to match by treating thevalues
as substrings to find within the string field.
- key
This property is required. string - Filter the Droplets by this key. This may be one of
backups
,created_at
,disk
,id
,image
,ipv4_address
,ipv4_address_private
,ipv6
,ipv6_address
,ipv6_address_private
,locked
,memory
,monitoring
,name
,price_hourly
,price_monthly
,private_networking
,region
,size
,status
,tags
,urn
,vcpus
,volume_ids
, orvpc_uuid
. - values
This property is required. string[] - A list of values to match against the
key
field. Only retrieves Droplets where thekey
field takes on one or more of the values provided here. - all boolean
- Set to
true
to require that a field match all of thevalues
instead of just one or more of them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure that all of thevalues
are present in the list or set. - match
By string - One of
exact
(default),re
, orsubstring
. For string-typed fields, specifyre
to match by using thevalues
as regular expressions, or specifysubstring
to match by treating thevalues
as substrings to find within the string field.
- key
This property is required. str - Filter the Droplets by this key. This may be one of
backups
,created_at
,disk
,id
,image
,ipv4_address
,ipv4_address_private
,ipv6
,ipv6_address
,ipv6_address_private
,locked
,memory
,monitoring
,name
,price_hourly
,price_monthly
,private_networking
,region
,size
,status
,tags
,urn
,vcpus
,volume_ids
, orvpc_uuid
. - values
This property is required. Sequence[str] - A list of values to match against the
key
field. Only retrieves Droplets where thekey
field takes on one or more of the values provided here. - all bool
- Set to
true
to require that a field match all of thevalues
instead of just one or more of them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure that all of thevalues
are present in the list or set. - match_
by str - One of
exact
(default),re
, orsubstring
. For string-typed fields, specifyre
to match by using thevalues
as regular expressions, or specifysubstring
to match by treating thevalues
as substrings to find within the string field.
- key
This property is required. String - Filter the Droplets by this key. This may be one of
backups
,created_at
,disk
,id
,image
,ipv4_address
,ipv4_address_private
,ipv6
,ipv6_address
,ipv6_address_private
,locked
,memory
,monitoring
,name
,price_hourly
,price_monthly
,private_networking
,region
,size
,status
,tags
,urn
,vcpus
,volume_ids
, orvpc_uuid
. - values
This property is required. List<String> - A list of values to match against the
key
field. Only retrieves Droplets where thekey
field takes on one or more of the values provided here. - all Boolean
- Set to
true
to require that a field match all of thevalues
instead of just one or more of them. This is useful when matching against multi-valued fields such as lists or sets where you want to ensure that all of thevalues
are present in the list or set. - match
By String - One of
exact
(default),re
, orsubstring
. For string-typed fields, specifyre
to match by using thevalues
as regular expressions, or specifysubstring
to match by treating thevalues
as substrings to find within the string field.
GetDropletsSort
- Key
This property is required. string - Sort the Droplets by this key. This may be one of
backups
,created_at
,disk
,id
,image
,ipv4_address
,ipv4_address_private
,ipv6
,ipv6_address
,ipv6_address_private
,locked
,memory
,monitoring
,name
,price_hourly
,price_monthly
,private_networking
,region
,size
,status
,urn
,vcpus
, orvpc_uuid
. - Direction string
- The sort direction. This may be either
asc
ordesc
.
- Key
This property is required. string - Sort the Droplets by this key. This may be one of
backups
,created_at
,disk
,id
,image
,ipv4_address
,ipv4_address_private
,ipv6
,ipv6_address
,ipv6_address_private
,locked
,memory
,monitoring
,name
,price_hourly
,price_monthly
,private_networking
,region
,size
,status
,urn
,vcpus
, orvpc_uuid
. - Direction string
- The sort direction. This may be either
asc
ordesc
.
- key
This property is required. String - Sort the Droplets by this key. This may be one of
backups
,created_at
,disk
,id
,image
,ipv4_address
,ipv4_address_private
,ipv6
,ipv6_address
,ipv6_address_private
,locked
,memory
,monitoring
,name
,price_hourly
,price_monthly
,private_networking
,region
,size
,status
,urn
,vcpus
, orvpc_uuid
. - direction String
- The sort direction. This may be either
asc
ordesc
.
- key
This property is required. string - Sort the Droplets by this key. This may be one of
backups
,created_at
,disk
,id
,image
,ipv4_address
,ipv4_address_private
,ipv6
,ipv6_address
,ipv6_address_private
,locked
,memory
,monitoring
,name
,price_hourly
,price_monthly
,private_networking
,region
,size
,status
,urn
,vcpus
, orvpc_uuid
. - direction string
- The sort direction. This may be either
asc
ordesc
.
- key
This property is required. str - Sort the Droplets by this key. This may be one of
backups
,created_at
,disk
,id
,image
,ipv4_address
,ipv4_address_private
,ipv6
,ipv6_address
,ipv6_address_private
,locked
,memory
,monitoring
,name
,price_hourly
,price_monthly
,private_networking
,region
,size
,status
,urn
,vcpus
, orvpc_uuid
. - direction str
- The sort direction. This may be either
asc
ordesc
.
- key
This property is required. String - Sort the Droplets by this key. This may be one of
backups
,created_at
,disk
,id
,image
,ipv4_address
,ipv4_address_private
,ipv6
,ipv6_address
,ipv6_address_private
,locked
,memory
,monitoring
,name
,price_hourly
,price_monthly
,private_networking
,region
,size
,status
,urn
,vcpus
, orvpc_uuid
. - direction String
- The sort direction. This may be either
asc
ordesc
.
Package Details
- Repository
- DigitalOcean pulumi/pulumi-digitalocean
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
digitalocean
Terraform Provider.