Set-DattoRMMSiteVariable

SYNOPSIS

Updates the site variable identified by the given site Uid and variable Id

SYNTAX

UpdateData (Default)

Set-DattoRMMSiteVariable -SiteUID <String> -VariableID <Int64> -Data <Object> [-WhatIf] [-Confirm]
 [<CommonParameters>]

Update

Set-DattoRMMSiteVariable -SiteUID <String> -VariableID <Int64> -Name <String> -Value <String> [-WhatIf]
 [-Confirm] [<CommonParameters>]

DESCRIPTION

The Set-DattoRMMSiteVariable cmdlet updates the site variable identified by the given site Uid and variable Id

EXAMPLES

EXAMPLE 1

Set-DattoRMMSiteVariable -SiteUID 12345 -VariableID 12345 -Name 'NewVariableName' -Value 'NewVariableValue'

Updates the site variable with the defined data

EXAMPLE 2

Set-DattoRMMSiteVariable -Data $JsonBody

Updates the site variable with the structured JSON object

PARAMETERS

-SiteUID

UID of the site

Type: String
Parameter Sets: (All)
Aliases:

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

-VariableID

ID of the variable

Type: Int64
Parameter Sets: (All)
Aliases:

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

-Name

Name of the variable

Type: String
Parameter Sets: Update
Aliases:

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

-Value

Value of the variable

Type: String
Parameter Sets: Update
Aliases:

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

-Data

JSON body

Do NOT include the “Data” property in the JSON object as this is handled by the Invoke-DattoRMMRequest function

Type: Object
Parameter Sets: UpdateData
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

OUTPUTS

NOTES

N/A

https://celerium.github.io/Celerium.DattoRMM/site/Site/Set-DattoRMMSiteVariable.html

https://zinfandel-api.centrastage.net/api/swagger-ui/index.html