1. Packages
  2. Nexus Provider
  3. API Docs
  4. RepositoryDockerProxy
nexus 2.5.0 published on Monday, Apr 14, 2025 by datadrivers

nexus.RepositoryDockerProxy

Explore with Pulumi AI

nexus logo
nexus 2.5.0 published on Monday, Apr 14, 2025 by datadrivers

    Use this resource to create a docker proxy repository.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nexus from "@pulumi/nexus";
    
    const dockerhub = new nexus.RepositoryDockerProxy("dockerhub", {
        docker: {
            forceBasicAuth: false,
            subdomain: "docker",
            v1Enabled: false,
        },
        dockerProxy: {
            indexType: "HUB",
        },
        httpClient: {
            autoBlock: true,
            blocked: false,
        },
        negativeCache: {
            enabled: true,
            ttl: 1440,
        },
        online: true,
        proxy: {
            contentMaxAge: 1440,
            metadataMaxAge: 1440,
            remoteUrl: "https://registry-1.docker.io",
        },
        storage: {
            blobStoreName: "default",
            strictContentTypeValidation: true,
        },
    });
    
    import pulumi
    import pulumi_nexus as nexus
    
    dockerhub = nexus.RepositoryDockerProxy("dockerhub",
        docker={
            "force_basic_auth": False,
            "subdomain": "docker",
            "v1_enabled": False,
        },
        docker_proxy={
            "index_type": "HUB",
        },
        http_client={
            "auto_block": True,
            "blocked": False,
        },
        negative_cache={
            "enabled": True,
            "ttl": 1440,
        },
        online=True,
        proxy={
            "content_max_age": 1440,
            "metadata_max_age": 1440,
            "remote_url": "https://registry-1.docker.io",
        },
        storage={
            "blob_store_name": "default",
            "strict_content_type_validation": True,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/nexus/v2/nexus"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := nexus.NewRepositoryDockerProxy(ctx, "dockerhub", &nexus.RepositoryDockerProxyArgs{
    			Docker: &nexus.RepositoryDockerProxyDockerArgs{
    				ForceBasicAuth: pulumi.Bool(false),
    				Subdomain:      pulumi.String("docker"),
    				V1Enabled:      pulumi.Bool(false),
    			},
    			DockerProxy: &nexus.RepositoryDockerProxyDockerProxyArgs{
    				IndexType: pulumi.String("HUB"),
    			},
    			HttpClient: &nexus.RepositoryDockerProxyHttpClientArgs{
    				AutoBlock: pulumi.Bool(true),
    				Blocked:   pulumi.Bool(false),
    			},
    			NegativeCache: &nexus.RepositoryDockerProxyNegativeCacheArgs{
    				Enabled: pulumi.Bool(true),
    				Ttl:     pulumi.Float64(1440),
    			},
    			Online: pulumi.Bool(true),
    			Proxy: &nexus.RepositoryDockerProxyProxyArgs{
    				ContentMaxAge:  pulumi.Float64(1440),
    				MetadataMaxAge: pulumi.Float64(1440),
    				RemoteUrl:      pulumi.String("https://registry-1.docker.io"),
    			},
    			Storage: &nexus.RepositoryDockerProxyStorageArgs{
    				BlobStoreName:               pulumi.String("default"),
    				StrictContentTypeValidation: pulumi.Bool(true),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nexus = Pulumi.Nexus;
    
    return await Deployment.RunAsync(() => 
    {
        var dockerhub = new Nexus.RepositoryDockerProxy("dockerhub", new()
        {
            Docker = new Nexus.Inputs.RepositoryDockerProxyDockerArgs
            {
                ForceBasicAuth = false,
                Subdomain = "docker",
                V1Enabled = false,
            },
            DockerProxy = new Nexus.Inputs.RepositoryDockerProxyDockerProxyArgs
            {
                IndexType = "HUB",
            },
            HttpClient = new Nexus.Inputs.RepositoryDockerProxyHttpClientArgs
            {
                AutoBlock = true,
                Blocked = false,
            },
            NegativeCache = new Nexus.Inputs.RepositoryDockerProxyNegativeCacheArgs
            {
                Enabled = true,
                Ttl = 1440,
            },
            Online = true,
            Proxy = new Nexus.Inputs.RepositoryDockerProxyProxyArgs
            {
                ContentMaxAge = 1440,
                MetadataMaxAge = 1440,
                RemoteUrl = "https://registry-1.docker.io",
            },
            Storage = new Nexus.Inputs.RepositoryDockerProxyStorageArgs
            {
                BlobStoreName = "default",
                StrictContentTypeValidation = true,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nexus.RepositoryDockerProxy;
    import com.pulumi.nexus.RepositoryDockerProxyArgs;
    import com.pulumi.nexus.inputs.RepositoryDockerProxyDockerArgs;
    import com.pulumi.nexus.inputs.RepositoryDockerProxyDockerProxyArgs;
    import com.pulumi.nexus.inputs.RepositoryDockerProxyHttpClientArgs;
    import com.pulumi.nexus.inputs.RepositoryDockerProxyNegativeCacheArgs;
    import com.pulumi.nexus.inputs.RepositoryDockerProxyProxyArgs;
    import com.pulumi.nexus.inputs.RepositoryDockerProxyStorageArgs;
    import java.util.List;
    import java.util.ArrayList;
    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 dockerhub = new RepositoryDockerProxy("dockerhub", RepositoryDockerProxyArgs.builder()
                .docker(RepositoryDockerProxyDockerArgs.builder()
                    .forceBasicAuth(false)
                    .subdomain("docker")
                    .v1Enabled(false)
                    .build())
                .dockerProxy(RepositoryDockerProxyDockerProxyArgs.builder()
                    .indexType("HUB")
                    .build())
                .httpClient(RepositoryDockerProxyHttpClientArgs.builder()
                    .autoBlock(true)
                    .blocked(false)
                    .build())
                .negativeCache(RepositoryDockerProxyNegativeCacheArgs.builder()
                    .enabled(true)
                    .ttl(1440)
                    .build())
                .online(true)
                .proxy(RepositoryDockerProxyProxyArgs.builder()
                    .contentMaxAge(1440)
                    .metadataMaxAge(1440)
                    .remoteUrl("https://registry-1.docker.io")
                    .build())
                .storage(RepositoryDockerProxyStorageArgs.builder()
                    .blobStoreName("default")
                    .strictContentTypeValidation(true)
                    .build())
                .build());
    
        }
    }
    
    resources:
      dockerhub:
        type: nexus:RepositoryDockerProxy
        properties:
          docker:
            forceBasicAuth: false
            subdomain: docker
            v1Enabled: false
          dockerProxy:
            indexType: HUB
          httpClient:
            autoBlock: true
            blocked: false
          negativeCache:
            enabled: true
            ttl: 1440
          online: true
          proxy:
            contentMaxAge: 1440
            metadataMaxAge: 1440
            remoteUrl: https://registry-1.docker.io
          storage:
            blobStoreName: default
            strictContentTypeValidation: true
    

    Create RepositoryDockerProxy Resource

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

    Constructor syntax

    new RepositoryDockerProxy(name: string, args: RepositoryDockerProxyArgs, opts?: CustomResourceOptions);
    @overload
    def RepositoryDockerProxy(resource_name: str,
                              args: RepositoryDockerProxyArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def RepositoryDockerProxy(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              docker: Optional[RepositoryDockerProxyDockerArgs] = None,
                              docker_proxy: Optional[RepositoryDockerProxyDockerProxyArgs] = None,
                              http_client: Optional[RepositoryDockerProxyHttpClientArgs] = None,
                              negative_cache: Optional[RepositoryDockerProxyNegativeCacheArgs] = None,
                              proxy: Optional[RepositoryDockerProxyProxyArgs] = None,
                              storage: Optional[RepositoryDockerProxyStorageArgs] = None,
                              cleanups: Optional[Sequence[RepositoryDockerProxyCleanupArgs]] = None,
                              name: Optional[str] = None,
                              online: Optional[bool] = None,
                              routing_rule: Optional[str] = None)
    func NewRepositoryDockerProxy(ctx *Context, name string, args RepositoryDockerProxyArgs, opts ...ResourceOption) (*RepositoryDockerProxy, error)
    public RepositoryDockerProxy(string name, RepositoryDockerProxyArgs args, CustomResourceOptions? opts = null)
    public RepositoryDockerProxy(String name, RepositoryDockerProxyArgs args)
    public RepositoryDockerProxy(String name, RepositoryDockerProxyArgs args, CustomResourceOptions options)
    
    type: nexus:RepositoryDockerProxy
    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 RepositoryDockerProxyArgs
    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 RepositoryDockerProxyArgs
    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 RepositoryDockerProxyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RepositoryDockerProxyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RepositoryDockerProxyArgs
    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 repositoryDockerProxyResource = new Nexus.RepositoryDockerProxy("repositoryDockerProxyResource", new()
    {
        Docker = new Nexus.Inputs.RepositoryDockerProxyDockerArgs
        {
            ForceBasicAuth = false,
            V1Enabled = false,
            HttpPort = 0,
            HttpsPort = 0,
            Subdomain = "string",
        },
        DockerProxy = new Nexus.Inputs.RepositoryDockerProxyDockerProxyArgs
        {
            IndexType = "string",
            CacheForeignLayers = false,
            ForeignLayerUrlWhitelists = new[]
            {
                "string",
            },
            IndexUrl = "string",
        },
        HttpClient = new Nexus.Inputs.RepositoryDockerProxyHttpClientArgs
        {
            AutoBlock = false,
            Blocked = false,
            Authentication = new Nexus.Inputs.RepositoryDockerProxyHttpClientAuthenticationArgs
            {
                Type = "string",
                NtlmDomain = "string",
                NtlmHost = "string",
                Password = "string",
                Username = "string",
            },
            Connection = new Nexus.Inputs.RepositoryDockerProxyHttpClientConnectionArgs
            {
                EnableCircularRedirects = false,
                EnableCookies = false,
                Retries = 0,
                Timeout = 0,
                UseTrustStore = false,
                UserAgentSuffix = "string",
            },
        },
        NegativeCache = new Nexus.Inputs.RepositoryDockerProxyNegativeCacheArgs
        {
            Enabled = false,
            Ttl = 0,
        },
        Proxy = new Nexus.Inputs.RepositoryDockerProxyProxyArgs
        {
            RemoteUrl = "string",
            ContentMaxAge = 0,
            MetadataMaxAge = 0,
        },
        Storage = new Nexus.Inputs.RepositoryDockerProxyStorageArgs
        {
            BlobStoreName = "string",
            StrictContentTypeValidation = false,
        },
        Cleanups = new[]
        {
            new Nexus.Inputs.RepositoryDockerProxyCleanupArgs
            {
                PolicyNames = new[]
                {
                    "string",
                },
            },
        },
        Name = "string",
        Online = false,
        RoutingRule = "string",
    });
    
    example, err := nexus.NewRepositoryDockerProxy(ctx, "repositoryDockerProxyResource", &nexus.RepositoryDockerProxyArgs{
    	Docker: &nexus.RepositoryDockerProxyDockerArgs{
    		ForceBasicAuth: pulumi.Bool(false),
    		V1Enabled:      pulumi.Bool(false),
    		HttpPort:       pulumi.Float64(0),
    		HttpsPort:      pulumi.Float64(0),
    		Subdomain:      pulumi.String("string"),
    	},
    	DockerProxy: &nexus.RepositoryDockerProxyDockerProxyArgs{
    		IndexType:          pulumi.String("string"),
    		CacheForeignLayers: pulumi.Bool(false),
    		ForeignLayerUrlWhitelists: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		IndexUrl: pulumi.String("string"),
    	},
    	HttpClient: &nexus.RepositoryDockerProxyHttpClientArgs{
    		AutoBlock: pulumi.Bool(false),
    		Blocked:   pulumi.Bool(false),
    		Authentication: &nexus.RepositoryDockerProxyHttpClientAuthenticationArgs{
    			Type:       pulumi.String("string"),
    			NtlmDomain: pulumi.String("string"),
    			NtlmHost:   pulumi.String("string"),
    			Password:   pulumi.String("string"),
    			Username:   pulumi.String("string"),
    		},
    		Connection: &nexus.RepositoryDockerProxyHttpClientConnectionArgs{
    			EnableCircularRedirects: pulumi.Bool(false),
    			EnableCookies:           pulumi.Bool(false),
    			Retries:                 pulumi.Float64(0),
    			Timeout:                 pulumi.Float64(0),
    			UseTrustStore:           pulumi.Bool(false),
    			UserAgentSuffix:         pulumi.String("string"),
    		},
    	},
    	NegativeCache: &nexus.RepositoryDockerProxyNegativeCacheArgs{
    		Enabled: pulumi.Bool(false),
    		Ttl:     pulumi.Float64(0),
    	},
    	Proxy: &nexus.RepositoryDockerProxyProxyArgs{
    		RemoteUrl:      pulumi.String("string"),
    		ContentMaxAge:  pulumi.Float64(0),
    		MetadataMaxAge: pulumi.Float64(0),
    	},
    	Storage: &nexus.RepositoryDockerProxyStorageArgs{
    		BlobStoreName:               pulumi.String("string"),
    		StrictContentTypeValidation: pulumi.Bool(false),
    	},
    	Cleanups: nexus.RepositoryDockerProxyCleanupArray{
    		&nexus.RepositoryDockerProxyCleanupArgs{
    			PolicyNames: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	Name:        pulumi.String("string"),
    	Online:      pulumi.Bool(false),
    	RoutingRule: pulumi.String("string"),
    })
    
    var repositoryDockerProxyResource = new RepositoryDockerProxy("repositoryDockerProxyResource", RepositoryDockerProxyArgs.builder()
        .docker(RepositoryDockerProxyDockerArgs.builder()
            .forceBasicAuth(false)
            .v1Enabled(false)
            .httpPort(0)
            .httpsPort(0)
            .subdomain("string")
            .build())
        .dockerProxy(RepositoryDockerProxyDockerProxyArgs.builder()
            .indexType("string")
            .cacheForeignLayers(false)
            .foreignLayerUrlWhitelists("string")
            .indexUrl("string")
            .build())
        .httpClient(RepositoryDockerProxyHttpClientArgs.builder()
            .autoBlock(false)
            .blocked(false)
            .authentication(RepositoryDockerProxyHttpClientAuthenticationArgs.builder()
                .type("string")
                .ntlmDomain("string")
                .ntlmHost("string")
                .password("string")
                .username("string")
                .build())
            .connection(RepositoryDockerProxyHttpClientConnectionArgs.builder()
                .enableCircularRedirects(false)
                .enableCookies(false)
                .retries(0)
                .timeout(0)
                .useTrustStore(false)
                .userAgentSuffix("string")
                .build())
            .build())
        .negativeCache(RepositoryDockerProxyNegativeCacheArgs.builder()
            .enabled(false)
            .ttl(0)
            .build())
        .proxy(RepositoryDockerProxyProxyArgs.builder()
            .remoteUrl("string")
            .contentMaxAge(0)
            .metadataMaxAge(0)
            .build())
        .storage(RepositoryDockerProxyStorageArgs.builder()
            .blobStoreName("string")
            .strictContentTypeValidation(false)
            .build())
        .cleanups(RepositoryDockerProxyCleanupArgs.builder()
            .policyNames("string")
            .build())
        .name("string")
        .online(false)
        .routingRule("string")
        .build());
    
    repository_docker_proxy_resource = nexus.RepositoryDockerProxy("repositoryDockerProxyResource",
        docker={
            "force_basic_auth": False,
            "v1_enabled": False,
            "http_port": 0,
            "https_port": 0,
            "subdomain": "string",
        },
        docker_proxy={
            "index_type": "string",
            "cache_foreign_layers": False,
            "foreign_layer_url_whitelists": ["string"],
            "index_url": "string",
        },
        http_client={
            "auto_block": False,
            "blocked": False,
            "authentication": {
                "type": "string",
                "ntlm_domain": "string",
                "ntlm_host": "string",
                "password": "string",
                "username": "string",
            },
            "connection": {
                "enable_circular_redirects": False,
                "enable_cookies": False,
                "retries": 0,
                "timeout": 0,
                "use_trust_store": False,
                "user_agent_suffix": "string",
            },
        },
        negative_cache={
            "enabled": False,
            "ttl": 0,
        },
        proxy={
            "remote_url": "string",
            "content_max_age": 0,
            "metadata_max_age": 0,
        },
        storage={
            "blob_store_name": "string",
            "strict_content_type_validation": False,
        },
        cleanups=[{
            "policy_names": ["string"],
        }],
        name="string",
        online=False,
        routing_rule="string")
    
    const repositoryDockerProxyResource = new nexus.RepositoryDockerProxy("repositoryDockerProxyResource", {
        docker: {
            forceBasicAuth: false,
            v1Enabled: false,
            httpPort: 0,
            httpsPort: 0,
            subdomain: "string",
        },
        dockerProxy: {
            indexType: "string",
            cacheForeignLayers: false,
            foreignLayerUrlWhitelists: ["string"],
            indexUrl: "string",
        },
        httpClient: {
            autoBlock: false,
            blocked: false,
            authentication: {
                type: "string",
                ntlmDomain: "string",
                ntlmHost: "string",
                password: "string",
                username: "string",
            },
            connection: {
                enableCircularRedirects: false,
                enableCookies: false,
                retries: 0,
                timeout: 0,
                useTrustStore: false,
                userAgentSuffix: "string",
            },
        },
        negativeCache: {
            enabled: false,
            ttl: 0,
        },
        proxy: {
            remoteUrl: "string",
            contentMaxAge: 0,
            metadataMaxAge: 0,
        },
        storage: {
            blobStoreName: "string",
            strictContentTypeValidation: false,
        },
        cleanups: [{
            policyNames: ["string"],
        }],
        name: "string",
        online: false,
        routingRule: "string",
    });
    
    type: nexus:RepositoryDockerProxy
    properties:
        cleanups:
            - policyNames:
                - string
        docker:
            forceBasicAuth: false
            httpPort: 0
            httpsPort: 0
            subdomain: string
            v1Enabled: false
        dockerProxy:
            cacheForeignLayers: false
            foreignLayerUrlWhitelists:
                - string
            indexType: string
            indexUrl: string
        httpClient:
            authentication:
                ntlmDomain: string
                ntlmHost: string
                password: string
                type: string
                username: string
            autoBlock: false
            blocked: false
            connection:
                enableCircularRedirects: false
                enableCookies: false
                retries: 0
                timeout: 0
                useTrustStore: false
                userAgentSuffix: string
        name: string
        negativeCache:
            enabled: false
            ttl: 0
        online: false
        proxy:
            contentMaxAge: 0
            metadataMaxAge: 0
            remoteUrl: string
        routingRule: string
        storage:
            blobStoreName: string
            strictContentTypeValidation: false
    

    RepositoryDockerProxy 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 RepositoryDockerProxy resource accepts the following input properties:

    Docker RepositoryDockerProxyDocker
    docker contains the configuration of the docker repository
    DockerProxy RepositoryDockerProxyDockerProxy
    docker*proxy contains the configuration of the docker index
    HttpClient RepositoryDockerProxyHttpClient
    HTTP Client configuration for proxy repositories
    NegativeCache RepositoryDockerProxyNegativeCache
    Configuration of the negative cache handling
    Proxy RepositoryDockerProxyProxy
    Configuration for the proxy repository
    Storage RepositoryDockerProxyStorage
    The storage configuration of the repository
    Cleanups List<RepositoryDockerProxyCleanup>
    Cleanup policies
    Name string
    A unique identifier for this repository
    Online bool
    Whether this repository accepts incoming requests
    RoutingRule string
    The name of the routing rule assigned to this repository
    Docker RepositoryDockerProxyDockerArgs
    docker contains the configuration of the docker repository
    DockerProxy RepositoryDockerProxyDockerProxyArgs
    docker*proxy contains the configuration of the docker index
    HttpClient RepositoryDockerProxyHttpClientArgs
    HTTP Client configuration for proxy repositories
    NegativeCache RepositoryDockerProxyNegativeCacheArgs
    Configuration of the negative cache handling
    Proxy RepositoryDockerProxyProxyArgs
    Configuration for the proxy repository
    Storage RepositoryDockerProxyStorageArgs
    The storage configuration of the repository
    Cleanups []RepositoryDockerProxyCleanupArgs
    Cleanup policies
    Name string
    A unique identifier for this repository
    Online bool
    Whether this repository accepts incoming requests
    RoutingRule string
    The name of the routing rule assigned to this repository
    docker RepositoryDockerProxyDocker
    docker contains the configuration of the docker repository
    dockerProxy RepositoryDockerProxyDockerProxy
    docker*proxy contains the configuration of the docker index
    httpClient RepositoryDockerProxyHttpClient
    HTTP Client configuration for proxy repositories
    negativeCache RepositoryDockerProxyNegativeCache
    Configuration of the negative cache handling
    proxy RepositoryDockerProxyProxy
    Configuration for the proxy repository
    storage RepositoryDockerProxyStorage
    The storage configuration of the repository
    cleanups List<RepositoryDockerProxyCleanup>
    Cleanup policies
    name String
    A unique identifier for this repository
    online Boolean
    Whether this repository accepts incoming requests
    routingRule String
    The name of the routing rule assigned to this repository
    docker RepositoryDockerProxyDocker
    docker contains the configuration of the docker repository
    dockerProxy RepositoryDockerProxyDockerProxy
    docker*proxy contains the configuration of the docker index
    httpClient RepositoryDockerProxyHttpClient
    HTTP Client configuration for proxy repositories
    negativeCache RepositoryDockerProxyNegativeCache
    Configuration of the negative cache handling
    proxy RepositoryDockerProxyProxy
    Configuration for the proxy repository
    storage RepositoryDockerProxyStorage
    The storage configuration of the repository
    cleanups RepositoryDockerProxyCleanup[]
    Cleanup policies
    name string
    A unique identifier for this repository
    online boolean
    Whether this repository accepts incoming requests
    routingRule string
    The name of the routing rule assigned to this repository
    docker RepositoryDockerProxyDockerArgs
    docker contains the configuration of the docker repository
    docker_proxy RepositoryDockerProxyDockerProxyArgs
    docker*proxy contains the configuration of the docker index
    http_client RepositoryDockerProxyHttpClientArgs
    HTTP Client configuration for proxy repositories
    negative_cache RepositoryDockerProxyNegativeCacheArgs
    Configuration of the negative cache handling
    proxy RepositoryDockerProxyProxyArgs
    Configuration for the proxy repository
    storage RepositoryDockerProxyStorageArgs
    The storage configuration of the repository
    cleanups Sequence[RepositoryDockerProxyCleanupArgs]
    Cleanup policies
    name str
    A unique identifier for this repository
    online bool
    Whether this repository accepts incoming requests
    routing_rule str
    The name of the routing rule assigned to this repository
    docker Property Map
    docker contains the configuration of the docker repository
    dockerProxy Property Map
    docker*proxy contains the configuration of the docker index
    httpClient Property Map
    HTTP Client configuration for proxy repositories
    negativeCache Property Map
    Configuration of the negative cache handling
    proxy Property Map
    Configuration for the proxy repository
    storage Property Map
    The storage configuration of the repository
    cleanups List<Property Map>
    Cleanup policies
    name String
    A unique identifier for this repository
    online Boolean
    Whether this repository accepts incoming requests
    routingRule String
    The name of the routing rule assigned to this repository

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RepositoryDockerProxy 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 str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing RepositoryDockerProxy Resource

    Get an existing RepositoryDockerProxy 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?: RepositoryDockerProxyState, opts?: CustomResourceOptions): RepositoryDockerProxy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cleanups: Optional[Sequence[RepositoryDockerProxyCleanupArgs]] = None,
            docker: Optional[RepositoryDockerProxyDockerArgs] = None,
            docker_proxy: Optional[RepositoryDockerProxyDockerProxyArgs] = None,
            http_client: Optional[RepositoryDockerProxyHttpClientArgs] = None,
            name: Optional[str] = None,
            negative_cache: Optional[RepositoryDockerProxyNegativeCacheArgs] = None,
            online: Optional[bool] = None,
            proxy: Optional[RepositoryDockerProxyProxyArgs] = None,
            routing_rule: Optional[str] = None,
            storage: Optional[RepositoryDockerProxyStorageArgs] = None) -> RepositoryDockerProxy
    func GetRepositoryDockerProxy(ctx *Context, name string, id IDInput, state *RepositoryDockerProxyState, opts ...ResourceOption) (*RepositoryDockerProxy, error)
    public static RepositoryDockerProxy Get(string name, Input<string> id, RepositoryDockerProxyState? state, CustomResourceOptions? opts = null)
    public static RepositoryDockerProxy get(String name, Output<String> id, RepositoryDockerProxyState state, CustomResourceOptions options)
    resources:  _:    type: nexus:RepositoryDockerProxy    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:
    Cleanups List<RepositoryDockerProxyCleanup>
    Cleanup policies
    Docker RepositoryDockerProxyDocker
    docker contains the configuration of the docker repository
    DockerProxy RepositoryDockerProxyDockerProxy
    docker*proxy contains the configuration of the docker index
    HttpClient RepositoryDockerProxyHttpClient
    HTTP Client configuration for proxy repositories
    Name string
    A unique identifier for this repository
    NegativeCache RepositoryDockerProxyNegativeCache
    Configuration of the negative cache handling
    Online bool
    Whether this repository accepts incoming requests
    Proxy RepositoryDockerProxyProxy
    Configuration for the proxy repository
    RoutingRule string
    The name of the routing rule assigned to this repository
    Storage RepositoryDockerProxyStorage
    The storage configuration of the repository
    Cleanups []RepositoryDockerProxyCleanupArgs
    Cleanup policies
    Docker RepositoryDockerProxyDockerArgs
    docker contains the configuration of the docker repository
    DockerProxy RepositoryDockerProxyDockerProxyArgs
    docker*proxy contains the configuration of the docker index
    HttpClient RepositoryDockerProxyHttpClientArgs
    HTTP Client configuration for proxy repositories
    Name string
    A unique identifier for this repository
    NegativeCache RepositoryDockerProxyNegativeCacheArgs
    Configuration of the negative cache handling
    Online bool
    Whether this repository accepts incoming requests
    Proxy RepositoryDockerProxyProxyArgs
    Configuration for the proxy repository
    RoutingRule string
    The name of the routing rule assigned to this repository
    Storage RepositoryDockerProxyStorageArgs
    The storage configuration of the repository
    cleanups List<RepositoryDockerProxyCleanup>
    Cleanup policies
    docker RepositoryDockerProxyDocker
    docker contains the configuration of the docker repository
    dockerProxy RepositoryDockerProxyDockerProxy
    docker*proxy contains the configuration of the docker index
    httpClient RepositoryDockerProxyHttpClient
    HTTP Client configuration for proxy repositories
    name String
    A unique identifier for this repository
    negativeCache RepositoryDockerProxyNegativeCache
    Configuration of the negative cache handling
    online Boolean
    Whether this repository accepts incoming requests
    proxy RepositoryDockerProxyProxy
    Configuration for the proxy repository
    routingRule String
    The name of the routing rule assigned to this repository
    storage RepositoryDockerProxyStorage
    The storage configuration of the repository
    cleanups RepositoryDockerProxyCleanup[]
    Cleanup policies
    docker RepositoryDockerProxyDocker
    docker contains the configuration of the docker repository
    dockerProxy RepositoryDockerProxyDockerProxy
    docker*proxy contains the configuration of the docker index
    httpClient RepositoryDockerProxyHttpClient
    HTTP Client configuration for proxy repositories
    name string
    A unique identifier for this repository
    negativeCache RepositoryDockerProxyNegativeCache
    Configuration of the negative cache handling
    online boolean
    Whether this repository accepts incoming requests
    proxy RepositoryDockerProxyProxy
    Configuration for the proxy repository
    routingRule string
    The name of the routing rule assigned to this repository
    storage RepositoryDockerProxyStorage
    The storage configuration of the repository
    cleanups Sequence[RepositoryDockerProxyCleanupArgs]
    Cleanup policies
    docker RepositoryDockerProxyDockerArgs
    docker contains the configuration of the docker repository
    docker_proxy RepositoryDockerProxyDockerProxyArgs
    docker*proxy contains the configuration of the docker index
    http_client RepositoryDockerProxyHttpClientArgs
    HTTP Client configuration for proxy repositories
    name str
    A unique identifier for this repository
    negative_cache RepositoryDockerProxyNegativeCacheArgs
    Configuration of the negative cache handling
    online bool
    Whether this repository accepts incoming requests
    proxy RepositoryDockerProxyProxyArgs
    Configuration for the proxy repository
    routing_rule str
    The name of the routing rule assigned to this repository
    storage RepositoryDockerProxyStorageArgs
    The storage configuration of the repository
    cleanups List<Property Map>
    Cleanup policies
    docker Property Map
    docker contains the configuration of the docker repository
    dockerProxy Property Map
    docker*proxy contains the configuration of the docker index
    httpClient Property Map
    HTTP Client configuration for proxy repositories
    name String
    A unique identifier for this repository
    negativeCache Property Map
    Configuration of the negative cache handling
    online Boolean
    Whether this repository accepts incoming requests
    proxy Property Map
    Configuration for the proxy repository
    routingRule String
    The name of the routing rule assigned to this repository
    storage Property Map
    The storage configuration of the repository

    Supporting Types

    RepositoryDockerProxyCleanup, RepositoryDockerProxyCleanupArgs

    PolicyNames List<string>
    List of policy names
    PolicyNames []string
    List of policy names
    policyNames List<String>
    List of policy names
    policyNames string[]
    List of policy names
    policy_names Sequence[str]
    List of policy names
    policyNames List<String>
    List of policy names

    RepositoryDockerProxyDocker, RepositoryDockerProxyDockerArgs

    ForceBasicAuth bool
    Whether to force authentication (Docker Bearer Token Realm required if false)
    V1Enabled bool
    Whether to allow clients to use the V1 API to interact with this repository
    HttpPort double
    Create an HTTP connector at specified port
    HttpsPort double
    Create an HTTPS connector at specified port
    Subdomain string
    Pro-only: Whether to allow clients to use subdomain routing connector
    ForceBasicAuth bool
    Whether to force authentication (Docker Bearer Token Realm required if false)
    V1Enabled bool
    Whether to allow clients to use the V1 API to interact with this repository
    HttpPort float64
    Create an HTTP connector at specified port
    HttpsPort float64
    Create an HTTPS connector at specified port
    Subdomain string
    Pro-only: Whether to allow clients to use subdomain routing connector
    forceBasicAuth Boolean
    Whether to force authentication (Docker Bearer Token Realm required if false)
    v1Enabled Boolean
    Whether to allow clients to use the V1 API to interact with this repository
    httpPort Double
    Create an HTTP connector at specified port
    httpsPort Double
    Create an HTTPS connector at specified port
    subdomain String
    Pro-only: Whether to allow clients to use subdomain routing connector
    forceBasicAuth boolean
    Whether to force authentication (Docker Bearer Token Realm required if false)
    v1Enabled boolean
    Whether to allow clients to use the V1 API to interact with this repository
    httpPort number
    Create an HTTP connector at specified port
    httpsPort number
    Create an HTTPS connector at specified port
    subdomain string
    Pro-only: Whether to allow clients to use subdomain routing connector
    force_basic_auth bool
    Whether to force authentication (Docker Bearer Token Realm required if false)
    v1_enabled bool
    Whether to allow clients to use the V1 API to interact with this repository
    http_port float
    Create an HTTP connector at specified port
    https_port float
    Create an HTTPS connector at specified port
    subdomain str
    Pro-only: Whether to allow clients to use subdomain routing connector
    forceBasicAuth Boolean
    Whether to force authentication (Docker Bearer Token Realm required if false)
    v1Enabled Boolean
    Whether to allow clients to use the V1 API to interact with this repository
    httpPort Number
    Create an HTTP connector at specified port
    httpsPort Number
    Create an HTTPS connector at specified port
    subdomain String
    Pro-only: Whether to allow clients to use subdomain routing connector

    RepositoryDockerProxyDockerProxy, RepositoryDockerProxyDockerProxyArgs

    IndexType string
    Type of Docker Index. Possible values: HUB, REGISTRY or CUSTOM
    CacheForeignLayers bool
    Allow Nexus Repository Manager to download and cache foreign layers
    ForeignLayerUrlWhitelists List<string>
    A set of regular expressions used to identify URLs that are allowed for foreign layer requests
    IndexUrl string
    Url of Docker Index to use
    IndexType string
    Type of Docker Index. Possible values: HUB, REGISTRY or CUSTOM
    CacheForeignLayers bool
    Allow Nexus Repository Manager to download and cache foreign layers
    ForeignLayerUrlWhitelists []string
    A set of regular expressions used to identify URLs that are allowed for foreign layer requests
    IndexUrl string
    Url of Docker Index to use
    indexType String
    Type of Docker Index. Possible values: HUB, REGISTRY or CUSTOM
    cacheForeignLayers Boolean
    Allow Nexus Repository Manager to download and cache foreign layers
    foreignLayerUrlWhitelists List<String>
    A set of regular expressions used to identify URLs that are allowed for foreign layer requests
    indexUrl String
    Url of Docker Index to use
    indexType string
    Type of Docker Index. Possible values: HUB, REGISTRY or CUSTOM
    cacheForeignLayers boolean
    Allow Nexus Repository Manager to download and cache foreign layers
    foreignLayerUrlWhitelists string[]
    A set of regular expressions used to identify URLs that are allowed for foreign layer requests
    indexUrl string
    Url of Docker Index to use
    index_type str
    Type of Docker Index. Possible values: HUB, REGISTRY or CUSTOM
    cache_foreign_layers bool
    Allow Nexus Repository Manager to download and cache foreign layers
    foreign_layer_url_whitelists Sequence[str]
    A set of regular expressions used to identify URLs that are allowed for foreign layer requests
    index_url str
    Url of Docker Index to use
    indexType String
    Type of Docker Index. Possible values: HUB, REGISTRY or CUSTOM
    cacheForeignLayers Boolean
    Allow Nexus Repository Manager to download and cache foreign layers
    foreignLayerUrlWhitelists List<String>
    A set of regular expressions used to identify URLs that are allowed for foreign layer requests
    indexUrl String
    Url of Docker Index to use

    RepositoryDockerProxyHttpClient, RepositoryDockerProxyHttpClientArgs

    AutoBlock bool
    Whether to auto-block outbound connections if remote peer is detected as unreachable/unresponsive
    Blocked bool
    Whether to block outbound connections on the repository
    Authentication RepositoryDockerProxyHttpClientAuthentication
    Authentication configuration of the HTTP client
    Connection RepositoryDockerProxyHttpClientConnection
    Connection configuration of the HTTP client
    AutoBlock bool
    Whether to auto-block outbound connections if remote peer is detected as unreachable/unresponsive
    Blocked bool
    Whether to block outbound connections on the repository
    Authentication RepositoryDockerProxyHttpClientAuthentication
    Authentication configuration of the HTTP client
    Connection RepositoryDockerProxyHttpClientConnection
    Connection configuration of the HTTP client
    autoBlock Boolean
    Whether to auto-block outbound connections if remote peer is detected as unreachable/unresponsive
    blocked Boolean
    Whether to block outbound connections on the repository
    authentication RepositoryDockerProxyHttpClientAuthentication
    Authentication configuration of the HTTP client
    connection RepositoryDockerProxyHttpClientConnection
    Connection configuration of the HTTP client
    autoBlock boolean
    Whether to auto-block outbound connections if remote peer is detected as unreachable/unresponsive
    blocked boolean
    Whether to block outbound connections on the repository
    authentication RepositoryDockerProxyHttpClientAuthentication
    Authentication configuration of the HTTP client
    connection RepositoryDockerProxyHttpClientConnection
    Connection configuration of the HTTP client
    auto_block bool
    Whether to auto-block outbound connections if remote peer is detected as unreachable/unresponsive
    blocked bool
    Whether to block outbound connections on the repository
    authentication RepositoryDockerProxyHttpClientAuthentication
    Authentication configuration of the HTTP client
    connection RepositoryDockerProxyHttpClientConnection
    Connection configuration of the HTTP client
    autoBlock Boolean
    Whether to auto-block outbound connections if remote peer is detected as unreachable/unresponsive
    blocked Boolean
    Whether to block outbound connections on the repository
    authentication Property Map
    Authentication configuration of the HTTP client
    connection Property Map
    Connection configuration of the HTTP client

    RepositoryDockerProxyHttpClientAuthentication, RepositoryDockerProxyHttpClientAuthenticationArgs

    Type string
    Authentication type. Possible values: ntlm or username
    NtlmDomain string
    The ntlm domain to connect
    NtlmHost string
    The ntlm host to connect
    Password string
    The password used by the proxy repository
    Username string
    The username used by the proxy repository
    Type string
    Authentication type. Possible values: ntlm or username
    NtlmDomain string
    The ntlm domain to connect
    NtlmHost string
    The ntlm host to connect
    Password string
    The password used by the proxy repository
    Username string
    The username used by the proxy repository
    type String
    Authentication type. Possible values: ntlm or username
    ntlmDomain String
    The ntlm domain to connect
    ntlmHost String
    The ntlm host to connect
    password String
    The password used by the proxy repository
    username String
    The username used by the proxy repository
    type string
    Authentication type. Possible values: ntlm or username
    ntlmDomain string
    The ntlm domain to connect
    ntlmHost string
    The ntlm host to connect
    password string
    The password used by the proxy repository
    username string
    The username used by the proxy repository
    type str
    Authentication type. Possible values: ntlm or username
    ntlm_domain str
    The ntlm domain to connect
    ntlm_host str
    The ntlm host to connect
    password str
    The password used by the proxy repository
    username str
    The username used by the proxy repository
    type String
    Authentication type. Possible values: ntlm or username
    ntlmDomain String
    The ntlm domain to connect
    ntlmHost String
    The ntlm host to connect
    password String
    The password used by the proxy repository
    username String
    The username used by the proxy repository

    RepositoryDockerProxyHttpClientConnection, RepositoryDockerProxyHttpClientConnectionArgs

    EnableCircularRedirects bool
    Whether to enable redirects to the same location (may be required by some servers)
    EnableCookies bool
    Whether to allow cookies to be stored and used
    Retries double
    Total retries if the initial connection attempt suffers a timeout
    Timeout double
    Seconds to wait for activity before stopping and retrying the connection
    UseTrustStore bool
    Use certificates stored in the Nexus Repository Manager truststore to connect to external systems
    UserAgentSuffix string
    Custom fragment to append to User-Agent header in HTTP requests
    EnableCircularRedirects bool
    Whether to enable redirects to the same location (may be required by some servers)
    EnableCookies bool
    Whether to allow cookies to be stored and used
    Retries float64
    Total retries if the initial connection attempt suffers a timeout
    Timeout float64
    Seconds to wait for activity before stopping and retrying the connection
    UseTrustStore bool
    Use certificates stored in the Nexus Repository Manager truststore to connect to external systems
    UserAgentSuffix string
    Custom fragment to append to User-Agent header in HTTP requests
    enableCircularRedirects Boolean
    Whether to enable redirects to the same location (may be required by some servers)
    enableCookies Boolean
    Whether to allow cookies to be stored and used
    retries Double
    Total retries if the initial connection attempt suffers a timeout
    timeout Double
    Seconds to wait for activity before stopping and retrying the connection
    useTrustStore Boolean
    Use certificates stored in the Nexus Repository Manager truststore to connect to external systems
    userAgentSuffix String
    Custom fragment to append to User-Agent header in HTTP requests
    enableCircularRedirects boolean
    Whether to enable redirects to the same location (may be required by some servers)
    enableCookies boolean
    Whether to allow cookies to be stored and used
    retries number
    Total retries if the initial connection attempt suffers a timeout
    timeout number
    Seconds to wait for activity before stopping and retrying the connection
    useTrustStore boolean
    Use certificates stored in the Nexus Repository Manager truststore to connect to external systems
    userAgentSuffix string
    Custom fragment to append to User-Agent header in HTTP requests
    enable_circular_redirects bool
    Whether to enable redirects to the same location (may be required by some servers)
    enable_cookies bool
    Whether to allow cookies to be stored and used
    retries float
    Total retries if the initial connection attempt suffers a timeout
    timeout float
    Seconds to wait for activity before stopping and retrying the connection
    use_trust_store bool
    Use certificates stored in the Nexus Repository Manager truststore to connect to external systems
    user_agent_suffix str
    Custom fragment to append to User-Agent header in HTTP requests
    enableCircularRedirects Boolean
    Whether to enable redirects to the same location (may be required by some servers)
    enableCookies Boolean
    Whether to allow cookies to be stored and used
    retries Number
    Total retries if the initial connection attempt suffers a timeout
    timeout Number
    Seconds to wait for activity before stopping and retrying the connection
    useTrustStore Boolean
    Use certificates stored in the Nexus Repository Manager truststore to connect to external systems
    userAgentSuffix String
    Custom fragment to append to User-Agent header in HTTP requests

    RepositoryDockerProxyNegativeCache, RepositoryDockerProxyNegativeCacheArgs

    Enabled bool
    Whether to cache responses for content not present in the proxied repository
    Ttl double
    How long to cache the fact that a file was not found in the repository (in minutes)
    Enabled bool
    Whether to cache responses for content not present in the proxied repository
    Ttl float64
    How long to cache the fact that a file was not found in the repository (in minutes)
    enabled Boolean
    Whether to cache responses for content not present in the proxied repository
    ttl Double
    How long to cache the fact that a file was not found in the repository (in minutes)
    enabled boolean
    Whether to cache responses for content not present in the proxied repository
    ttl number
    How long to cache the fact that a file was not found in the repository (in minutes)
    enabled bool
    Whether to cache responses for content not present in the proxied repository
    ttl float
    How long to cache the fact that a file was not found in the repository (in minutes)
    enabled Boolean
    Whether to cache responses for content not present in the proxied repository
    ttl Number
    How long to cache the fact that a file was not found in the repository (in minutes)

    RepositoryDockerProxyProxy, RepositoryDockerProxyProxyArgs

    RemoteUrl string
    Location of the remote repository being proxied
    ContentMaxAge double
    How long (in minutes) to cache artifacts before rechecking the remote repository
    MetadataMaxAge double
    How long (in minutes) to cache metadata before rechecking the remote repository.
    RemoteUrl string
    Location of the remote repository being proxied
    ContentMaxAge float64
    How long (in minutes) to cache artifacts before rechecking the remote repository
    MetadataMaxAge float64
    How long (in minutes) to cache metadata before rechecking the remote repository.
    remoteUrl String
    Location of the remote repository being proxied
    contentMaxAge Double
    How long (in minutes) to cache artifacts before rechecking the remote repository
    metadataMaxAge Double
    How long (in minutes) to cache metadata before rechecking the remote repository.
    remoteUrl string
    Location of the remote repository being proxied
    contentMaxAge number
    How long (in minutes) to cache artifacts before rechecking the remote repository
    metadataMaxAge number
    How long (in minutes) to cache metadata before rechecking the remote repository.
    remote_url str
    Location of the remote repository being proxied
    content_max_age float
    How long (in minutes) to cache artifacts before rechecking the remote repository
    metadata_max_age float
    How long (in minutes) to cache metadata before rechecking the remote repository.
    remoteUrl String
    Location of the remote repository being proxied
    contentMaxAge Number
    How long (in minutes) to cache artifacts before rechecking the remote repository
    metadataMaxAge Number
    How long (in minutes) to cache metadata before rechecking the remote repository.

    RepositoryDockerProxyStorage, RepositoryDockerProxyStorageArgs

    BlobStoreName string
    Blob store used to store repository contents
    StrictContentTypeValidation bool
    Whether to validate uploaded content's MIME type appropriate for the repository format
    BlobStoreName string
    Blob store used to store repository contents
    StrictContentTypeValidation bool
    Whether to validate uploaded content's MIME type appropriate for the repository format
    blobStoreName String
    Blob store used to store repository contents
    strictContentTypeValidation Boolean
    Whether to validate uploaded content's MIME type appropriate for the repository format
    blobStoreName string
    Blob store used to store repository contents
    strictContentTypeValidation boolean
    Whether to validate uploaded content's MIME type appropriate for the repository format
    blob_store_name str
    Blob store used to store repository contents
    strict_content_type_validation bool
    Whether to validate uploaded content's MIME type appropriate for the repository format
    blobStoreName String
    Blob store used to store repository contents
    strictContentTypeValidation Boolean
    Whether to validate uploaded content's MIME type appropriate for the repository format

    Import

    import using the name of repository

    $ pulumi import nexus:index/repositoryDockerProxy:RepositoryDockerProxy dockerhub dockerhub
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    nexus datadrivers/terraform-provider-nexus
    License
    Notes
    This Pulumi package is based on the nexus Terraform Provider.
    nexus logo
    nexus 2.5.0 published on Monday, Apr 14, 2025 by datadrivers