< Back
New-SpbmRuleSet
Post
NAME New-SpbmRuleSet
SYNOPSIS
This cmdlet creates an SPBM rule set.
SYNTAX
New-SpbmRuleSet [-AllOfRules] <SpbmRule[]> [-Name <String>] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
This cmdlet creates an SPBM rule set. An SpbmRuleSet object consists of multiple SpbmRule objects. It contains
both capability-based and tag-based rules. Each of the capability-based rules must be of the same namespace.
PARAMETERS
-AllOfRules <SpbmRule[]>
Specifies an array of SPBM rule objects for the new rule set.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-Name <String>
Specifies a name for the new rule set.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false,
the cmdlet runs without asking for user confirmation.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are
modified.
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 (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
The newly created SpbmRuleSet object
NOTES
Works only with vCenter Server 5.5 or later.
For more information, see the VMware Storage Policy API Reference:
https://pubs.vmware.com/vsphere-60/inde ... -pane.html
-------------------------- Example 1 --------------------------
New-SpbmRuleSet -AllOfRules (New-SpbmRule -AnyOfTags $tag1, $tag2)
Creates an SPBM rule set with a rule of tag objects $tag1, $tag2.
-------------------------- Example 2 --------------------------
New-SpbmRuleSet -AllOfRules $rule1, $rule2, $rule3
Creates an SPBM rule set with rule objects $rule1, $rule2, and $rule3.
RELATED LINKS
Online Version: https://code.vmware.com/doc/preview?id= ... leSet.html
SYNOPSIS
This cmdlet creates an SPBM rule set.
SYNTAX
New-SpbmRuleSet [-AllOfRules] <SpbmRule[]> [-Name <String>] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
This cmdlet creates an SPBM rule set. An SpbmRuleSet object consists of multiple SpbmRule objects. It contains
both capability-based and tag-based rules. Each of the capability-based rules must be of the same namespace.
PARAMETERS
-AllOfRules <SpbmRule[]>
Specifies an array of SPBM rule objects for the new rule set.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-Name <String>
Specifies a name for the new rule set.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false,
the cmdlet runs without asking for user confirmation.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are
modified.
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 (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
The newly created SpbmRuleSet object
NOTES
Works only with vCenter Server 5.5 or later.
For more information, see the VMware Storage Policy API Reference:
https://pubs.vmware.com/vsphere-60/inde ... -pane.html
-------------------------- Example 1 --------------------------
New-SpbmRuleSet -AllOfRules (New-SpbmRule -AnyOfTags $tag1, $tag2)
Creates an SPBM rule set with a rule of tag objects $tag1, $tag2.
-------------------------- Example 2 --------------------------
New-SpbmRuleSet -AllOfRules $rule1, $rule2, $rule3
Creates an SPBM rule set with rule objects $rule1, $rule2, and $rule3.
RELATED LINKS
Online Version: https://code.vmware.com/doc/preview?id= ... leSet.html