New-NexusDockerHostedRepository
SYNOPSIS
Creates a new Docker Hosted repository
SYNTAX
New-NexusDockerHostedRepository [-Name] <String> [[-CleanupPolicy] <String>] [-Online]
[[-BlobStoreName] <String>] [[-UseStrictContentValidation] <String>] [[-DeploymentPolicy] <String>]
[-HasProprietaryComponents] [-EnableV1] [-ForceBasicAuth] [[-HttpPort] <String>] [[-HttpsPort] <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
Creates a new Docker Hosted repository
EXAMPLES
EXAMPLE 1
New-NexusDockerHostedRepository -Name DockerHostedTest -DeploymentPolicy Allow -EnableV1 -ForceBasicAuth
EXAMPLE 2
$RepoParams = @{
Name = MyDockerRepo
CleanupPolicy = '90 Days'
DeploymentPolicy = 'Allow'
UseStrictContentValidation = $true
ForceBasicAuth = $true
HttpPort = '8082'
EnableV1 = $true
}
New-NexusDockerHostedRepository @RepoParams
PARAMETERS
-Name
The name of the repository
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-CleanupPolicy
The Cleanup Policies to apply to the repository
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Online
Marks the repository to accept incoming requests
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: True
Accept pipeline input: False
Accept wildcard characters: False
-BlobStoreName
Blob store to use to store Docker packages
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: Default
Accept pipeline input: False
Accept wildcard characters: False
-UseStrictContentValidation
{{ Fill UseStrictContentValidation Description }}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: True
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: False
Position: 5
Default value: None
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
-EnableV1
Whether to allow clients to use the V1 API to interact with this repository
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-ForceBasicAuth
Whether to force authentication (Docker Bearer Token Realm required if false)
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-HttpPort
Create an HTTP connector at specified port
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-HttpsPort
Create an HTTPS connector at specified port
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 7
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.