1. Packages
  2. DigitalOcean Provider
  3. API Docs
  4. ContainerRegistries
DigitalOcean v4.56.0 published on Monday, Dec 22, 2025 by Pulumi
digitalocean logo
DigitalOcean v4.56.0 published on Monday, Dec 22, 2025 by Pulumi

    Create ContainerRegistries Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ContainerRegistries(name: string, args: ContainerRegistriesArgs, opts?: CustomResourceOptions);
    @overload
    def ContainerRegistries(resource_name: str,
                            args: ContainerRegistriesArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def ContainerRegistries(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            subscription_tier_slug: Optional[str] = None,
                            name: Optional[str] = None,
                            region: Optional[str] = None)
    func NewContainerRegistries(ctx *Context, name string, args ContainerRegistriesArgs, opts ...ResourceOption) (*ContainerRegistries, error)
    public ContainerRegistries(string name, ContainerRegistriesArgs args, CustomResourceOptions? opts = null)
    public ContainerRegistries(String name, ContainerRegistriesArgs args)
    public ContainerRegistries(String name, ContainerRegistriesArgs args, CustomResourceOptions options)
    
    type: digitalocean:ContainerRegistries
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ContainerRegistriesArgs
    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 ContainerRegistriesArgs
    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 ContainerRegistriesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContainerRegistriesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContainerRegistriesArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var containerRegistriesResource = new DigitalOcean.ContainerRegistries("containerRegistriesResource", new()
    {
        SubscriptionTierSlug = "string",
        Name = "string",
        Region = "string",
    });
    
    example, err := digitalocean.NewContainerRegistries(ctx, "containerRegistriesResource", &digitalocean.ContainerRegistriesArgs{
    	SubscriptionTierSlug: pulumi.String("string"),
    	Name:                 pulumi.String("string"),
    	Region:               pulumi.String("string"),
    })
    
    var containerRegistriesResource = new ContainerRegistries("containerRegistriesResource", ContainerRegistriesArgs.builder()
        .subscriptionTierSlug("string")
        .name("string")
        .region("string")
        .build());
    
    container_registries_resource = digitalocean.ContainerRegistries("containerRegistriesResource",
        subscription_tier_slug="string",
        name="string",
        region="string")
    
    const containerRegistriesResource = new digitalocean.ContainerRegistries("containerRegistriesResource", {
        subscriptionTierSlug: "string",
        name: "string",
        region: "string",
    });
    
    type: digitalocean:ContainerRegistries
    properties:
        name: string
        region: string
        subscriptionTierSlug: string
    

    ContainerRegistries Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ContainerRegistries resource accepts the following input properties:

    SubscriptionTierSlug string
    Name string
    Region string
    SubscriptionTierSlug string
    Name string
    Region string
    subscriptionTierSlug String
    name String
    region String
    subscriptionTierSlug string
    name string
    region string
    subscriptionTierSlug String
    name String
    region String

    Outputs

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

    CreatedAt string
    Endpoint string
    Id string
    The provider-assigned unique ID for this managed resource.
    ServerUrl string
    StorageUsageBytes int
    CreatedAt string
    Endpoint string
    Id string
    The provider-assigned unique ID for this managed resource.
    ServerUrl string
    StorageUsageBytes int
    createdAt String
    endpoint String
    id String
    The provider-assigned unique ID for this managed resource.
    serverUrl String
    storageUsageBytes Integer
    createdAt string
    endpoint string
    id string
    The provider-assigned unique ID for this managed resource.
    serverUrl string
    storageUsageBytes number
    created_at str
    endpoint str
    id str
    The provider-assigned unique ID for this managed resource.
    server_url str
    storage_usage_bytes int
    createdAt String
    endpoint String
    id String
    The provider-assigned unique ID for this managed resource.
    serverUrl String
    storageUsageBytes Number

    Look up Existing ContainerRegistries Resource

    Get an existing ContainerRegistries 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?: ContainerRegistriesState, opts?: CustomResourceOptions): ContainerRegistries
    @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) -> ContainerRegistries
    func GetContainerRegistries(ctx *Context, name string, id IDInput, state *ContainerRegistriesState, opts ...ResourceOption) (*ContainerRegistries, error)
    public static ContainerRegistries Get(string name, Input<string> id, ContainerRegistriesState? state, CustomResourceOptions? opts = null)
    public static ContainerRegistries get(String name, Output<String> id, ContainerRegistriesState state, CustomResourceOptions options)
    resources:  _:    type: digitalocean:ContainerRegistries    get:      id: ${id}
    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.
    The following state arguments are supported:
    createdAt String
    endpoint String
    name String
    region String
    serverUrl String
    storageUsageBytes Integer
    subscriptionTierSlug String
    createdAt string
    endpoint string
    name string
    region string
    serverUrl string
    storageUsageBytes number
    subscriptionTierSlug string
    createdAt String
    endpoint String
    name String
    region String
    serverUrl String
    storageUsageBytes Number
    subscriptionTierSlug String

    Package Details

    Repository
    DigitalOcean pulumi/pulumi-digitalocean
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the digitalocean Terraform Provider.
    digitalocean logo
    DigitalOcean v4.56.0 published on Monday, Dec 22, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate