Set-OVExternalRepository
Syntax
Set-OVExternalRepository
[-InputObject] <Object>
[-Name <String>]
[-Username <String>]
[-Password <System.Security.SecureString>]
[-Certificate <String>]
[-NFSPath <string>]
[-Async]
[<CommonParameters>]
Set-OVExternalRepository
[-InputObject] <Object>
[-Name <String>]
[-Credential <String>]
[-Certificate <String>]
[-NFSPath <string>]
[-Async]
[<CommonParameters>]
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)
Info
Only one external repository can be added.
This Cmdlet supports modifying an existing external repository. Use this Cmdlet to modify the Name, authentication credentials and/or HTTP SSL certificate.
Examples
Example 1
Get-OVBaselineRepository -Name MyRepoName -ErrorAction Stop | Set-OVExternalRepository -Name UpdatedRepoName
Modify an existing external repository with a new name.
Example 2
Get-OVBaselineRepository -Name MyRepoName MyRepoName -ErrorAction Stop | Set-OVExternalRepository -Credential (Get-PSCredential -Username "Domain\MyUpdatedAccountName")
Modify an existing repository with new credentials.
Example 3
$UpdatedSslCertificate = Get-Content C:\Dir\UpdatedCert.cer -raw
Get-OVBaselineRepository -Name MyRepoName -ErrorAction Stop | Set-OVExternalRepository -Certificate $UpdatedSslCertificate
Modify an existing repository with new Base64 SSL public certificate.
Parameters
-InputObject <Object>
Provide the external repository object to modify.
| Aliases | None |
|---|---|
| Required? | True |
| Position? | Named |
| Default value | |
| Accept pipeline input? | true (ByValue) |
| Accept wildcard characters? | False |
-Name <String>
Update the configured repository with the new name.
| Aliases | None |
|---|---|
| Required? | True |
| 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 |
-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 |
-Password <System.Security.SecureString>
Provide the password of the username using a [System.Security.SecureString].
| 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 |
-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 |
-ApplianceConnection <Array>
Specify one or more [HPEOneView.Appliance.Connection] object(s) or Name property value(s).
| Aliases | Appliance |
|---|---|
| Required? | False |
| Position? | Named |
| Default value | (${Global:ConnectedSessions} | ? Default) |
| Accept pipeline input? | true (ByPropertyName) |
| Accept wildcard characters? | False |
-NFSPath <string>
Specify the NFS path for Superdome Flex RMC firmware updates.
| 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
The external repository object from Get-OVBaselineRepository
Return Values
The async task for the caller to monitor.
Multiple async task resource objects.