ContainerRegistryDockerCredentials

Get Docker credentials for your DigitalOcean container registry.

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 = new DigitalOcean.ContainerRegistryDockerCredentials("example", new DigitalOcean.ContainerRegistryDockerCredentialsArgs
        {
            RegistryName = "example",
        });
    }

}

Coming soon!

import pulumi
import pulumi_digitalocean as digitalocean

example = digitalocean.ContainerRegistryDockerCredentials("example", registry_name="example")
import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";

const example = new digitalocean.ContainerRegistryDockerCredentials("example", {
    registryName: "example",
});

Docker Provider Example

using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;

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

}

Coming soon!

import pulumi
import pulumi_digitalocean as digitalocean

example_container_registry = digitalocean.get_container_registry(name="example")
example_container_registry_docker_credentials = digitalocean.ContainerRegistryDockerCredentials("exampleContainerRegistryDockerCredentials", registry_name="example")
import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";

const exampleContainerRegistry = digitalocean.getContainerRegistry({
    name: "example",
});
const exampleContainerRegistryDockerCredentials = new digitalocean.ContainerRegistryDockerCredentials("exampleContainerRegistryDockerCredentials", {registryName: "example"});

Create a ContainerRegistryDockerCredentials Resource

def ContainerRegistryDockerCredentials(resource_name, opts=None, expiry_seconds=None, registry_name=None, write=None, __props__=None);
name string
The unique name of the resource.
args ContainerRegistryDockerCredentialsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ContainerRegistryDockerCredentialsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ContainerRegistryDockerCredentialsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ContainerRegistryDockerCredentials Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The ContainerRegistryDockerCredentials resource accepts the following input properties:

RegistryName string

The name of the container registry.

ExpirySeconds int

The amount of time to pass before the Docker credentials expire in seconds. Defaults to 2147483647, or roughly 68 years. Must be greater than 0 and less than 2147483647.

Write bool

Allow for write access to the container registry. Defaults to false.

RegistryName string

The name of the container registry.

ExpirySeconds int

The amount of time to pass before the Docker credentials expire in seconds. Defaults to 2147483647, or roughly 68 years. Must be greater than 0 and less than 2147483647.

Write bool

Allow for write access to the container registry. Defaults to false.

registryName string

The name of the container registry.

expirySeconds number

The amount of time to pass before the Docker credentials expire in seconds. Defaults to 2147483647, or roughly 68 years. Must be greater than 0 and less than 2147483647.

write boolean

Allow for write access to the container registry. Defaults to false.

registry_name str

The name of the container registry.

expiry_seconds float

The amount of time to pass before the Docker credentials expire in seconds. Defaults to 2147483647, or roughly 68 years. Must be greater than 0 and less than 2147483647.

write bool

Allow for write access to the container registry. Defaults to false.

Outputs

All input properties are implicitly available as output properties. Additionally, the ContainerRegistryDockerCredentials resource produces the following output properties:

CredentialExpirationTime string
DockerCredentials string
Id string
The provider-assigned unique ID for this managed resource.
CredentialExpirationTime string
DockerCredentials string
Id string
The provider-assigned unique ID for this managed resource.
credentialExpirationTime string
dockerCredentials string
id string
The provider-assigned unique ID for this managed resource.
credential_expiration_time str
docker_credentials str
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing ContainerRegistryDockerCredentials Resource

Get an existing ContainerRegistryDockerCredentials resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

static get(resource_name, id, opts=None, credential_expiration_time=None, docker_credentials=None, expiry_seconds=None, registry_name=None, write=None, __props__=None);
func GetContainerRegistryDockerCredentials(ctx *Context, name string, id IDInput, state *ContainerRegistryDockerCredentialsState, opts ...ResourceOption) (*ContainerRegistryDockerCredentials, error)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

CredentialExpirationTime string
DockerCredentials string
ExpirySeconds int

The amount of time to pass before the Docker credentials expire in seconds. Defaults to 2147483647, or roughly 68 years. Must be greater than 0 and less than 2147483647.

RegistryName string

The name of the container registry.

Write bool

Allow for write access to the container registry. Defaults to false.

CredentialExpirationTime string
DockerCredentials string
ExpirySeconds int

The amount of time to pass before the Docker credentials expire in seconds. Defaults to 2147483647, or roughly 68 years. Must be greater than 0 and less than 2147483647.

RegistryName string

The name of the container registry.

Write bool

Allow for write access to the container registry. Defaults to false.

credentialExpirationTime string
dockerCredentials string
expirySeconds number

The amount of time to pass before the Docker credentials expire in seconds. Defaults to 2147483647, or roughly 68 years. Must be greater than 0 and less than 2147483647.

registryName string

The name of the container registry.

write boolean

Allow for write access to the container registry. Defaults to false.

credential_expiration_time str
docker_credentials str
expiry_seconds float

The amount of time to pass before the Docker credentials expire in seconds. Defaults to 2147483647, or roughly 68 years. Must be greater than 0 and less than 2147483647.

registry_name str

The name of the container registry.

write bool

Allow for write access to the container registry. Defaults to false.

Package Details

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