GetContainerRegistry

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.

Example Usage

Basic Example

using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(DigitalOcean.GetContainerRegistry.InvokeAsync(new DigitalOcean.GetContainerRegistryArgs
        {
            Name = "example",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_digitalocean as digitalocean

example = digitalocean.get_container_registry(name="example")
import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";

const example = pulumi.output(digitalocean.getContainerRegistry({
    name: "example",
}, { async: true }));

Using GetContainerRegistry

function getContainerRegistry(args: GetContainerRegistryArgs, opts?: InvokeOptions): Promise<GetContainerRegistryResult>
function  get_container_registry(name=None, opts=None)
func LookupContainerRegistry(ctx *Context, args *LookupContainerRegistryArgs, opts ...InvokeOption) (*LookupContainerRegistryResult, error)

Note: This function is named LookupContainerRegistry in the Go SDK.

public static class GetContainerRegistry {
    public static Task<GetContainerRegistryResult> InvokeAsync(GetContainerRegistryArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the container registry.

Name string

The name of the container registry.

name string

The name of the container registry.

name str

The name of the container registry.

GetContainerRegistry Result

The following output properties are available:

Endpoint string
Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the container registry * 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

ServerUrl string
Endpoint string
Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the container registry * 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

ServerUrl string
endpoint string
id string

The provider-assigned unique ID for this managed resource.

name string

The name of the container registry * 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

serverUrl string
endpoint str
id str

The provider-assigned unique ID for this managed resource.

name str

The name of the container registry * 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

server_url str

Package Details

Repository
https://github.com/pulumi/pulumi-digitalocean
License
Apache-2.0
Notes
This Pulumi package is based on the digitalocean Terraform Provider.