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

nexus.RepositoryAptProxy

Explore with Pulumi AI

Use this resource to create a hosted apt repository.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as nexus from "@pulumi/nexus";

const bionicProxy = new nexus.RepositoryAptProxy("bionicProxy", {
    distribution: "bionic",
    flat: false,
    httpClient: {
        authentication: {
            password: "admin-password",
            type: "username",
            username: "admin",
        },
        autoBlock: true,
        blocked: false,
        connection: {
            enableCircularRedirects: false,
            enableCookies: false,
            retries: 0,
            timeout: 60,
            useTrustStore: false,
            userAgentSuffix: "string",
        },
    },
    negativeCache: {
        enabled: true,
        ttl: 1440,
    },
    online: true,
    proxy: {
        contentMaxAge: 1440,
        metadataMaxAge: 1440,
        remoteUrl: "https://remote.repository.com",
    },
    routingRule: "string",
    storage: {
        blobStoreName: "default",
        strictContentTypeValidation: true,
    },
});
Copy
import pulumi
import pulumi_nexus as nexus

bionic_proxy = nexus.RepositoryAptProxy("bionicProxy",
    distribution="bionic",
    flat=False,
    http_client={
        "authentication": {
            "password": "admin-password",
            "type": "username",
            "username": "admin",
        },
        "auto_block": True,
        "blocked": False,
        "connection": {
            "enable_circular_redirects": False,
            "enable_cookies": False,
            "retries": 0,
            "timeout": 60,
            "use_trust_store": False,
            "user_agent_suffix": "string",
        },
    },
    negative_cache={
        "enabled": True,
        "ttl": 1440,
    },
    online=True,
    proxy={
        "content_max_age": 1440,
        "metadata_max_age": 1440,
        "remote_url": "https://remote.repository.com",
    },
    routing_rule="string",
    storage={
        "blob_store_name": "default",
        "strict_content_type_validation": True,
    })
