Get-ITGlueFlexibleAsset

SYNOPSIS

List all flexible assets for a specific flexible asset type ID / Retrieve a flexible asset

SYNTAX

List (Default)

Get-ITGlueFlexibleAsset -FilterFlexibleAssetTypeId <long> [-FilterName <string>]
 [-FilterOrganizationId <long>] [-Include <string>] [-PageNumber <long>] [-PageSize <long>]
 [-Sort <string>] [-AllResults] [-Raw]

ById

Get-ITGlueFlexibleAsset [-Id] <long> [-Include <string>] [-Raw]

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

Parameter set [ List ] - The Get-ITGlueFlexibleAsset cmdlet invokes the GET method of the /flexible_assets endpoint (List all flexible assets for a specific flexible asset type ID)

Returns a list of flexible assets based on the unique ID of the flexible asset type.

Example return value:

{ “data”: { “id”: “401”, “type”: “flexible-assets”, “attributes”: { “organization-id”: 2, “organization-name”: “Happy Frog”, “resource-url”: “http://happyfrog.itglue.com/2/assets/33-email/records/401”, “restricted”: false, “my-glue”: false, “flexible-asset-type-id”: 33, “flexible-asset-type-name”: “Email”, “name”: “Exchange 2013”, “traits”: { “type”: “Exchange 2013”, “domains”: { “type”: “Domains”, “values”: [ { “id”: 347287, “name”: “happyfrog.itglue.com”, “organization-name”: “Happy Frog” } ] }, “email-servers”: { “type”: “Configurations”, “values”: [ { “id”: 11303436, “name”: “HF-SF-EXCH01 (Exchange)”, “hostname”: “HF-SF-EXCH01 (Exchange)”, “organization-name”: “Happy Frog”, “configuration-type-name”: “Managed Server” } ] }, “location”: “On-Premises”, “inbound-delivery”: “Office 365”, “webmail-url”: “https://email.example.com”, }, “archived”: false, “created-at”: “2017-07-28T00:53:02.000Z”, “updated-at”: “2017-07-28T00:53:03.000Z” } } }

Parameter set [ ById ] - The Get-ITGlueFlexibleAsset cmdlet invokes the GET method of the /flexible_assets/{id} endpoint (Retrieve a flexible asset)

Returns the details of an existing flexible asset.

The following example demonstrates a return value for a request with the ‘attachments’ parameter included:

{ “data”: { “id”: “401”, “type”: “flexible-assets”, “attributes”: { “organization-id”: 2, “organization-name”: “Happy Frog”, “resource-url”: “http://happyfrog.itglue.com/2/assets/33-email/records/401”, “restricted”: false, “my-glue”: false, “flexible-asset-type-id”: 33, “flexible-asset-type-name”: “Email”, “name”: “Exchange 2013”, “traits”: { “type”: “Exchange 2013”, “domains”: { “type”: “Domains”, “values”: [ { “id”: 347287, “name”: “happyfrog.itglue.com”, “organization-name”: “Happy Frog” } ] }, “email-servers”: { “type”: “Configurations”, “values”: [ { “id”: 11303436, “name”: “HF-SF-EXCH01 (Exchange)”, “hostname”: “HF-SF-EXCH01 (Exchange)”, “organization-name”: “Happy Frog”, “configuration-type-name”: “Managed Server” } ] }, “location”: “On-Premises”, “inbound-delivery”: “Office 365”, “webmail-url”: “https://email.example.com” }, “archived”: false, “created-at”: “2017-07-28T00:53:02.000Z”, “updated-at”: “2017-07-28T00:53:03.000Z” }, “relationships”: { “attachments”: { “data”: [ { “id”: “1279”, “type”: “attachments” } ] } } ], “included”: [ { “id”: “1279”, “type”: “attachments”, “attributes”: { “name”: “exchange_server_2013_operation_guideV3.pdf”, “attachment-file-name”: “exchange_server_2013_operation_guideV3.pdf”, “attachment-content-type”: “application/pdf”, “attachment-file-size”: 314368, “ext”: “pdf”, “viewable”: false, “download-url”: “http://happyfrog.itglue.com/attachments/1279”, “created-at”: “2018-03-01T23:14:18.000Z”, “updated-at”: “2018-03-01T23:14:18.000Z” } } ] } }

EXAMPLES

EXAMPLE 1

Get-ITGlueFlexibleAsset -FilterFlexibleAssetTypeId 12345

Returns the result of the /flexible_assets endpoint

EXAMPLE 2

Get-ITGlueFlexibleAsset -FilterFlexibleAssetTypeId 12345 -PageNumber 2 -PageSize 10

Returns the second page of 10 items from the /flexible_assets endpoint

EXAMPLE 3

Get-ITGlueFlexibleAsset -FilterFlexibleAssetTypeId 12345 -AllResults

Returns every item from the /flexible_assets endpoint by requesting every page of the results

EXAMPLE 4

Get-ITGlueFlexibleAsset -Id 12345

Returns the result of the /flexible_assets/{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: ''

-FilterFlexibleAssetTypeId

Filter by flexible asset type id

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: List
  Position: Named
  IsRequired: true
  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: ''

-FilterOrganizationId

Filter by organization id

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: ''

-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: ‘adapters_resources’, ‘distinct_remote_assets’, ‘attachments’, ‘passwords’, ‘user_resource_accesses’, ‘group_resource_accesses’

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 /flexible_assets Endpoint : GET /flexible_assets/{id}