1. Packages
  2. Packages
  3. Dynatrace
  4. API Docs
  5. ContainerRegistry
Viewing docs for Dynatrace v0.36.0
published on Tuesday, Jun 9, 2026 by Pulumiverse
dynatrace logo
Viewing docs for Dynatrace v0.36.0
published on Tuesday, Jun 9, 2026 by Pulumiverse

    This resource requires the API token scopes Read settings (settings.read) and Write settings (settings.write)

    Dynatrace Documentation

    • Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId: builtin:container-registry)

    Export Example Usage

    • terraform-provider-dynatrace -export dynatrace.ContainerRegistry downloads the existing container URL of the public/private repository hosting container images

    The full documentation of the export feature is available here.

    Resource Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dynatrace from "@pulumiverse/dynatrace";
    
    const environment = new dynatrace.ContainerRegistry("environment", {containerRegistry: "private.registry.org"});
    
    import pulumi
    import pulumiverse_dynatrace as dynatrace
    
    environment = dynatrace.ContainerRegistry("environment", container_registry="private.registry.org")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-dynatrace/sdk/go/dynatrace"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dynatrace.NewContainerRegistry(ctx, "environment", &dynatrace.ContainerRegistryArgs{
    			ContainerRegistry: pulumi.String("private.registry.org"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Dynatrace = Pulumiverse.Dynatrace;
    
    return await Deployment.RunAsync(() => 
    {
        var environment = new Dynatrace.ContainerRegistry("environment", new()
        {
            RegistryUrl = "private.registry.org",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dynatrace.ContainerRegistry;
    import com.pulumi.dynatrace.ContainerRegistryArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var environment = new ContainerRegistry("environment", ContainerRegistryArgs.builder()
                .containerRegistry("private.registry.org")
                .build());
    
        }
    }
    
    resources:
      environment:
        type: dynatrace:ContainerRegistry
        properties:
          containerRegistry: private.registry.org
    
    pulumi {
      required_providers {
        dynatrace = {
          source = "pulumi/dynatrace"
        }
      }
    }
    
    resource "dynatrace_containerregistry" "environment" {
      container_registry = "private.registry.org"
    }
    

    Create ContainerRegistry Resource

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

    Constructor syntax

    new ContainerRegistry(name: string, args?: ContainerRegistryArgs, opts?: CustomResourceOptions);
    @overload
    def ContainerRegistry(resource_name: str,
                          args: Optional[ContainerRegistryArgs] = None,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def ContainerRegistry(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          container_registry: Optional[str] = None)
    func NewContainerRegistry(ctx *Context, name string, args *ContainerRegistryArgs, opts ...ResourceOption) (*ContainerRegistry, error)
    public ContainerRegistry(string name, ContainerRegistryArgs? args = null, CustomResourceOptions? opts = null)
    public ContainerRegistry(String name, ContainerRegistryArgs args)
    public ContainerRegistry(String name, ContainerRegistryArgs args, CustomResourceOptions options)
    
    type: dynatrace:ContainerRegistry
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "dynatrace_containerregistry" "name" {
        # resource properties
    }

    Parameters

    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.

    Constructor example

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

    var containerRegistryResource = new Dynatrace.ContainerRegistry("containerRegistryResource", new()
    {
        RegistryUrl = "string",
    });
    
    example, err := dynatrace.NewContainerRegistry(ctx, "containerRegistryResource", &dynatrace.ContainerRegistryArgs{
    	ContainerRegistry: pulumi.String("string"),
    })
    
    resource "dynatrace_containerregistry" "containerRegistryResource" {
      container_registry = "string"
    }
    
    var containerRegistryResource = new ContainerRegistry("containerRegistryResource", ContainerRegistryArgs.builder()
        .containerRegistry("string")
        .build());
    
    container_registry_resource = dynatrace.ContainerRegistry("containerRegistryResource", container_registry="string")
    
    const containerRegistryResource = new dynatrace.ContainerRegistry("containerRegistryResource", {containerRegistry: "string"});
    
    type: dynatrace:ContainerRegistry
    properties:
        containerRegistry: string
    

    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

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

    The ContainerRegistry resource accepts the following input properties:

    RegistryUrl string
    Typically set without protocol. Leave empty to use default configuration
    ContainerRegistry string
    Typically set without protocol. Leave empty to use default configuration
    container_registry string
    Typically set without protocol. Leave empty to use default configuration
    containerRegistry String
    Typically set without protocol. Leave empty to use default configuration
    containerRegistry string
    Typically set without protocol. Leave empty to use default configuration
    container_registry str
    Typically set without protocol. Leave empty to use default configuration
    containerRegistry String
    Typically set without protocol. Leave empty to use default configuration

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up 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,
            container_registry: 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)
    resources:  _:    type: dynatrace:ContainerRegistry    get:      id: ${id}
    import {
      to = dynatrace_containerregistry.example
      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:
    RegistryUrl string
    Typically set without protocol. Leave empty to use default configuration
    ContainerRegistry string
    Typically set without protocol. Leave empty to use default configuration
    container_registry string
    Typically set without protocol. Leave empty to use default configuration
    containerRegistry String
    Typically set without protocol. Leave empty to use default configuration
    containerRegistry string
    Typically set without protocol. Leave empty to use default configuration
    container_registry str
    Typically set without protocol. Leave empty to use default configuration
    containerRegistry String
    Typically set without protocol. Leave empty to use default configuration

    Package Details

    Repository
    dynatrace pulumiverse/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Viewing docs for Dynatrace v0.36.0
    published on Tuesday, Jun 9, 2026 by Pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial