< Back
Get-GlpiToolsDropdownsStatusesOfItems
Post
NAME Get-GlpiToolsDropdownsStatusesOfItems
SYNOPSIS
Function gets statuses of items
SYNTAX
Get-GlpiToolsDropdownsStatusesOfItems [-All] [<CommonParameters>]
Get-GlpiToolsDropdownsStatusesOfItems -StatesId <String[]> [-Raw] [<CommonParameters>]
Get-GlpiToolsDropdownsStatusesOfItems -StatesName <String> [<CommonParameters>]
DESCRIPTION
Function gets statuses of items which can be defined in dropowns
PARAMETERS
-All [<SwitchParameter>]
This parameter will return all States from GLPI
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-StatesId <String[]>
This parameter can take pipline input, either, you can use this function with -StatesId keyword.
Provide to this param States ID from GLPI Statuses of items Bookmark
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Raw [<SwitchParameter>]
Parameter which you can use with StatesId Parameter.
StatesId has converted parameters from default, parameter Raw allows not convert this parameters.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-StatesName <String>
Provide to this param States Name from GLPI States Bookmark
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
StateId, StateName
OUTPUTS
Function returns PSCustomObject with statuses of items from GLPI
NOTES
PSP 01/2019
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-GlpiToolsDropdownsStatusesOfItems -All
Example will return all States from States.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>326 | Get-GlpiToolsDropdownsStatusesOfItems
Function gets StatesID from GLPI from Pipline, and return States object
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>326, 321 | Get-GlpiToolsDropdownsStatusesOfItems
Function gets StatesID from GLPI from Pipline (u can pass many ID's like that), and return States object
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Get-GlpiToolsDropdownsStatusesOfItems -StatesId 326
Function gets StatesID from GLPI which is provided through -StatesId after Function type, and return States object
-------------------------- EXAMPLE 5 --------------------------
PS C:\\>Get-GlpiToolsDropdownsStatusesOfItems -StatesId 326, 321
Function gets StatesID from GLPI which is provided through -StatesId keyword after Function type (u can provide
many ID's like that), and return States object
-------------------------- EXAMPLE 6 --------------------------
PS C:\\>Get-GlpiToolsDropdownsStatusesOfItems -StatesId 234 -Raw
Example will show States with id 234, but without any parameter converted
-------------------------- EXAMPLE 7 --------------------------
PS C:\\>234 | Get-GlpiToolsDropdownsStatusesOfItems -Raw
Example will show States with id 234, but without any parameter converted
-------------------------- EXAMPLE 8 --------------------------
PS C:\\>Get-GlpiToolsDropdownsStatusesOfItems -StatesName glpi
Example will return glpi States, but what is the most important, States will be shown exactly as you see in glpi
Statuses of items tab.
If you want to add parameter, you have to modify "default items to show". This is the "key/tool" icon near search.
RELATED LINKS
SYNOPSIS
Function gets statuses of items
SYNTAX
Get-GlpiToolsDropdownsStatusesOfItems [-All] [<CommonParameters>]
Get-GlpiToolsDropdownsStatusesOfItems -StatesId <String[]> [-Raw] [<CommonParameters>]
Get-GlpiToolsDropdownsStatusesOfItems -StatesName <String> [<CommonParameters>]
DESCRIPTION
Function gets statuses of items which can be defined in dropowns
PARAMETERS
-All [<SwitchParameter>]
This parameter will return all States from GLPI
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-StatesId <String[]>
This parameter can take pipline input, either, you can use this function with -StatesId keyword.
Provide to this param States ID from GLPI Statuses of items Bookmark
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Raw [<SwitchParameter>]
Parameter which you can use with StatesId Parameter.
StatesId has converted parameters from default, parameter Raw allows not convert this parameters.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-StatesName <String>
Provide to this param States Name from GLPI States Bookmark
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
StateId, StateName
OUTPUTS
Function returns PSCustomObject with statuses of items from GLPI
NOTES
PSP 01/2019
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-GlpiToolsDropdownsStatusesOfItems -All
Example will return all States from States.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>326 | Get-GlpiToolsDropdownsStatusesOfItems
Function gets StatesID from GLPI from Pipline, and return States object
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>326, 321 | Get-GlpiToolsDropdownsStatusesOfItems
Function gets StatesID from GLPI from Pipline (u can pass many ID's like that), and return States object
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Get-GlpiToolsDropdownsStatusesOfItems -StatesId 326
Function gets StatesID from GLPI which is provided through -StatesId after Function type, and return States object
-------------------------- EXAMPLE 5 --------------------------
PS C:\\>Get-GlpiToolsDropdownsStatusesOfItems -StatesId 326, 321
Function gets StatesID from GLPI which is provided through -StatesId keyword after Function type (u can provide
many ID's like that), and return States object
-------------------------- EXAMPLE 6 --------------------------
PS C:\\>Get-GlpiToolsDropdownsStatusesOfItems -StatesId 234 -Raw
Example will show States with id 234, but without any parameter converted
-------------------------- EXAMPLE 7 --------------------------
PS C:\\>234 | Get-GlpiToolsDropdownsStatusesOfItems -Raw
Example will show States with id 234, but without any parameter converted
-------------------------- EXAMPLE 8 --------------------------
PS C:\\>Get-GlpiToolsDropdownsStatusesOfItems -StatesName glpi
Example will return glpi States, but what is the most important, States will be shown exactly as you see in glpi
Statuses of items tab.
If you want to add parameter, you have to modify "default items to show". This is the "key/tool" icon near search.
RELATED LINKS