Get-ITGlueGroup
SYNOPSIS
List all groups in your account / Retrieve a group
SYNTAX
List (Default)
Get-ITGlueGroup [-FilterName <string>] [-Include <string>] [-PageNumber <long>] [-PageSize <long>]
[-Sort <string>] [-AllResults] [-Raw]
ById
Get-ITGlueGroup [-Id] <long> [-Include <string>] [-Raw]
ALIASES
This cmdlet has the following aliases,
- None
DESCRIPTION
Parameter set [ List ] - The Get-ITGlueGroup cmdlet invokes the GET method of the /groups endpoint (List all groups in your account)
Returns a list of groups in your account.
Example return value:
{ “data”: [ { “id”: “42”, “type”: “groups”, “attributes”: { “name”: “Tech”, “description”: null, “my-glue”: false, “my-glue-account-id”: null, “hide-from-my-glue”: false, “auto-add-new-organizations”: false, “created-at”: “2016-09-14T17:02:44.000Z”, “updated-at”: “2016-09-14T17:02:44.000Z” } }, { “id”: “43”, “type”: “groups”, “attributes”: { “name”: “Senior Tech”, “description”: null, “my-glue”: false, “my-glue-account-id”: null, “hide-from-my-glue”: false, “auto-add-new-organizations”: false, “created-at”: “2016-09-14T17:02:44.000Z”, “updated-at”: “2016-09-14T17:02:44.000Z” } } ] }
Parameter set [ ById ] - The Get-ITGlueGroup cmdlet invokes the GET method of the /groups/{id} endpoint (Retrieve a group)
Returns the details of an existing group.
Example return value:
{ “data”: { “id”: “42”, “type”: “groups”, “attributes”: { “name”: “Tech”, “description”: null, “my-glue”: false, “my-glue-account-id”: null, “hide-from-my-glue”: false, “auto-add-new-organizations”: false, “created-at”: “2016-09-14T17:02:44.000Z”, “updated-at”: “2016-09-14T17:02:44.000Z” } } }
EXAMPLES
EXAMPLE 1
Get-ITGlueGroup
Returns the result of the /groups endpoint
EXAMPLE 2
Get-ITGlueGroup -PageNumber 2 -PageSize 10
Returns the second page of 10 items from the /groups endpoint
EXAMPLE 3
Get-ITGlueGroup -AllResults
Returns every item from the /groups endpoint by requesting every page of the results
EXAMPLE 4
Get-ITGlueGroup -Id 12345
Returns the result of the /groups/{id} endpoint
PARAMETERS
-AllResults
Returns all items from the endpoint by requesting every page of the results
When PageSize is not defined 1000 items are requested with each page
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: List
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-FilterName
Filter by name
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: List
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Id
Defines the ID of the item
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ById
Position: 0
IsRequired: true
ValueFromPipeline: true
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Include
Notes: Comma separated values
Allowed values: ‘users’, ‘organizations’, ‘resource_type_restrictions’, ‘my_glue_account’
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ById
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: List
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-PageNumber
Defines the page number to return
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: List
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-PageSize
Defines the number of items to return with each page
The maximum page size is 1000
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: List
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Raw
Returns the full API response (data, meta, links, & included) instead of only the data
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Sort
Notes: To Invert order use -, eg: -name Comma separated values
Allowed values: ‘name’, ‘created_at’, ‘updated_at’
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: List
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
System.Int64
OUTPUTS
NOTES
Endpoint : GET /groups Endpoint : GET /groups/{id}