Copy
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.NewRepositoryAptProxy(ctx, "bionicProxy", &nexus.RepositoryAptProxyArgs{
			Distribution: pulumi.String("bionic"),
			Flat:         pulumi.Bool(false),
			HttpClient: &nexus.RepositoryAptProxyHttpClientArgs{
				Authentication: &nexus.RepositoryAptProxyHttpClientAuthenticationArgs{
					Password: pulumi.String("admin-password"),
					Type:     pulumi.String("username"),
					Username: pulumi.String("admin"),
				},
				AutoBlock: pulumi.Bool(true),
				Blocked:   pulumi.Bool(false),
				Connection: &nexus.RepositoryAptProxyHttpClientConnectionArgs{
					EnableCircularRedirects: pulumi.Bool(false),
					EnableCookies:           pulumi.Bool(false),
					Retries:                 pulumi.Float64(0),
					Timeout:                 pulumi.Float64(60),
					UseTrustStore:           pulumi.Bool(false),
					UserAgentSuffix:         pulumi.String("string"),
				},
			},
			NegativeCache: &nexus.RepositoryAptProxyNegativeCacheArgs{
				Enabled: pulumi.Bool(true),
				Ttl:     pulumi.Float64(1440),
			},
			Online: pulumi.Bool(true),
			Proxy: &nexus.RepositoryAptProxyProxyArgs{
				ContentMaxAge:  pulumi.Float64(1440),
				MetadataMaxAge: pulumi.Float64(1440),
				RemoteUrl:      pulumi.String("https://remote.repository.com"),
			},
			RoutingRule: pulumi.String("string"),
			Storage: &nexus.RepositoryAptProxyStorageArgs{
				BlobStoreName:               pulumi.String("default"),
				StrictContentTypeValidation: pulumi.Bool(true),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nexus = Pulumi.Nexus;

return await Deployment.RunAsync(() => 
{
    var bionicProxy = new Nexus.RepositoryAptProxy("bionicProxy", new()
    {
        Distribution = "bionic",
        Flat = false,
        HttpClient = new Nexus.Inputs.RepositoryAptProxyHttpClientArgs
        {
            Authentication = new Nexus.Inputs.RepositoryAptProxyHttpClientAuthenticationArgs
            {
                Password = "admin-password",
                Type = "username",
                Username = "admin",
            },
            AutoBlock = true,
            Blocked = false,
            Connection = new Nexus.Inputs.RepositoryAptProxyHttpClientConnectionArgs
            {
                EnableCircularRedirects = false,
                EnableCookies = false,
                Retries = 0,
                Timeout = 60,
                UseTrustStore = false,
                UserAgentSuffix = "string",
            },
        },
        NegativeCache = new Nexus.Inputs.RepositoryAptProxyNegativeCacheArgs
        {
            Enabled = true,
            Ttl = 1440,
        },
        Online = true,
        Proxy = new Nexus.Inputs.RepositoryAptProxyProxyArgs
        {
            ContentMaxAge = 1440,
            MetadataMaxAge = 1440,
            RemoteUrl = "https://remote.repository.com",
        },
        RoutingRule = "string",
        Storage = new Nexus.Inputs.RepositoryAptProxyStorageArgs
        {
            BlobStoreName = "default",
            StrictContentTypeValidation = true,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nexus.RepositoryAptProxy;
import com.pulumi.nexus.RepositoryAptProxyArgs;
import com.pulumi.nexus.inputs.RepositoryAptProxyHttpClientArgs;
import com.pulumi.nexus.inputs.RepositoryAptProxyHttpClientAuthenticationArgs;
import com.pulumi.nexus.inputs.RepositoryAptProxyHttpClientConnectionArgs;
import com.pulumi.nexus.inputs.RepositoryAptProxyNegativeCacheArgs;
import com.pulumi.nexus.inputs.RepositoryAptProxyProxyArgs;
import com.pulumi.nexus.inputs.RepositoryAptProxyStorageArgs;
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 bionicProxy = new RepositoryAptProxy("bionicProxy", RepositoryAptProxyArgs.builder()
            .distribution("bionic")
            .flat(false)
            .httpClient(RepositoryAptProxyHttpClientArgs.builder()
                .authentication(RepositoryAptProxyHttpClientAuthenticationArgs.builder()
                    .password("admin-password")
                    .type("username")
                    .username("admin")
                    .build())
                .autoBlock(true)
                .blocked(false)
                .connection(RepositoryAptProxyHttpClientConnectionArgs.builder()
                    .enableCircularRedirects(false)
                    .enableCookies(false)
                    .retries(0)
                    .timeout(60)
                    .useTrustStore(false)
                    .userAgentSuffix("string")
                    .build())
                .build())
            .negativeCache(RepositoryAptProxyNegativeCacheArgs.builder()
                .enabled(true)
                .ttl(1440)
                .build())
            .online(true)
            .proxy(RepositoryAptProxyProxyArgs.builder()
                .contentMaxAge(1440)
                .metadataMaxAge(1440)
                .remoteUrl("https://remote.repository.com")
                .build())
            .routingRule("string")
            .storage(RepositoryAptProxyStorageArgs.builder()
                .blobStoreName("default")
                .strictContentTypeValidation(true)
                .build())
            .build());

    }
}
Copy
resources:
  bionicProxy:
    type: nexus:RepositoryAptProxy
    properties:
      distribution: bionic
      flat: false
      httpClient:
        authentication:
          password: admin-password
          type: username
          username: admin
        autoBlock: true
        blocked: false
        connection:
          enableCircularRedirects: false
          enableCookies: false
          retries: 0
          timeout: 60
          useTrustStore: false
          userAgentSuffix: string
      negativeCache:
        enabled: true
        ttl: 1440
      online: true
      proxy:
        contentMaxAge: 1440
        metadataMaxAge: 1440
        remoteUrl: https://remote.repository.com
      routingRule: string
      storage:
        blobStoreName: default
        strictContentTypeValidation: true
Copy

Create RepositoryAptProxy Resource

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

Constructor syntax

new RepositoryAptProxy(name: string, args: RepositoryAptProxyArgs, opts?: CustomResourceOptions);
@overload
def RepositoryAptProxy(resource_name: str,
                       args: RepositoryAptProxyArgs,
                       opts: Optional[ResourceOptions] = None)

@overload
def RepositoryAptProxy(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       distribution: Optional[str] = None,
                       flat: Optional[bool] = None,
                       http_client: Optional[RepositoryAptProxyHttpClientArgs] = None,
                       negative_cache: Optional[RepositoryAptProxyNegativeCacheArgs] = None,
                       proxy: Optional[RepositoryAptProxyProxyArgs] = None,
                       storage: Optional[RepositoryAptProxyStorageArgs] = None,
                       cleanups: Optional[Sequence[RepositoryAptProxyCleanupArgs]] = None,
                       name: Optional[str] = None,
                       online: Optional[bool] = None,
                       routing_rule: Optional[str] = None)
func NewRepositoryAptProxy(ctx *Context, name string, args RepositoryAptProxyArgs, opts ...ResourceOption) (*RepositoryAptProxy, error)
public RepositoryAptProxy(string name, RepositoryAptProxyArgs args, CustomResourceOptions? opts = null)
public RepositoryAptProxy(String name, RepositoryAptProxyArgs args)
public RepositoryAptProxy(String name, RepositoryAptProxyArgs args, CustomResourceOptions options)
type: nexus:RepositoryAptProxy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. RepositoryAptProxyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. RepositoryAptProxyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. RepositoryAptProxyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. RepositoryAptProxyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. RepositoryAptProxyArgs
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 repositoryAptProxyResource = new Nexus.RepositoryAptProxy("repositoryAptProxyResource", new()
{
    Distribution = "string",
    Flat = false,
    HttpClient = new Nexus.Inputs.RepositoryAptProxyHttpClientArgs
    {
        AutoBlock = false,
        Blocked = false,
        Authentication = new Nexus.Inputs.RepositoryAptProxyHttpClientAuthenticationArgs
        {
            Type = "string",
            NtlmDomain = "string",
            NtlmHost = "string",
            Password = "string",
            Username = "string",
        },
        Connection = new Nexus.Inputs.RepositoryAptProxyHttpClientConnectionArgs
        {
            EnableCircularRedirects = false,
            EnableCookies = false,
            Retries = 0,
            Timeout = 0,
            UseTrustStore = false,
            UserAgentSuffix = "string",
        },
    },
    NegativeCache = new Nexus.Inputs.RepositoryAptProxyNegativeCacheArgs
    {
        Enabled = false,
        Ttl = 0,
    },
    Proxy = new Nexus.Inputs.RepositoryAptProxyProxyArgs
    {
        RemoteUrl = "string",
        ContentMaxAge = 0,
        MetadataMaxAge = 0,
    },
    Storage = new Nexus.Inputs.RepositoryAptProxyStorageArgs
    {
        BlobStoreName = "string",
        StrictContentTypeValidation = false,
    },
    Cleanups = new[]
    {
        new Nexus.Inputs.RepositoryAptProxyCleanupArgs
        {
            PolicyNames = new[]
            {
                "string",
            },
        },
    },
    Name = "string",
    Online = false,
    RoutingRule = "string",
});
Copy
example, err := nexus.NewRepositoryAptProxy(ctx, "repositoryAptProxyResource", &nexus.RepositoryAptProxyArgs{
	Distribution: pulumi.String("string"),
	Flat:         pulumi.Bool(false),
	HttpClient: &nexus.RepositoryAptProxyHttpClientArgs{
		AutoBlock: pulumi.Bool(false),
		Blocked:   pulumi.Bool(false),
		Authentication: &nexus.RepositoryAptProxyHttpClientAuthenticationArgs{
			Type:       pulumi.String("string"),
			NtlmDomain: pulumi.String("string"),
			NtlmHost:   pulumi.String("string"),
			Password:   pulumi.String("string"),
			Username:   pulumi.String("string"),
		},
		Connection: &nexus.RepositoryAptProxyHttpClientConnectionArgs{
			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.RepositoryAptProxyNegativeCacheArgs{
		Enabled: pulumi.Bool(false),
		Ttl:     pulumi.Float64(0),
	},
	Proxy: &nexus.RepositoryAptProxyProxyArgs{
		RemoteUrl:      pulumi.String("string"),
		ContentMaxAge:  pulumi.Float64(0),
		MetadataMaxAge: pulumi.Float64(0),
	},
	Storage: &nexus.RepositoryAptProxyStorageArgs{
		BlobStoreName:               pulumi.String("string"),
		StrictContentTypeValidation: pulumi.Bool(false),
	},
	Cleanups: nexus.RepositoryAptProxyCleanupArray{
		&nexus.RepositoryAptProxyCleanupArgs{
			PolicyNames: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
	},
	Name:        pulumi.String("string"),
	Online:      pulumi.Bool(false),
	RoutingRule: pulumi.String("string"),
})
Copy
var repositoryAptProxyResource = new RepositoryAptProxy("repositoryAptProxyResource", RepositoryAptProxyArgs.builder()
    .distribution("string")
    .flat(false)
    .httpClient(RepositoryAptProxyHttpClientArgs.builder()
        .autoBlock(false)
        .blocked(false)
        .authentication(RepositoryAptProxyHttpClientAuthenticationArgs.builder()
            .type("string")
            .ntlmDomain("string")
            .ntlmHost("string")
            .password("string")
            .username("string")
            .build())
        .connection(RepositoryAptProxyHttpClientConnectionArgs.builder()
            .enableCircularRedirects(false)
            .enableCookies(false)
            .retries(0)
            .timeout(0)
            .useTrustStore(false)
            .userAgentSuffix("string")
            .build())
        .build())
    .negativeCache(RepositoryAptProxyNegativeCacheArgs.builder()
        .enabled(false)
        .ttl(0)
        .build())
    .proxy(RepositoryAptProxyProxyArgs.builder()
        .remoteUrl("string")
        .contentMaxAge(0)
        .metadataMaxAge(0)
        .build())
    .storage(RepositoryAptProxyStorageArgs.builder()
        .blobStoreName("string")
        .strictContentTypeValidation(false)
        .build())
    .cleanups(RepositoryAptProxyCleanupArgs.builder()
        .policyNames("string")
        .build())
    .name("string")
    .online(false)
    .routingRule("string")
    .build());
Copy
repository_apt_proxy_resource = nexus.RepositoryAptProxy("repositoryAptProxyResource",
    distribution="string",
    flat=False,
    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")
Copy
const repositoryAptProxyResource = new nexus.RepositoryAptProxy("repositoryAptProxyResource", {
    distribution: "string",
    flat: false,
    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",
});
Copy
type: nexus:RepositoryAptProxy
properties:
    cleanups:
        - policyNames:
            - string
    distribution: string
    flat: false
    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
Copy

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

Distribution This property is required. string
Distribution to fetch
Flat This property is required. bool
Distribution to fetch
HttpClient This property is required. RepositoryAptProxyHttpClient
HTTP Client configuration for proxy repositories
NegativeCache This property is required. RepositoryAptProxyNegativeCache
Configuration of the negative cache handling
Proxy This property is required. RepositoryAptProxyProxy
Configuration for the proxy repository
Storage This property is required. RepositoryAptProxyStorage
The storage configuration of the repository
Cleanups List<RepositoryAptProxyCleanup>
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
Distribution This property is required. string
Distribution to fetch
Flat This property is required. bool
Distribution to fetch
HttpClient This property is required. RepositoryAptProxyHttpClientArgs
HTTP Client configuration for proxy repositories
NegativeCache This property is required. RepositoryAptProxyNegativeCacheArgs
Configuration of the negative cache handling
Proxy This property is required. RepositoryAptProxyProxyArgs
Configuration for the proxy repository
Storage This property is required. RepositoryAptProxyStorageArgs
The storage configuration of the repository
Cleanups []RepositoryAptProxyCleanupArgs
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
distribution This property is required. String
Distribution to fetch
flat This property is required. Boolean
Distribution to fetch
httpClient This property is required. RepositoryAptProxyHttpClient
HTTP Client configuration for proxy repositories
negativeCache This property is required. RepositoryAptProxyNegativeCache
Configuration of the negative cache handling
proxy This property is required. RepositoryAptProxyProxy
Configuration for the proxy repository
storage This property is required. RepositoryAptProxyStorage
The storage configuration of the repository
cleanups List<RepositoryAptProxyCleanup>
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
distribution This property is required. string
Distribution to fetch
flat This property is required. boolean
Distribution to fetch
httpClient This property is required. RepositoryAptProxyHttpClient
HTTP Client configuration for proxy repositories
negativeCache This property is required. RepositoryAptProxyNegativeCache
Configuration of the negative cache handling
proxy This property is required. RepositoryAptProxyProxy
Configuration for the proxy repository
storage This property is required. RepositoryAptProxyStorage
The storage configuration of the repository
cleanups RepositoryAptProxyCleanup[]
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
distribution This property is required. str
Distribution to fetch
flat This property is required. bool
Distribution to fetch
http_client This property is required. RepositoryAptProxyHttpClientArgs
HTTP Client configuration for proxy repositories
negative_cache This property is required. RepositoryAptProxyNegativeCacheArgs
Configuration of the negative cache handling
proxy This property is required. RepositoryAptProxyProxyArgs
Configuration for the proxy repository
storage This property is required. RepositoryAptProxyStorageArgs
The storage configuration of the repository
cleanups Sequence[RepositoryAptProxyCleanupArgs]
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
distribution This property is required. String
Distribution to fetch
flat This property is required. Boolean
Distribution to fetch
httpClient This property is required. Property Map
HTTP Client configuration for proxy repositories
negativeCache This property is required. Property Map
Configuration of the negative cache handling
proxy This property is required. Property Map
Configuration for the proxy repository
storage This property is required. 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 RepositoryAptProxy 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 RepositoryAptProxy Resource

Get an existing RepositoryAptProxy 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?: RepositoryAptProxyState, opts?: CustomResourceOptions): RepositoryAptProxy
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cleanups: Optional[Sequence[RepositoryAptProxyCleanupArgs]] = None,
        distribution: Optional[str] = None,
        flat: Optional[bool] = None,
        http_client: Optional[RepositoryAptProxyHttpClientArgs] = None,
        name: Optional[str] = None,
        negative_cache: Optional[RepositoryAptProxyNegativeCacheArgs] = None,
        online: Optional[bool] = None,
        proxy: Optional[RepositoryAptProxyProxyArgs] = None,
        routing_rule: Optional[str] = None,
        storage: Optional[RepositoryAptProxyStorageArgs] = None) -> RepositoryAptProxy
func GetRepositoryAptProxy(ctx *Context, name string, id IDInput, state *RepositoryAptProxyState, opts ...ResourceOption) (*RepositoryAptProxy, error)
public static RepositoryAptProxy Get(string name, Input<string> id, RepositoryAptProxyState? state, CustomResourceOptions? opts = null)
public static RepositoryAptProxy get(String name, Output<String> id, RepositoryAptProxyState state, CustomResourceOptions options)
resources:  _:    type: nexus:RepositoryAptProxy    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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<RepositoryAptProxyCleanup>
Cleanup policies
Distribution string
Distribution to fetch
Flat bool
Distribution to fetch
HttpClient RepositoryAptProxyHttpClient
HTTP Client configuration for proxy repositories
Name string
A unique identifier for this repository
NegativeCache RepositoryAptProxyNegativeCache
Configuration of the negative cache handling
Online bool
Whether this repository accepts incoming requests
Proxy RepositoryAptProxyProxy
Configuration for the proxy repository
RoutingRule string
The name of the routing rule assigned to this repository
Storage RepositoryAptProxyStorage
The storage configuration of the repository
Cleanups []RepositoryAptProxyCleanupArgs
Cleanup policies
Distribution string
Distribution to fetch
Flat bool
Distribution to fetch
HttpClient RepositoryAptProxyHttpClientArgs
HTTP Client configuration for proxy repositories
Name string
A unique identifier for this repository
NegativeCache RepositoryAptProxyNegativeCacheArgs
Configuration of the negative cache handling
Online bool
Whether this repository accepts incoming requests
Proxy RepositoryAptProxyProxyArgs
Configuration for the proxy repository
RoutingRule string
The name of the routing rule assigned to this repository
Storage RepositoryAptProxyStorageArgs
The storage configuration of the repository
cleanups List<RepositoryAptProxyCleanup>
Cleanup policies
distribution String
Distribution to fetch
flat Boolean
Distribution to fetch
httpClient RepositoryAptProxyHttpClient
HTTP Client configuration for proxy repositories
name String
A unique identifier for this repository
negativeCache RepositoryAptProxyNegativeCache
Configuration of the negative cache handling
online Boolean
Whether this repository accepts incoming requests
proxy RepositoryAptProxyProxy
Configuration for the proxy repository
routingRule String
The name of the routing rule assigned to this repository
storage RepositoryAptProxyStorage
The storage configuration of the repository
cleanups RepositoryAptProxyCleanup[]
Cleanup policies
distribution string
Distribution to fetch
flat boolean
Distribution to fetch
httpClient RepositoryAptProxyHttpClient
HTTP Client configuration for proxy repositories
name string
A unique identifier for this repository
negativeCache RepositoryAptProxyNegativeCache
Configuration of the negative cache handling
online boolean
Whether this repository accepts incoming requests
proxy RepositoryAptProxyProxy
Configuration for the proxy repository
routingRule string
The name of the routing rule assigned to this repository
storage RepositoryAptProxyStorage
The storage configuration of the repository
cleanups Sequence[RepositoryAptProxyCleanupArgs]
Cleanup policies
distribution str
Distribution to fetch
flat bool
Distribution to fetch
http_client RepositoryAptProxyHttpClientArgs
HTTP Client configuration for proxy repositories
name str
A unique identifier for this repository
negative_cache RepositoryAptProxyNegativeCacheArgs
Configuration of the negative cache handling
online bool
Whether this repository accepts incoming requests
proxy RepositoryAptProxyProxyArgs
Configuration for the proxy repository
routing_rule str
The name of the routing rule assigned to this repository
storage RepositoryAptProxyStorageArgs
The storage configuration of the repository
cleanups List<Property Map>
Cleanup policies
distribution String
Distribution to fetch
flat Boolean
Distribution to fetch
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

RepositoryAptProxyCleanup
, RepositoryAptProxyCleanupArgs

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

RepositoryAptProxyHttpClient
, RepositoryAptProxyHttpClientArgs

AutoBlock This property is required. bool
Whether to auto-block outbound connections if remote peer is detected as unreachable/unresponsive
Blocked This property is required. bool
Whether to block outbound connections on the repository
Authentication RepositoryAptProxyHttpClientAuthentication
Authentication configuration of the HTTP client
Connection RepositoryAptProxyHttpClientConnection
Connection configuration of the HTTP client
AutoBlock This property is required. bool
Whether to auto-block outbound connections if remote peer is detected as unreachable/unresponsive
Blocked This property is required. bool
Whether to block outbound connections on the repository
Authentication RepositoryAptProxyHttpClientAuthentication
Authentication configuration of the HTTP client
Connection RepositoryAptProxyHttpClientConnection
Connection configuration of the HTTP client
autoBlock This property is required. Boolean
Whether to auto-block outbound connections if remote peer is detected as unreachable/unresponsive
blocked This property is required. Boolean
Whether to block outbound connections on the repository
authentication RepositoryAptProxyHttpClientAuthentication
Authentication configuration of the HTTP client
connection RepositoryAptProxyHttpClientConnection
Connection configuration of the HTTP client
autoBlock This property is required. boolean
Whether to auto-block outbound connections if remote peer is detected as unreachable/unresponsive
blocked This property is required. boolean
Whether to block outbound connections on the repository
authentication RepositoryAptProxyHttpClientAuthentication
Authentication configuration of the HTTP client
connection RepositoryAptProxyHttpClientConnection
Connection configuration of the HTTP client
auto_block This property is required. bool
Whether to auto-block outbound connections if remote peer is detected as unreachable/unresponsive
blocked This property is required. bool
Whether to block outbound connections on the repository
authentication RepositoryAptProxyHttpClientAuthentication
Authentication configuration of the HTTP client
connection RepositoryAptProxyHttpClientConnection
Connection configuration of the HTTP client
autoBlock This property is required. Boolean
Whether to auto-block outbound connections if remote peer is detected as unreachable/unresponsive
blocked This property is required. 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

RepositoryAptProxyHttpClientAuthentication
, RepositoryAptProxyHttpClientAuthenticationArgs

Type This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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

RepositoryAptProxyHttpClientConnection
, RepositoryAptProxyHttpClientConnectionArgs

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

RepositoryAptProxyNegativeCache
, RepositoryAptProxyNegativeCacheArgs

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

RepositoryAptProxyProxy
, RepositoryAptProxyProxyArgs

RemoteUrl This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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.

RepositoryAptProxyStorage
, RepositoryAptProxyStorageArgs

BlobStoreName This property is required. string
Blob store used to store repository contents
StrictContentTypeValidation bool
Whether to validate uploaded content's MIME type appropriate for the repository format
BlobStoreName This property is required. string
Blob store used to store repository contents
StrictContentTypeValidation bool
Whether to validate uploaded content's MIME type appropriate for the repository format
blobStoreName This property is required. String
Blob store used to store repository contents
strictContentTypeValidation Boolean
Whether to validate uploaded content's MIME type appropriate for the repository format
blobStoreName This property is required. 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 This property is required. 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 This property is required. 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/repositoryAptProxy:RepositoryAptProxy bionic_proxy bionic-proxy
Copy

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.