< Back
Set-vRAStorageReservationPolicy
Post
NAME Set-vRAStorageReservationPolicy
SYNOPSIS
Update a vRA Storage Reservation Policy
SYNTAX
Set-vRAStorageReservationPolicy -Id <String> [-NewName <String>] [-Description <String>] [-WhatIf] [-Confirm]
[<CommonParameters>]
Set-vRAStorageReservationPolicy -Name <String> [-NewName <String>] [-Description <String>] [-WhatIf] [-Confirm]
[<CommonParameters>]
Set-vRAStorageReservationPolicy -JSON <String> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Update a vRA Storage Reservation Policy
PARAMETERS
-Id <String>
Storage Reservation Policy Id
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Name <String>
Storage Reservation Policy Name
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-NewName <String>
Storage Reservation Policy NewName
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Description <String>
Storage Reservation Policy Description
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-JSON <String>
Body text to send in JSON format
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
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 (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String.
OUTPUTS
System.Management.Automation.PSObject
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-vRAStorageReservationPolicy -Id "34ae1d6c-9972-4736-acdb-7ee109ad1dbd" -NewName "NewName" -Description
"This is the New Name"
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Set-vRAStorageReservationPolicy -Name StorageReservationPolicy01 -NewName "NewName" -Description "This is
the New Name"
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>$JSON = @"
{
"id": "34ae1d6c-9972-4736-acdb-7ee109ad1dbd",
"name": "StorageReservationPolicy01",
"description": "This is Storage Reservation Policy 01",
"reservationPolicyTypeId": "Infrastructure.Reservation.Policy.Storage"
}
"@
$JSON | Set-vRAStorageReservationPolicy -Confirm:$false
RELATED LINKS
SYNOPSIS
Update a vRA Storage Reservation Policy
SYNTAX
Set-vRAStorageReservationPolicy -Id <String> [-NewName <String>] [-Description <String>] [-WhatIf] [-Confirm]
[<CommonParameters>]
Set-vRAStorageReservationPolicy -Name <String> [-NewName <String>] [-Description <String>] [-WhatIf] [-Confirm]
[<CommonParameters>]
Set-vRAStorageReservationPolicy -JSON <String> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Update a vRA Storage Reservation Policy
PARAMETERS
-Id <String>
Storage Reservation Policy Id
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Name <String>
Storage Reservation Policy Name
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-NewName <String>
Storage Reservation Policy NewName
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Description <String>
Storage Reservation Policy Description
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-JSON <String>
Body text to send in JSON format
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
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 (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String.
OUTPUTS
System.Management.Automation.PSObject
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-vRAStorageReservationPolicy -Id "34ae1d6c-9972-4736-acdb-7ee109ad1dbd" -NewName "NewName" -Description
"This is the New Name"
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Set-vRAStorageReservationPolicy -Name StorageReservationPolicy01 -NewName "NewName" -Description "This is
the New Name"
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>$JSON = @"
{
"id": "34ae1d6c-9972-4736-acdb-7ee109ad1dbd",
"name": "StorageReservationPolicy01",
"description": "This is Storage Reservation Policy 01",
"reservationPolicyTypeId": "Infrastructure.Reservation.Policy.Storage"
}
"@
$JSON | Set-vRAStorageReservationPolicy -Confirm:$false
RELATED LINKS