New-NexusRawProxyRepository
SYNOPSIS
Creates a new NuGet Proxy Repository
SYNTAX
Default (Default)
New-NexusRawProxyRepository -Name <String> -ProxyRemoteUrl <String> -ContentDisposition <String>
[-ContentMaxAgeMinutes <String>] [-MetadataMaxAgeMinutes <String>] [-QueryCacheItemMaxAgeSeconds <String>]
[-UseNegativeCache] [-NegativeCacheTTLMinutes <String>] [-CleanupPolicy <String>] [-RoutingRule <String>]
[-Online] [-BlobStoreName <String>] [-StrictContentValidation] [-UseNexusTrustStore]
[-BlockOutboundConnections] [-EnableAutoBlocking] [-ConnectionRetries <String>]
[-ConnectionTimeoutSeconds <String>] [-EnableCircularRedirects] [-EnableCookies] [-CustomUserAgent <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Authentication
New-NexusRawProxyRepository -Name <String> -ProxyRemoteUrl <String> -ContentDisposition <String>
[-ContentMaxAgeMinutes <String>] [-MetadataMaxAgeMinutes <String>] [-QueryCacheItemMaxAgeSeconds <String>]
[-UseNegativeCache] [-NegativeCacheTTLMinutes <String>] [-CleanupPolicy <String>] [-RoutingRule <String>]
[-Online] [-BlobStoreName <String>] [-StrictContentValidation] [-UseNexusTrustStore] [-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 NuGet Proxy Repository
EXAMPLES
EXAMPLE 1
$ProxyParameters = @{
Name = 'ChocoProxy'
ProxyRemoteUrl = 'https://community.chocolatey.org/api/v2'
DeploymentPolicy = 'Allow'
}
New-NexusRawProxyRepository @ProxyParameters
EXAMPLE 2
$ProxyParameters = @{
Name = 'ChocoProxy'
ProxyRemoteUrl = 'https://community.chocolatey.org/api/v2'
DeploymentPolicy = 'Allow'
UseAuthentication = $true
AuthenticationType = 'Username'
Credential = (Get-Credential)
}
New-NexusRawProxyRepository @ProxyParameters
PARAMETERS
-Name
The name to give the repository
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProxyRemoteUrl
Location of the remote repository being proxied, e.g. https://api.nuget.org/v3/index.json
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ContentDisposition
Add Content-Disposition header as 'Attachment' to disable some content from being inline in a browser.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ContentMaxAgeMinutes
Time before cached content is refreshed. Defaults to 1440
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 1440
Accept pipeline input: False
Accept wildcard characters: False
-MetadataMaxAgeMinutes
Time before cached metadata is refreshed. Defaults to 1440
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 1440
Accept pipeline input: False
Accept wildcard characters: False
-QueryCacheItemMaxAgeSeconds
Time before the query cache expires. Defaults to 3600
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 3600
Accept pipeline input: False
Accept wildcard characters: False
-UseNegativeCache
Use the built-in Negative Cache feature
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-NegativeCacheTTLMinutes
The Negative Cache Time To Live value. Defaults to 1440
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 1440
Accept pipeline input: False
Accept wildcard characters: False
-CleanupPolicy
The Cleanup Policy to apply to this repository
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RoutingRule
Routing Rules you wish to apply to this repository
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Online
Mark the repository as Online. Defaults to True
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: True
Accept pipeline input: False
Accept wildcard characters: False
-BlobStoreName
The back-end blob store in which to store cached packages
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: Default
Accept pipeline input: False
Accept wildcard characters: False
-StrictContentValidation
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: True
Accept pipeline input: False
Accept wildcard characters: False
-UseNexusTrustStore
Use certificates stored in the Nexus truststore to connect to external systems
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
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.