Set HPOVStorageVolumeTemplatePolicy - HewlettPackard/POSH-HPEOneView GitHub Wiki
Set Storage Volume Template Global Policy
Set-HPOVStorageVolumeTemplatePolicy[ [-Enable] <SwitchParameter>] [-ApplianceConnection] <Array> [<CommonParameters>]Set-HPOVStorageVolumeTemplatePolicy[ [-Disable] <SwitchParameter>] [-ApplianceConnection] <Array> [<CommonParameters>]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.
-ApplianceConnection <Array>
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 | None |
| Required? | false |
| Position? | named |
| Default value | False |
| Accept pipeline input? | false |
| Accept wildcard characters? | False |
-Enable <SwitchParameter>
Switch to enable the policy
| Aliases | None |
| 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)
None. You cannot pipe objects to this cmdlet.
System.Boolean
Returned boolean value after changing policy
-------------------------- EXAMPLE 1 --------------------------Get-HPOVStorageVolumeTemplatePolicy Appliance Name Value --------- ---- ----- MyAppliance.domain.com StorageVolumeTemplateRequired true Set-HPOVStorageVolumeTemplatePolicy -disable -ApplianceConnection $ConnectedSessions 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.
Set Storage Volume Template Global Policy
Set-HPOVStorageVolumeTemplatePolicy[ [-Enable] <SwitchParameter>] [-ApplianceConnection] <Array> [<CommonParameters>]Set-HPOVStorageVolumeTemplatePolicy[ [-Disable] <SwitchParameter>] [-ApplianceConnection] <Array> [<CommonParameters>]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.
-ApplianceConnection <Array>
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 | None |
| Required? | false |
| Position? | named |
| Default value | False |
| Accept pipeline input? | false |
| Accept wildcard characters? | False |
-Enable <SwitchParameter>
Switch to enable the policy
| Aliases | None |
| 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)
None. You cannot pipe objects to this cmdlet.
System.Boolean
Returned boolean value after changing policy
-------------------------- EXAMPLE 1 --------------------------Get-HPOVStorageVolumeTemplatePolicy Appliance Name Value --------- ---- ----- MyAppliance.domain.com StorageVolumeTemplateRequired true Set-HPOVStorageVolumeTemplatePolicy -disable -ApplianceConnection $ConnectedSessions 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.