Digitalocean Functions
Functions
Get information on your DigitalOcean account.
Get information on a DigitalOcean App.
Get information on a certificate. This data source provides the name, type, state, domains, expiry date, and the sha1 fingerprint as configured on your DigitalOcean account. This is useful if the certificate in question is not managed by this provider or you need to utilize any of the certificates data. An error is triggered if the provided certificate name does not exist.
Get information on a container registry. This data source provides the name as configured on your DigitalOcean account. This is useful if the container registry name in question is not managed by this provider or you need validate if the container registry exists in the account. An error is triggered if the provided container registry name does not exist.
Provides the CA certificate for a DigitalOcean database.
Provides information on a DigitalOcean database cluster resource.
Provides information on a DigitalOcean PostgreSQL database connection pool.
Provides information on a DigitalOcean database replica.
Provides information on a DigitalOcean database user resource.
Get information on a domain. This data source provides the name, TTL, and zone file as configured on your DigitalOcean account. This is useful if the domain name in question is not managed by this provider or you need to utilize TTL or zone file data. An error is triggered if the provided domain name is not managed with your DigitalOcean account.
Get information on domains for use in other resources, with the ability to filter and sort the results. If no filters are specified, all domains will be returned. This data source is useful if the domains in question are not managed by this provider or you need to utilize any of the domains' data. Note: You can use the digitalocean.Domain
data source to obtain metadata about a single domain if you already know the name
.
Get information on a Droplet for use in other resources. This data source provides all of the Droplet's properties as configured on your DigitalOcean account. This is useful if the Droplet in question is not managed by this provider or you need to utilize any of the Droplet's data. Note: This data source returns a single Droplet. When specifying a tag
, an error is triggered if more than one Droplet is found.
Get the Droplet Autoscale pool by name:
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.
Droplet snapshots are saved instances of a Droplet. Use this data source to retrieve the ID of a DigitalOcean Droplet snapshot for use in other resources.
Get information on a DigitalOcean Firewall.
Get the floating IP:
Get information on an image for use in other resources (e.g. creating a Droplet based on snapshot). This data source provides all of the image properties as configured on your DigitalOcean account. This is useful if the image in question is not managed by the provider or you need to utilize any of the image's data. An error is triggered if zero or more than one result is returned by the query.
Get information on images for use in other resources (e.g. creating a Droplet based on a snapshot), with the ability to filter and sort the results. If no filters are specified, all images will be returned. This data source is useful if the image in question is not managed by the provider or you need to utilize any of the image's data. Note: You can use the digitalocean.getImage
data source to obtain metadata about a single image if you already know the slug
, unique name
, or id
to retrieve.
Retrieves information about a DigitalOcean Kubernetes cluster for use in other resources. This data source provides all of the cluster's properties as configured on your DigitalOcean account. This is useful if the cluster in question is not managed by the provider.
Provides access to the available DigitalOcean Kubernetes Service versions.
Get information on a load balancer for use in other resources. This data source provides all of the load balancers properties as configured on your DigitalOcean account. This is useful if the load balancer in question is not managed by the provider or you need to utilize any of the load balancers data. An error is triggered if the provided load balancer name does not exist.
Get information on a single DigitalOcean project. If neither the id
nor name
attributes are provided, then this data source returns the default project.
Retrieve information about all DigitalOcean projects associated with an account, with the ability to filter and sort the results. If no filters are specified, all projects will be returned. Note: You can use the digitalocean.Project
data source to obtain metadata about a single project if you already know the id
to retrieve or the unique name
of the project.
Get information on a DNS record. This data source provides the name, TTL, and zone file as configured on your DigitalOcean account. This is useful if the record in question is not managed by the provider. An error is triggered if the provided domain name or record are not managed with your DigitalOcean account.
Retrieve information about all DNS records within a domain, with the ability to filter and sort the results. If no filters are specified, all records will be returned.
Get information on a single DigitalOcean region. This is useful to find out what Droplet sizes and features are supported within a region.
Retrieve information about all supported DigitalOcean regions, with the ability to filter and sort the results. If no filters are specified, all regions will be returned. Note: You can use the digitalocean.getRegion
data source to obtain metadata about a single region if you already know the slug
to retrieve.
Get the reserved IP:
Get the reserved IPv6:
Retrieves information about the Droplet sizes that DigitalOcean supports, with the ability to filter and sort the results. If no filters are specified, all sizes will be returned.
Get information on a Spaces bucket for use in other resources. This is useful if the Spaces bucket in question is not managed by the provider or you need to utilize any of the bucket's data.
The Spaces object data source allows access to the metadata and optionally (see below) content of an object stored inside a Spaces bucket.
Get information on Spaces buckets for use in other resources, with the ability to filter and sort the results. If no filters are specified, all Spaces buckets will be returned. Note: You can use the digitalocean.SpacesBucket
data source to obtain metadata about a single bucket if you already know its name
and region
.
Get the key by access key ID:
Get information on a ssh key. This data source provides the name, public key, and fingerprint as configured on your DigitalOcean account. This is useful if the ssh key in question is not managed by the provider or you need to utilize any of the keys data. An error is triggered if the provided ssh key name does not exist.
Get information on SSH Keys for use in other resources. This data source is useful if the SSH Keys in question are not managed by the provider or you need to utilize any of the SSH Keys' data. Note: You can use the digitalocean.SshKey
data source to obtain metadata about a single SSH Key if you already know the unique name
to retrieve.
Get information on a tag. This data source provides the name as configured on your DigitalOcean account. This is useful if the tag name in question is not managed by the provider or you need validate if the tag exists in the account. An error is triggered if the provided tag name does not exist.
Returns a list of tags in your DigitalOcean account, with the ability to filter and sort the results. If no filters are specified, all tags will be returned.
Get information on a volume for use in other resources. This data source provides all of the volumes properties as configured on your DigitalOcean account. This is useful if the volume in question is not managed by the provider or you need to utilize any of the volumes data. An error is triggered if the provided volume name does not exist.
Volume snapshots are saved instances of a block storage volume. Use this data source to retrieve the ID of a DigitalOcean volume snapshot for use in other resources.
Retrieve information about a VPC for use in other resources. This data source provides all of the VPC's properties as configured on your DigitalOcean account. This is useful if the VPC in question is not managed by the provider or you need to utilize any of the VPC's data. VPCs may be looked up by id
or name
. Specifying a region
will return that that region's default VPC.