Get-KeyNameValue.ps1

function Get-KeyNameValue {
<#
 
.SYNOPSIS
 
Retrieves keyed name/value pairs from the Appclusive server.
 
 
.DESCRIPTION
 
Retrieves keyed name/value pairs from the Appclusive server.
 
The K/N/V store stores arbitrary data that can be selected by either key, name, value or a combination of both. Besides specifying a selection you can furthermore define the order, the selected columns and the return format.
If you specify 'object' as output type then all filter options such as 'Select' are ignored.
 
 
.OUTPUTS
 
default | json | json-pretty | xml | xml-pretty
 
 
.INPUTS
 
You basically specify key, name and value to be retrieved. If one or more of these parameters are omitted all entities are returned that match these criteria.
If you specify 'object' as output type then all filter options such as 'Select' are ignored.
 
 
.EXAMPLE
 
Retrieves the first 5 entities from the entity set. Not specifing Key, Name or Value is the same as you would specify the 'ListAvailable' parameter.
 
Get-KeyNameValue | Select -First 5
 
Key Name Value
--- ---- -----
com.acme.infrastructure.inventory ApplicationSystem Application Server
com.acme.infrastructure.inventory ApplicationSystem Exchange
com.acme.infrastructure.inventory ApplicationSystem Other
com.acme.infrastructure.inventory ApplicationSystem Print Server
com.acme.infrastructure.inventory ApplicationSystem Term Server
 
 
.EXAMPLE
Get-KeyNameValue biz.dfch.infrastructure.inventory
 
 
Gets all entris with Key 'biz.dfch.infrastructure.inventory'.
 
Key Name Value
--- ---- -----
biz.dfch.infrastructure.inventory ServerRole DEV
biz.dfch.infrastructure.inventory ServerRole INT
biz.dfch.infrastructure.inventory ServerRole PROD
biz.dfch.infrastructure.inventory ServerTier Tier 2
biz.dfch.infrastructure.inventory ServerTier Tier 3
biz.dfch.infrastructure.inventory ServerTier Tier 4
biz.dfch.infrastructure.inventory ServerTier Tier 5
biz.dfch.infrastructure.inventory ServerTier Unknown
biz.dfch.infrastructure.inventory Status Deployed
biz.dfch.infrastructure.inventory Status Disposed
 
 
.EXAMPLE
Get-KeyNameValue biz.dfch.infrastructure.inventory ServerRole
 
As previous example. Gets all entris with Key 'biz.dfch.infrastructure.inventory' but now also specifies Name 'ServerRole'.
 
Key Name Value
--- ---- -----
biz.dfch.infrastructure.inventory ServerRole DEV
biz.dfch.infrastructure.inventory ServerRole INT
biz.dfch.infrastructure.inventory ServerRole PROD
 
 
.EXAMPLE
Get-KeyNameValue biz.dfch.infrastructure.inventory ServerRole -First 2
 
As previous example. Gets all entris with Key 'biz.dfch.infrastructure.inventory' and Name 'ServerRole' but only return first 2 entries.
 
Key Name Value
--- ---- -----
biz.dfch.infrastructure.inventory ServerRole DEV
biz.dfch.infrastructure.inventory ServerRole INT
 
 
.EXAMPLE
Get-KeyNameValue biz.dfch.infrastructure.inventory -As json-pretty
 
As previous example. Gets all entris with Key 'biz.dfch.infrastructure.inventory' but now also specifies Name 'ServerRole' and also specify return format as 'json-pretty'.
 
[
  {
    "Key": "biz.dfch.infrastructure.inventory",
    "Name": "ServerRole",
    "Value": "DEV"
  },
  {
    "Key": "biz.dfch.infrastructure.inventory",
    "Name": "ServerRole",
    "Value": "INT"
  },
  {
    "Key": "biz.dfch.infrastructure.inventory",
    "Name": "ServerRole",
    "Value": "PROD"
  }
]
 
 
.EXAMPLE
(Get-KeyNameValue ExistingKey NonExistingName -Select Value -DefaultValue "myDefaultValue").Value
 
myDefaultValue
 
 
.EXAMPLE
(Get-KeyNameValue biz.dfch.infrastructure.inventory ServerTier -Select Value).Value
 
Gets all entris with Key 'biz.dfch.infrastructure.inventory' and Name 'ServerTier' but only return the Value.
 
Tier 2
Tier 3
Tier 4
 
 
.EXAMPLE
Get-KeyNameValue biz.dfch.infrastructure.inventory ServerTier -ValueOnly
 
As previous example. Gets all entris with Key 'biz.dfch.infrastructure.inventory'
and Name 'ServerTier' but only return the Value. This example makes use of the
new 'ValueOnly' switch that facilitates the return of values only.
 
Tier 2
Tier 3
Tier 4
 
 
.EXAMPLE
PS > Get-KeyNameValue ConvertFromJsonTest
 
Key Name Value
--- ---- -----
ConvertFromJsonTest Name1 ["arr11","arr12"]
ConvertFromJsonTest Name2 ["arr21","arr22"]
ConvertFromJsonTest Name3 ["arr31","arr32"]
 
PS > Get-KeyNameValue ConvertFromJsonTest -ValueOnly
["arr11","arr12"]
["arr21","arr22"]
["arr31","arr32"]
 
PS > Get-KeyNameValue ConvertFromJsonTest -ValueOnly -Convert json
arr11
arr12
arr21
arr22
arr31
arr32
 
PS > Get-KeyNameValue ConvertFromJsonTest -ValueOnly -Convert json -First 1
arr11
arr12
 
PS > Set-KeyNameValue ConvertFromJsonTest Name20 Non-Valid-Json
PS > Set-KeyNameValue ConvertFromJsonTest Name20 Non-Valid-Json -CreateIfNotExist;
PS > Get-KeyNameValue ConvertFromJsonTest -ValueOnly
["arr11","arr12"]
["arr21","arr22"]
Non-Valid-Json
["arr31","arr32"]
PS > Get-KeyNameValue ConvertFromJsonTest -ValueOnly -Convert json -as json-pretty
[
  [
    "arr11",
    "arr12"
  ],
  [
    "arr21",
    "arr22"
  ],
  "Non-Valid-Json",
  [
    "arr31",
    "arr32"
  ]
]
 
This example shows how to decode JSON values while querying them from the KNV store.
When the returned data is not JSON it returned unchanged
 
 
.EXAMPLE
$r = Get-KeyNameValue SCCM.OSDOperatingSystemType -as object ; $r.GetType()
IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True False KeyNameValue System.Object
PS > $r[0]
Id : 125
Key : SCCM.OSDOperatingSystemType
Name : Windows 2008 R2 STD
Value : 2008STDR2x64
CreatedBy : SERVER1\Administrator
Created : 8/16/2014 4:31:04 PM +00:00
ModifiedBy : SERVER1\Administrator
Modified : 8/16/2014 4:31:04 PM +00:00
RowVersion : {0, 0, 0, 0...}
 
In this example the KNV is returned as an object, so it could be piped to
another Cmdlet like 'Remove-Entity'.
Specifying 'object' as a return format overrides options like 'Select'.
 
 
.LINK
Online Version: http://dfch.biz/biz/dfch/PS/Appclusive/Client/Get-KeyNameValue/
 
.NOTES
See module manifest for dependencies and further requirements.
 
#>

[CmdletBinding(
    SupportsShouldProcess = $false
    ,
    ConfirmImpact = 'Low'
    ,
    HelpURI='http://dfch.biz/biz/dfch/PS/Appclusive/Client/Get-KeyNameValue/'
    ,
    DefaultParameterSetName = 'list'
)]
PARAM 
(
    # Specifies the Key property of the entity.
    [Parameter(Mandatory = $false, Position = 0, ParameterSetName = 'name')]
    [Alias("k")]
    [string] $Key
    ,
    # Specifies the Name property of the entity.
    [Parameter(Mandatory = $false, Position = 1, ParameterSetName = 'name')]
    [Alias('n')]
    [string] $Name
    ,
    # Specifies the Value property of the entity.
    [Parameter(Mandatory = $false, Position = 2, ParameterSetName = 'name')]
    [Alias("v")]
    [string] $Value
    ,
    # Specifies the order of the returned entites. You can specify more than one property (e.g. Key and Name).
    [ValidateSet('Key', 'Name', 'Value')]
    [Parameter(Mandatory = $false, Position = 3)]
    [string[]] $OrderBy = @('Key','Name','Value')
    ,
    # Specifies what to return from the search
    [ValidateSet('Key', 'Name', 'Value')]
    [Parameter(Mandatory = $false, Position = 4)]
    [Alias("s")]
    [Alias("Return")]
    [string[]] $Select = @('Key','Name','Value')
    ,
    # Specifies to return only values without header information.
    # This parameter takes precendes over the 'Select' parameter.
    [Parameter(Mandatory = $false, ParameterSetName = 'name')]
    [Alias('HideTableHeaders')]
    [switch] $ValueOnly
    ,
    # Specifies to deserialize JSON payloads
    [ValidateSet('json')]
    [Parameter(Mandatory = $false, ParameterSetName = 'name')]
    [Alias('Convert')]
    [string] $ConvertFrom
    ,
    # Limits the output to the specified number of entries
    [Parameter(Mandatory = $false)]
    [Alias('top')]
    [int] $First
    ,
    # This value is only returned if the regular search would have returned no results
    [Parameter(Mandatory = $false, ParameterSetName = 'name')]
    [Alias('default')]
    $DefaultValue
    ,
    # Specifies a references to the Appclusive endpoints
    [Parameter(Mandatory = $false)]
    [Alias('Services')]
    [hashtable] $svc = (Get-Variable -Name $MyInvocation.MyCommand.Module.PrivateData.MODULEVAR -ValueOnly).Services
    ,
    # Specifies to return all existing KNV entities
    [Parameter(Mandatory = $false, ParameterSetName = 'list')]
    [switch] $ListAvailable = $false
    ,
    # Specifies the return format of the search
    [ValidateSet('default', 'json', 'json-pretty', 'xml', 'xml-pretty', 'object')]
    [Parameter(Mandatory = $false)]
    [alias('ReturnFormat')]
    [string] $As = 'default'
)

Begin 
{
    trap { Log-Exception $_; break; }

    $datBegin = [datetime]::Now;
    [string] $fn = $MyInvocation.MyCommand.Name;
    Log-Debug -fn $fn -msg ("CALL. svc '{0}'. Name '{1}'." -f ($svc -is [Object]), $Name) -fac 1;

    $EntitySetName = 'KeyNameValues';
    
    # Parameter validation
    Contract-Requires ($svc.Core -is [biz.dfch.CS.Appclusive.Api.Core.Core]) "Connect to the server before using the Cmdlet"

    $OrderBy = $OrderBy | Select -Unique;
    $OrderByString = [string]::Join(',', $OrderBy);
    $Select = $Select | Select -Unique;
    if($ValueOnly)
    {
        if('object' -eq $As)
        {
            throw ("'ReturnFormat':'object' and 'ValueOnly' must not be specified at the same time." );
            $e = New-CustomErrorRecord -m $msg -cat InvalidArgument -o $PSCmdlet;
            $PSCmdlet.ThrowTerminatingError($e);
        }
        $Select = 'Value';
    }
    if($PSBoundParameters.ContainsKey('Select') -And 'object' -eq $As)
    {
        $msg = ("'ReturnFormat':'object' and 'Select' must not be specified at the same time." );
        $e = New-CustomErrorRecord -m $msg -cat InvalidArgument -o $PSCmdlet;
        $PSCmdlet.ThrowTerminatingError($e);
    }
}
# Begin

Process 
{

# Default test variable for checking function response codes.
[Boolean] $fReturn = $false;
# Return values are always and only returned via OutputParameter.
$OutputParameter = $null;
    
try 
{
    # Parameter validation
    # N/A
    
    if($PSCmdlet.ParameterSetName -eq 'list') 
    {
        if($Select -And 'object' -ne $As) 
        {
            if($PSBoundParameters.ContainsKey('First'))
            {
                $Response = $svc.Core.$EntitySetName.AddQueryOption('$orderby','Name').AddQueryOption('$top', $First) | Select -Property $Select;
            }
            else
            {
                $Response = $svc.Core.$EntitySetName.AddQueryOption('$orderby','Name') | Select -Property $Select;
            }
        }
        else 
        {
            if($PSBoundParameters.ContainsKey('First'))
            {
                $Response = $svc.Core.$EntitySetName.AddQueryOption('$orderby','Name').AddQueryOption('$top', $First) | Select;
            }
            else
            {
                $Response = $svc.Core.$EntitySetName.AddQueryOption('$orderby','Name') | Select;
            }
        }
    } 
    else 
    {
        $Exp = @();
        if($Key) 
        { 
            $Key = $Key.ToLower();
            $Exp += ("(tolower(Key) eq '{0}')" -f $Key);
        }
        if($Name) 
        { 
            $Name = $Name.ToLower();
            $Exp += ("(tolower(Name) eq '{0}')" -f $Name);
        }
        if($Value) 
        { 
            $Value = $Value.ToLower();
            $Exp += ("(tolower(Value) eq '{0}')" -f $Value);
        }
        $FilterExpression = [String]::Join(' and ', $Exp);

        if($Select -And 'object' -ne $As) 
        {
            if($PSBoundParameters.ContainsKey('First'))
            {
                $Response = $svc.Core.$EntitySetName.AddQueryOption('$filter', $FilterExpression).AddQueryOption('$orderby', $OrderByString).AddQueryOption('$top', $First) | Select -Property $Select;
            }
            else
            {
                $Response = $svc.Core.$EntitySetName.AddQueryOption('$filter', $FilterExpression).AddQueryOption('$orderby', $OrderByString) | Select -Property $Select;
            }
        }
        else 
        {
            if($PSBoundParameters.ContainsKey('First'))
            {
                $Response = $svc.Core.$EntitySetName.AddQueryOption('$filter', $FilterExpression).AddQueryOption('$orderby', $OrderByString).AddQueryOption('$top', $First) | Select;
            }
            else
            {
                $Response = $svc.Core.$EntitySetName.AddQueryOption('$filter', $FilterExpression).AddQueryOption('$orderby', $OrderByString) | Select;
            }
        }
        if('Value' -eq $Select -And $ValueOnly)
        {
            $Response = ($Response).Value;
        }
        if($PSBoundParameters.ContainsKey('DefaultValue') -And !$Response)
        {
            $Response = $DefaultValue;
        }
        if('Value' -eq $Select -And $ConvertFrom)
        {
            $ResponseTemp = New-Object System.Collections.ArrayList;
            foreach($item in $Response)
            {
                try
                {
                    $null = $ResponseTemp.Add((ConvertFrom-Json -InputObject $item));
                }
                catch
                {
                    $null = $ResponseTemp.Add($item);
                }
            }
            $Response = $ResponseTemp.ToArray();
            Remove-Variable ResponseTemp -Confirm:$false;
        }
    }
    
    $OutputParameter = Format-ResultAs $Response $As
    $fReturn = $true;

}
catch 
{
    if($gotoSuccess -eq $_.Exception.Message) 
    {
        $fReturn = $true;
    } 
    else 
    {
        [string] $ErrorText = "catch [$($_.FullyQualifiedErrorId)]";
        $ErrorText += (($_ | fl * -Force) | Out-String);
        $ErrorText += (($_.Exception | fl * -Force) | Out-String);
        $ErrorText += (Get-PSCallStack | Out-String);
        
        if($_.Exception -is [System.Net.WebException]) 
        {
            Log-Critical $fn ("[WebException] Request FAILED with Status '{0}'. [{1}]." -f $_.Exception.Status, $_);
            Log-Debug $fn $ErrorText -fac 3;
        } 
        else 
        {
            Log-Error $fn $ErrorText -fac 3;
            if($gotoError -eq $_.Exception.Message) 
            {
                Log-Error $fn $e.Exception.Message;
                $PSCmdlet.ThrowTerminatingError($e);
            } 
            elseif($gotoFailure -ne $_.Exception.Message) 
            { 
                Write-Verbose ("$fn`n$ErrorText"); 
            } 
            else 
            {
                # N/A
            }
        } 
        $fReturn = $false;
        $OutputParameter = $null;
    } 
} 
finally 
{
    # Clean up
    # N/A
}

} 
# Process

End 
{

$datEnd = [datetime]::Now;
Log-Debug -fn $fn -msg ("RET. fReturn: [{0}]. Execution time: [{1}]ms. Started: [{2}]." -f $fReturn, ($datEnd - $datBegin).TotalMilliseconds, $datBegin.ToString('yyyy-MM-dd HH:mm:ss.fffzzz')) -fac 2;

# Return values are always and only returned via OutputParameter.
return $OutputParameter;

} 
# End

}
if($MyInvocation.ScriptName) { Export-ModuleMember -Function Get-KeyNameValue; } 

#
# Copyright 2014-2015 d-fens GmbH
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# SIG # Begin signature block
# MIIXDwYJKoZIhvcNAQcCoIIXADCCFvwCAQExCzAJ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