New-NexusAptProxyRepository
SYNOPSIS
Creates a new Apt Proxy Repository
SYNTAX
Hosted (Default)
New-NexusAptProxyRepository -Name <String> -Distribution <String> -SigningKey <String>
[-SigningKeyPassphrase <String>] [-BlobStore <String>] [-UseStrictContentValidation]
-DeploymentPolicy <String> [-CleanupPolicy <String>] [-Online] [-HasProprietaryComponents]
-ProxyRemoteUrl <String> [-ContentMaxAgeMinutes <String>] [-MetadataMaxAgeMinutes <String>]
[-QueryCacheItemMaxAgSeconds <String>] [-UseNegativeCache] [-NegativeCacheTTLMinutes <String>] [-FlatUpstream]
[-BlockOutboundConnections] [-EnableAutoBlocking] [-ConnectionRetries <String>]
[-ConnectionTimeoutSeconds <String>] [-EnableCircularRedirects] [-EnableCookies] [-CustomUserAgent <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Authentication
New-NexusAptProxyRepository -Name <String> -Distribution <String> -SigningKey <String>
[-SigningKeyPassphrase <String>] [-BlobStore <String>] [-UseStrictContentValidation]
-DeploymentPolicy <String> [-CleanupPolicy <String>] [-Online] [-HasProprietaryComponents]
-ProxyRemoteUrl <String> [-ContentMaxAgeMinutes <String>] [-MetadataMaxAgeMinutes <String>]
[-QueryCacheItemMaxAgSeconds <String>] [-UseNegativeCache] [-NegativeCacheTTLMinutes <String>] [-FlatUpstream]
[-UseAuthentication] -AuthenticationType <String> -Credential <PSCredential> [-HostnameFqdn <String>]
[-DomainName <String>] [-BlockOutboundConnections] [-EnableAutoBlocking] [-ConnectionRetries <String>]
[-ConnectionTimeoutSeconds <String>] [-EnableCircularRedirects] [-EnableCookies] [-CustomUserAgent <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
Creates a new Apt Proxy Repository
EXAMPLES
EXAMPLE 1
$RepoParams = @{
Name = 'AptProxy'
Distribution = 'bionic'
SigningKey = 'SuperSecretKey'
DeploymentPolicy = 'Allow_Once'
ProxyUrl = 'https://upstream.deb.com'
}
New-NexusAptProxyRepository @RepoParams
PARAMETERS
-Name
The name given to the repository
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Distribution
Distribution to fetch e.g. bionic
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SigningKey
PGP signing key pair (armored private key e.g. gpg --export-secret-key --armor )
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SigningKeyPassphrase
Passphrase to access PGP Signing Key
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-BlobStore
Blob store used to store repository contents
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: Default
Accept pipeline input: False
Accept wildcard characters: False
-UseStrictContentValidation
Validate that all content uploaded to this repository is of a MIME type appropriate for the repository format
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-DeploymentPolicy
Controls if deployments of and updates to artifacts are allowed
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-CleanupPolicy
Components that match any of the Applied policies will be deleted
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Online
The repository accepts incoming requests
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: True
Accept pipeline input: False
Accept wildcard characters: False
-HasProprietaryComponents
Components in this repository count as proprietary for namespace conflict attacks (requires Sonatype Nexus Firewall)
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-ProxyRemoteUrl
Location of the remote repository being proxied
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ContentMaxAgeMinutes
How long (in minutes) to cache artifacts before rechecking the remote repository. Release repositories should use -1.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 1440
Accept pipeline input: False
Accept wildcard characters: False
-MetadataMaxAgeMinutes
How long (in minutes) to cache metadata before rechecking the remote repository.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 1440
Accept pipeline input: False
Accept wildcard characters: False
-QueryCacheItemMaxAgSeconds
How long to cache the fact that a file was not found in the repository (in minutes)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 3600
Accept pipeline input: False
Accept wildcard characters: False
-UseNegativeCache
Cache responses for content not present in the proxied repository
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-NegativeCacheTTLMinutes
How long to cache the fact that a file was not found in the repository (in minutes)
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 1440
Accept pipeline input: False
Accept wildcard characters: False
-FlatUpstream
Is this repository flat?
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: True
Accept pipeline input: False
Accept wildcard characters: False
-UseAuthentication
Use authentication for the upstream repository
Type: SwitchParameter
Parameter Sets: Authentication
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-AuthenticationType
The type of authentication required by the upstream repository
Type: String
Parameter Sets: Authentication
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Credential
Credentials to use to connecto to upstream repository
Type: PSCredential
Parameter Sets: Authentication
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-HostnameFqdn
If using NTLM authentication, the Hostname of the NTLM host to query
Type: String
Parameter Sets: Authentication
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DomainName
The domain name of the NTLM host
Type: String
Parameter Sets: Authentication
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-BlockOutboundConnections
Block outbound connections on the repository
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-EnableAutoBlocking
Auto-block outbound connections on the repository if remote peer is detected as unreachable/unresponsive
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-ConnectionRetries
Connection attempts to upstream repository before a failure
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ConnectionTimeoutSeconds
Amount of time to wait before retrying the connection to the upstream repository
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-EnableCircularRedirects
Enable redirects to the same location (may be required by some servers)
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-EnableCookies
Allow cookies to be stored and used
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-CustomUserAgent
Custom fragment to append to "User-Agent" header in HTTP requests
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
NOTES
General notes