Skip to content

Update-vRACodeStreamVariable

SYNOPSIS

Update a vRealize Automation Code Stream Variable

SYNTAX

Standard (Default)

Update-vRACodeStreamVariable -Name <String> -Id <String> [-Description <String>] -Type <String> -Value <String>
 [-WhatIf] [-Confirm] [<CommonParameters>]

JSON

Update-vRACodeStreamVariable [-Id <String>] -JSON <String> [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Update a vRealize Automation Code Stream Variable

EXAMPLES

EXAMPLE 1

Update-vRACodeStreamVariable -Name "My Variable" -Type REGULAR -Id 05352fc5-24c2-4ead-b6c0-5373e60a1b3d -Description "Updated from PowervRA!" -Value "New value"

EXAMPLE 2

-Variable "My Variable" | Update-vRACodeStreamVariable -Value "New value" -Description "New Description"

EXAMPLE 3

$JSON = @"
    {
        "name": "My Variable",
        "description": "My variable description"
        "type": "REGULAR",
        "value": "testing1"
    }
"@

$JSON | Update-vRACodeStreamVariable -Id 05352fc5-24c2-4ead-b6c0-5373e60a1b3d

PARAMETERS

-Name

Name of the vRealize Automation Code Stream Variable

Type: String
Parameter Sets: Standard
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Id

vRealize Automation Code Stream Variable Id

Type: String
Parameter Sets: Standard
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Type: String
Parameter Sets: JSON
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Description

A description of the vRealize Automation Code Stream Variable

Type: String
Parameter Sets: Standard
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Type

vRealize Automation Code Stream Variable Type

Type: String
Parameter Sets: Standard
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Value

vRealize Automation Code Stream Variable Value

Type: String
Parameter Sets: Standard
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-JSON

A JSON string with the body payload

Type: String
Parameter Sets: JSON
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String

OUTPUTS

System.Management.Automation.PSObject

NOTES