Skip to content

Set HPOVStorageVolumeTemplatePolicy

Chris Lynch edited this page Jul 25, 2016 · 42 revisions

HPE OneView 2.00 Library

Set-HPOVStorageVolumeTemplatePolicy

Set Storage Volume Template Global Policy

SYNTAX

Set-HPOVStorageVolumeTemplatePolicy [<CommonParameters>]
Set-HPOVStorageVolumeTemplatePolicy[ [-Enable] <SwitchParameter>] [-ApplianceConnection] <Object> [<CommonParameters>]
Set-HPOVStorageVolumeTemplatePolicy[ [-Disable] <SwitchParameter>] [-ApplianceConnection] <Object> [<CommonParameters>]

Detailed Description

By default, Storage Volumes can be created without reference to a Storage Volume Template. This Cmdlet will allow the administrator to change the global policy setting. Use with caution, as this will prevent copying Server Profiles that contain attached Storage Volumes.

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

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

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

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

-Disable <SwitchParameter>

Switch to disable the policy

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

-Enable <SwitchParameter>

Switch to enable the policy

Aliases Appliance
Required? false
Position? named
Default value False
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

System.Boolean Returned boolean value after changing policy.

Examples

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

PS C:\> Get-HPOVStorageVolumeTemplatePolicy Appliance Name Value --------- ---- ----- MyAppliance.domain.com StorageVolumeTemplateRequired true MyAppliance2.domain.com StorageVolumeTemplateRequired true PS C:\> Set-HPOVStorageVolumeTemplatePolicy -disable Appliance Name Value --------- ---- ----- MyAppliance.domain.com StorageVolumeTemplateRequired false MyAppliance2.domain.com StorageVolumeTemplateRequired false

Get the Storage Volume Template Global Policy setting, then disable it for all connected appliances.

Related Links

HPE OneView 1.20 Library

Set-HPOVStorageVolumeTemplatePolicy

Set Storage Volume Template Global Policy

SYNTAX

Set-HPOVStorageVolumeTemplatePolicy [<CommonParameters>]
Set-HPOVStorageVolumeTemplatePolicy [-Enable] <Enable> [<CommonParameters>]
Set-HPOVStorageVolumeTemplatePolicy [-Disable] <Disable> [<CommonParameters>]

Detailed Description

By default, Storage Volumes can be created without reference to a Storage Volume Template. This cmdlet will allow the administrator to change the global policy setting. Use with caution, as this will prevent copying Server Profiles that contain attached Storage Volumes.

Parameters

-Enable <Enable>

Switch to enable the policy

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

-Disable <Disable>

Switch to disable the policy

Aliases
Required? true
Position? named
Default value False
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

System.Boolean Returned boolean value after changing policy.

Examples

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

PS C:\> Get-HPOVStorageVolumeTemplatePolicy True PS C:\> Set-HPOVStorageVolumeTemplatePolicy -disable

Get the Storage Volume Template Global Policy setting, then disable it.

Related Links

Wiki Table of Contents

Clone this wiki locally