New HPOVExternalRepository - HewlettPackard/POSH-HPEOneView GitHub Wiki

HPE OneView 4.10 Library

New-HPOVExternalRepository

Create a new external baseline repository.

SYNTAX

New-HPOVExternalRepository [-Name] <String> [-Hostname] <String> [-Directory] <String>[ [-Username] <String>][ [-Password] <SecureString>][ [-Http] <SwitchParameter>][ [-Certificate] <String>][ [-Async] <SwitchParameter>][ [-ApplianceConnection] <Array>] [<CommonParameters>]
New-HPOVExternalRepository [-Name] <String> [-Hostname] <String> [-Directory] <String> [-Credential] <String>[ [-Http] <SwitchParameter>][ [-Certificate] <String>][ [-Async] <SwitchParameter>][ [-ApplianceConnection] <Array>] [<CommonParameters>]

Detailed Description

A firmware repository enables you to store firmware bundles and deploy them across your environment. An externally managed HTTP/HTTPS web server can be added to the appliance as a repository. It is a user-maintained HTTP/HTTPS web server. You can upload firmware bundles in a specific directory and then register the HTTP/HTTPS server with HPE OneView. This functionality is supported for Linux and Windows systems.

The recommended types of external web servers to use with the repository follow:

* Apache
* Internet Information Services (IIS)

NOTE: Only one external repository can be added.

Parameters

-ApplianceConnection <Array>

Aliases [-Appliance]

Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s).

Default Value: ${Global:ConnectedSessions} | ? Default

Aliases Appliance
Required? false
Position? named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? false
Accept wildcard characters?    False

-Async <SwitchParameter>

Use this parameter to immediately return the async task. By default, the Cmdlet will wait for the task to complete.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Certificate <String>

The Base64 Certificate of the target web server. Must be specified if the -HTTP parameter is not used.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Credential <String>

Provide a PSCredential object if the target web server requires authentication. By default, HTTPS will be used and basic authentication is used to communicate with the target web server.

Aliases None
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Directory <String>

Specify the parent virtual directory where the baseline components will be kept. Baseline components can be nested within sub directories.

Aliases None
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Hostname <String>

Specify IPv4 Address or FQDN of the target web server.

Aliases None
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Http <SwitchParameter>

Use to override the default HTTPS protocol used to communicate with the target web server. If this parameter is not used, you must specify the Base64 Certificate of the target web server. If you use this parameter, all authentication requests will be sent as clear text.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Name <String>

Provide a name for the repository.

Aliases None
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Password <SecureString>

Provide the password of the username using a SecureString.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Username <String>

Provide the username to authenticate to the target web server with if required.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

None. You cannot pipe objects to this Cmdlet.

Return Values

HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject]

The async task for the caller to monitor.

System.Collections.ArrayList <HPOneView.Appliance.TaskResource>

Multiple async task resource objects.

Examples

 -------------------------- EXAMPLE 1 --------------------------

$Params = @{ Name = "MyRepoName"; Hostname = "webserver.domain.local"; Directory = "OneViewRepo"; Credential = (Get-PSCredential -Username "DomainName\MyUser"); Certificate = (Get-Content -Path C:\Directory\Base64.cer -Raw) } New-HPOVExternalRepository @Params

Create an external repository using a PSCredential object.

 -------------------------- EXAMPLE 2 --------------------------

New-HPOVExternalRepository -Name MyRepoName -Hostname webserver.domain.local -Directory OneViewRepo -Http

Configure an external repository using anonymous authentication, and HTTP protocol.

Related Links


Top

HPE OneView 4.00 Library

New-HPOVExternalRepository

Create a new external baseline repository.

SYNTAX

New-HPOVExternalRepository [-Name] <String> [-Hostname] <String> [-Directory] <String>[ [-Username] <String>][ [-Password] <SecureString>][ [-Http] <SwitchParameter>][ [-Certificate] <String>][ [-Async] <SwitchParameter>][ [-ApplianceConnection] <Array>] [<CommonParameters>]
New-HPOVExternalRepository [-Name] <String> [-Hostname] <String> [-Directory] <String> [-Credential] <String>[ [-Http] <SwitchParameter>][ [-Certificate] <String>][ [-Async] <SwitchParameter>][ [-ApplianceConnection] <Array>] [<CommonParameters>]

Detailed Description

A firmware repository enables you to store firmware bundles and deploy them across your environment. An externally managed HTTP/HTTPS web server can be added to the appliance as a repository. It is a user-maintained HTTP/HTTPS web server. You can upload firmware bundles in a specific directory and then register the HTTP/HTTPS server with HPE OneView. This functionality is supported for Linux and Windows systems.

The recommended types of external web servers to use with the repository follow:

* Apache
* Internet Information Services (IIS)

NOTE: Only one external repository can be added.

Parameters

-ApplianceConnection <Array>

Aliases [-Appliance]

Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s).

Default Value: ${Global:ConnectedSessions} | ? Default

Aliases Appliance
Required? false
Position? named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? false
Accept wildcard characters?    False

-Async <SwitchParameter>

Use this parameter to immediately return the async task. By default, the Cmdlet will wait for the task to complete.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Certificate <String>

The Base64 Certificate of the target web server. Must be specified if the -HTTP parameter is not used.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Credential <String>

Provide a PSCredential object if the target web server requires authentication. By default, HTTPS will be used and basic authentication is used to communicate with the target web server.

Aliases None
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Directory <String>

Specify the parent virtual directory where the baseline components will be kept. Baseline components can be nested within sub directories.

Aliases None
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Hostname <String>

Specify IPv4 Address or FQDN of the target web server.

Aliases None
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Http <SwitchParameter>

Use to override the default HTTPS protocol used to communicate with the target web server. If this parameter is not used, you must specify the Base64 Certificate of the target web server. If you use this parameter, all authentication requests will be sent as clear text.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Name <String>

Provide a name for the repository.

Aliases None
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Password <SecureString>

Provide the password of the username using a SecureString.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Username <String>

Provide the username to authenticate to the target web server with if required.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

None. You cannot pipe objects to this Cmdlet.

Return Values

HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject]

The async task for the caller to monitor.

System.Collections.ArrayList <HPOneView.Appliance.TaskResource>

Multiple async task resource objects.

Examples

 -------------------------- EXAMPLE 1 --------------------------

$Params = @{ Name = 'MyRepoName'; Hostname = 'webserver.domain.local'; Directory = 'OneViewRepo'; Credential = (Get-PSCredential -Username 'DomainName\MyUser'); Certificate = (Get-Content -Path C:\Directory\Base64.cer -Raw) } New-HPOVExternalRepository @Params

Create an external repository using a PSCredential object.

 -------------------------- EXAMPLE 2 --------------------------

New-HPOVExternalRepository -Name MyRepoName -Hostname webserver.domain.local -Directory OneViewRepo -Http

Configure an external repository using anonymous authentication, and HTTP protocol.

Related Links


Top
⚠️ **GitHub.com Fallback** ⚠️