Public/Tenant/Set-IDTenantConfigEntry.ps1
|
# .ExternalHelp IdentityCommand-help.xml function Set-IDTenantConfigEntry { [CmdletBinding(SupportsShouldProcess)] param( [parameter( Mandatory = $true, ValueFromPipelinebyPropertyName = $true )] [ValidateNotNullOrEmpty()] [String]$Key, [parameter( Mandatory = $true, ValueFromPipelinebyPropertyName = $true )] [ValidateNotNullOrEmpty()] [String]$Value ) BEGIN {}#begin PROCESS { if ($PSCmdlet.ShouldProcess($Key, 'Set Tenant Configuration Entry')) { $URI = "$($ISPSSSession.tenant_url)/Core/SetTenantConfig?key=$($Key | Get-EscapedString)&value=$($Value | Get-EscapedString)" $Request = @{ 'URI' = $URI 'Method' = 'POST' } #Send Request Invoke-IDRestMethod @Request } }#process END {}#end } |