digitalocean_container_registry

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 Terraform 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.

Example Usage

Basic Example

Get the container registry:

data "digitalocean_container_registry" "example" {
  name = "example"
}

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the container registry.

Attributes Reference

The following attributes are exported:

  • id: The ID of the tag. This is the same as the name.
  • name - The name of the container registry
  • subscription_tier_slug - The slug identifier for the subscription tier
  • region - The slug identifier for the region
  • endpoint - The URL endpoint of the container registry. Ex: registry.digitalocean.com/my_registry
  • server_url - The domain of the container registry. Ex: registry.digitalocean.com
  • storage_usage_bytes - The amount of storage used in the registry in bytes.
  • created_at - The date and time when the registry was created