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.
Get the container registry:
data "digitalocean_container_registry" "example" {
name = "example"
}
The following arguments are supported:
name
- (Required) The name of the container registry.The following attributes are exported:
id
: The ID of the tag. This is the same as the name.name
- The name of the container registrysubscription_tier_slug
- The slug identifier for the subscription tierregion
- The slug identifier for the regionendpoint
- 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