-
Notifications
You must be signed in to change notification settings - Fork 0
/
TM1ps_Server.psm1
55 lines (42 loc) · 1.34 KB
/
TM1ps_Server.psm1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# ======================================================================================================
# _____ _ _ ___ __
# | | | |\/| / | | |_) ( (`
# |_| |_| | |_| |_| _)_)
#
# Functions to handel servers:
# 'Get-Tm1ServerConfiguration'
# ======================================================================================================
function Get-Tm1ServerConfiguration {
<#
.SYNOPSIS
...
.DESCRIPTION
...
.PARAMETER Tm1ConnectionName
Parameter 1
.INPUTS
None. You cannot pipe objects to this function.
.OUTPUTS
...
.EXAMPLE
...
.LINK
https://github.com/ichermak/TM1ps
#>
[CmdletBinding()]
PARAM (
[Parameter(Mandatory = $true, Position = 1)] [STRING]$Tm1ConnectionName
)
TRY {
# Build the rest request url
$Tm1RestRequest = "Configuration"
# Execute the rest request
$Tm1RestMethod = 'GET'
$Tm1ServerConfigurationGetResult = Request-Tm1Rest -Tm1ConnectionName $Tm1ConnectionName -Tm1RestMethod $Tm1RestMethod -Tm1RestRequest $Tm1RestRequest
}
CATCH {
Write-Error "$($_.Exception.Message)"
Break
}
return $Tm1ServerConfigurationGetResult
}