DigitalOcean
ContainerRegistry
Provides a DigitalOcean Container Registry resource. A Container Registry is a secure, private location to store your containers for rapid deployment.
Example Usage
using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;
class MyStack : Stack
{
public MyStack()
{
// Create a new container registry
var foobar = new DigitalOcean.ContainerRegistry("foobar", new DigitalOcean.ContainerRegistryArgs
{
SubscriptionTierSlug = "starter",
});
}
}
package main
import (
"github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := digitalocean.NewContainerRegistry(ctx, "foobar", &digitalocean.ContainerRegistryArgs{
SubscriptionTierSlug: pulumi.String("starter"),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_digitalocean as digitalocean
# Create a new container registry
foobar = digitalocean.ContainerRegistry("foobar", subscription_tier_slug="starter")
import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";
// Create a new container registry
const foobar = new digitalocean.ContainerRegistry("foobar", {
subscriptionTierSlug: "starter",
});
Coming soon!
Create a ContainerRegistry Resource
new ContainerRegistry(name: string, args: ContainerRegistryArgs, opts?: CustomResourceOptions);
@overload
def ContainerRegistry(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
region: Optional[str] = None,
subscription_tier_slug: Optional[str] = None)
@overload
def ContainerRegistry(resource_name: str,
args: ContainerRegistryArgs,
opts: Optional[ResourceOptions] = None)
func NewContainerRegistry(ctx *Context, name string, args ContainerRegistryArgs, opts ...ResourceOption) (*ContainerRegistry, error)
public ContainerRegistry(string name, ContainerRegistryArgs args, CustomResourceOptions? opts = null)
public ContainerRegistry(String name, ContainerRegistryArgs args)
public ContainerRegistry(String name, ContainerRegistryArgs args, CustomResourceOptions options)
type: digitalocean:ContainerRegistry
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContainerRegistryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ContainerRegistryArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ContainerRegistryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContainerRegistryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ContainerRegistryArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ContainerRegistry Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ContainerRegistry resource accepts the following input properties:
- Subscription
Tier stringSlug The slug identifier for the subscription tier to use (
starter
,basic
, orprofessional
)- Name string
The name of the container_registry
- Region string
The slug identifier of for region where registry data will be stored. When not provided, a region will be selected automatically.
- Subscription
Tier stringSlug The slug identifier for the subscription tier to use (
starter
,basic
, orprofessional
)- Name string
The name of the container_registry
- Region string
The slug identifier of for region where registry data will be stored. When not provided, a region will be selected automatically.
- subscription
Tier StringSlug The slug identifier for the subscription tier to use (
starter
,basic
, orprofessional
)- name String
The name of the container_registry
- region String
The slug identifier of for region where registry data will be stored. When not provided, a region will be selected automatically.
- subscription
Tier stringSlug The slug identifier for the subscription tier to use (
starter
,basic
, orprofessional
)- name string
The name of the container_registry
- region string
The slug identifier of for region where registry data will be stored. When not provided, a region will be selected automatically.
- subscription_
tier_ strslug The slug identifier for the subscription tier to use (
starter
,basic
, orprofessional
)- name str
The name of the container_registry
- region str
The slug identifier of for region where registry data will be stored. When not provided, a region will be selected automatically.
- subscription
Tier StringSlug The slug identifier for the subscription tier to use (
starter
,basic
, orprofessional
)- name String
The name of the container_registry
- region String
The slug identifier of for region where registry data will be stored. When not provided, a region will be selected automatically.
Outputs
All input properties are implicitly available as output properties. Additionally, the ContainerRegistry resource produces the following output properties:
- Created
At string The date and time when the registry was created
- Endpoint string
The URL endpoint of the container registry. Ex:
registry.digitalocean.com/my_registry
- Id string
The provider-assigned unique ID for this managed resource.
- Server
Url string The domain of the container registry. Ex:
registry.digitalocean.com
- Storage
Usage intBytes The amount of storage used in the registry in bytes.
- Created
At string The date and time when the registry was created
- Endpoint string
The URL endpoint of the container registry. Ex:
registry.digitalocean.com/my_registry
- Id string
The provider-assigned unique ID for this managed resource.
- Server
Url string The domain of the container registry. Ex:
registry.digitalocean.com
- Storage
Usage intBytes The amount of storage used in the registry in bytes.
- created
At String The date and time when the registry was created
- endpoint String
The URL endpoint of the container registry. Ex:
registry.digitalocean.com/my_registry
- id String
The provider-assigned unique ID for this managed resource.
- server
Url String The domain of the container registry. Ex:
registry.digitalocean.com
- storage
Usage IntegerBytes The amount of storage used in the registry in bytes.
- created
At string The date and time when the registry was created
- endpoint string
The URL endpoint of the container registry. Ex:
registry.digitalocean.com/my_registry
- id string
The provider-assigned unique ID for this managed resource.
- server
Url string The domain of the container registry. Ex:
registry.digitalocean.com
- storage
Usage numberBytes The amount of storage used in the registry in bytes.
- created_
at str The date and time when the registry was created
- endpoint str
The URL endpoint of the container registry. Ex:
registry.digitalocean.com/my_registry
- id str
The provider-assigned unique ID for this managed resource.
- server_
url str The domain of the container registry. Ex:
registry.digitalocean.com
- storage_
usage_ intbytes The amount of storage used in the registry in bytes.
- created
At String The date and time when the registry was created
- endpoint String
The URL endpoint of the container registry. Ex:
registry.digitalocean.com/my_registry
- id String
The provider-assigned unique ID for this managed resource.
- server
Url String The domain of the container registry. Ex:
registry.digitalocean.com
- storage
Usage NumberBytes The amount of storage used in the registry in bytes.
Look up an Existing ContainerRegistry Resource
Get an existing ContainerRegistry resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ContainerRegistryState, opts?: CustomResourceOptions): ContainerRegistry
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
endpoint: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
server_url: Optional[str] = None,
storage_usage_bytes: Optional[int] = None,
subscription_tier_slug: Optional[str] = None) -> ContainerRegistry
func GetContainerRegistry(ctx *Context, name string, id IDInput, state *ContainerRegistryState, opts ...ResourceOption) (*ContainerRegistry, error)
public static ContainerRegistry Get(string name, Input<string> id, ContainerRegistryState? state, CustomResourceOptions? opts = null)
public static ContainerRegistry get(String name, Output<String> id, ContainerRegistryState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Created
At string The date and time when the registry was created
- Endpoint string
The URL endpoint of the container registry. Ex:
registry.digitalocean.com/my_registry
- Name string
The name of the container_registry
- Region string
The slug identifier of for region where registry data will be stored. When not provided, a region will be selected automatically.
- Server
Url string The domain of the container registry. Ex:
registry.digitalocean.com
- Storage
Usage intBytes The amount of storage used in the registry in bytes.
- Subscription
Tier stringSlug The slug identifier for the subscription tier to use (
starter
,basic
, orprofessional
)
- Created
At string The date and time when the registry was created
- Endpoint string
The URL endpoint of the container registry. Ex:
registry.digitalocean.com/my_registry
- Name string
The name of the container_registry
- Region string
The slug identifier of for region where registry data will be stored. When not provided, a region will be selected automatically.
- Server
Url string The domain of the container registry. Ex:
registry.digitalocean.com
- Storage
Usage intBytes The amount of storage used in the registry in bytes.
- Subscription
Tier stringSlug The slug identifier for the subscription tier to use (
starter
,basic
, orprofessional
)
- created
At String The date and time when the registry was created
- endpoint String
The URL endpoint of the container registry. Ex:
registry.digitalocean.com/my_registry
- name String
The name of the container_registry
- region String
The slug identifier of for region where registry data will be stored. When not provided, a region will be selected automatically.
- server
Url String The domain of the container registry. Ex:
registry.digitalocean.com
- storage
Usage IntegerBytes The amount of storage used in the registry in bytes.
- subscription
Tier StringSlug The slug identifier for the subscription tier to use (
starter
,basic
, orprofessional
)
- created
At string The date and time when the registry was created
- endpoint string
The URL endpoint of the container registry. Ex:
registry.digitalocean.com/my_registry
- name string
The name of the container_registry
- region string
The slug identifier of for region where registry data will be stored. When not provided, a region will be selected automatically.
- server
Url string The domain of the container registry. Ex:
registry.digitalocean.com
- storage
Usage numberBytes The amount of storage used in the registry in bytes.
- subscription
Tier stringSlug The slug identifier for the subscription tier to use (
starter
,basic
, orprofessional
)
- created_
at str The date and time when the registry was created
- endpoint str
The URL endpoint of the container registry. Ex:
registry.digitalocean.com/my_registry
- name str
The name of the container_registry
- region str
The slug identifier of for region where registry data will be stored. When not provided, a region will be selected automatically.
- server_
url str The domain of the container registry. Ex:
registry.digitalocean.com
- storage_
usage_ intbytes The amount of storage used in the registry in bytes.
- subscription_
tier_ strslug The slug identifier for the subscription tier to use (
starter
,basic
, orprofessional
)
- created
At String The date and time when the registry was created
- endpoint String
The URL endpoint of the container registry. Ex:
registry.digitalocean.com/my_registry
- name String
The name of the container_registry
- region String
The slug identifier of for region where registry data will be stored. When not provided, a region will be selected automatically.
- server
Url String The domain of the container registry. Ex:
registry.digitalocean.com
- storage
Usage NumberBytes The amount of storage used in the registry in bytes.
- subscription
Tier StringSlug The slug identifier for the subscription tier to use (
starter
,basic
, orprofessional
)
Import
Container Registries can be imported using the name
, e.g.
$ pulumi import digitalocean:index/containerRegistry:ContainerRegistry myregistry registryname
Package Details
- Repository
- https://github.com/pulumi/pulumi-digitalocean
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
digitalocean
Terraform Provider.