Set-ITGlueConfiguration

SYNOPSIS

Update multiple configurations / Update a configuration / Update a configuration for a particular organization

SYNTAX

BulkUpdate (Default)

Set-ITGlueConfiguration -Data <Object> [-FilterArchived <bool>] [-FilterAssetTag <string>]
 [-FilterConfigurationStatusId <long>] [-FilterConfigurationTypeId <long>] [-FilterContactId <long>]
 [-FilterId <long>] [-FilterMacAddress <string>] [-FilterName <string>]
 [-FilterOrganizationId <long>] [-FilterPsaId <string>] [-FilterPsaIntegrationType <string>]
 [-FilterRmmId <string>] [-FilterRmmIntegrationType <string>] [-FilterSerialNumber <string>] [-Raw]
 [-WhatIf] [-Confirm]

ByOrganizationById

Set-ITGlueConfiguration [-OrganizationId] <long> [-Id] <long> -Data <Object> [-Raw] [-WhatIf]
 [-Confirm]

ById

Set-ITGlueConfiguration [-Id] <long> -Data <Object> [-Raw] [-WhatIf] [-Confirm]

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

Parameter set [ BulkUpdate ] - The Set-ITGlueConfiguration cmdlet invokes the PATCH method of the /configurations endpoint (Update multiple configurations)

Updates a list of items, also known as bulk updating. Bulk updates using a nested relationships route are not supported. Returns 422 Unprocessable Entity error if any relationships are present in the request. Returns 422 Unprocessable Entity error if trying to update an externally synced record on attributes other than: archived, asset_tag, notes, purchased_at, restricted, serial_number, warranty_expires_at, mitp_device_expiration_date, mitp_end_of_life_date

The bulk update PATCH format is one that is similar to the response returned from a GET on a list resource. It will accept a partial representation of objects, as long as the required parameters are present. Any attributes you don’t specify will remain unchanged.

The request body must contain a JSON array with one or more objects, for example:

{ “data”: [ { “type”: “configurations”, “attributes”: { “id”: “456”, “location-id”: 126 } }, { “type”: “configurations”, “attributes”: { “id”: “455”, “location-id”: 126 } } ] }

Parameter set [ ById ] - The Set-ITGlueConfiguration cmdlet invokes the PATCH method of the /configurations/{id} endpoint (Update a configuration)

Updates the details of an existing configuration. Returns 422 Unprocessable Entity error if any relationships are present in the request. Returns 422 Unprocessable Entity error if trying to update an externally synced record on attributes other than: archived, asset_tag, notes, purchased_at, restricted, serial_number, warranty_expires_at, mitp_device_expiration_date, mitp_end_of_life_date

A PATCH request does not require that the entire object resource with all of its attributes be enclosed. Any attributes you don’t specify will remain unchanged.

The request body must contain a JSON object, for example:

{ “data”: { “type”: “configurations”, “attributes”: { “name”: “HF-SF-SW01”, “hostname”: “HFSFSW01”, “location-id”: 126 } } }

Parameter set [ ByOrganizationById ] - The Set-ITGlueConfiguration cmdlet invokes the PATCH method of the /organizations/{organization_id}/relationships/configurations/{id} endpoint (Update a configuration for a particular organization)

Updates the details of an existing configuration. Returns 422 Unprocessable Entity error if any relationships are present in the request. Returns 422 Unprocessable Entity error if trying to update an externally synced record on attributes other than: archived, asset_tag, notes, purchased_at, restricted, serial_number, warranty_expires_at, mitp_device_expiration_date, mitp_end_of_life_date

A PATCH request does not require that the entire object resource with all of its attributes be enclosed. Any attributes you don’t specify will remain unchanged.

The request body must contain a JSON object, for example:

{ “data”: { “type”: “configurations”, “attributes”: { “name”: “HF-SF-SW01”, “hostname”: “HFSFSW01”, “location-id”: 126 } } }

This is a write function. It changes data in ITGlue. Use -WhatIf to see the request without sending it

EXAMPLES

EXAMPLE 1

Set-ITGlueConfiguration -Data @{} -WhatIf

Shows the PATCH request to the /configurations endpoint without sending it

EXAMPLE 2

Set-ITGlueConfiguration -Id 12345 -Data @{} -WhatIf

Shows the PATCH request to the /configurations/{id} endpoint without sending it

EXAMPLE 3

Set-ITGlueConfiguration -OrganizationId 12345 -Id 12345 -Data @{} -WhatIf

Shows the PATCH request to the /organizations/{organization_id}/relationships/configurations/{id} endpoint without sending it

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- cf
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Data

Defines the data of the JSON:API request body. Accepts a hashtable, an object, or a JSON string

The value is sent as the data property of the request body, such as @{ type = ‘organizations’; attributes = @{ name = ‘Example’ } }. An object with a single data property & a JSON string are sent as is

Body properties:

  • type (string) - configurations
  • attributes (object):
    • archived (boolean)
    • asset_tag (string)
    • configuration_status_id (integer)
    • configuration_type_id (integer)
    • contact_id (integer)
    • default_gateway (string)
    • hostname (string)
    • id (integer) - Required identifier for bulk updates
    • installed_at (string)
    • installed_by (string)
    • location_id (integer)
    • mac_address (string) - 17 Character limit
    • manufacturer_id (integer)
    • mitp_device_expiration_date (string)
    • mitp_end_of_life_date (string)
    • model_id (integer)
    • name (string)
    • notes (string)
    • operating_system_id (integer)
    • operating_system_notes (string)
    • organization_id (integer) - Not required when using nested relationship routes
    • position (string)
    • primary_ip (string) - IP4 and IP6 are supported
    • purchased_at (string)
    • purchased_by (string)
    • restricted (boolean)
    • serial_number (string)
    • warranty_expires_at (string)
Type: System.Object
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganizationById
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: ById
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: BulkUpdate
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterArchived

Filter by archived

Type: System.Boolean
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: BulkUpdate
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterAssetTag

Filter by asset tag

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: BulkUpdate
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterConfigurationStatusId

Filter by configuration status id

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: BulkUpdate
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterConfigurationTypeId

Filter by configuration type id

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: BulkUpdate
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterContactId

Filter by contact id

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: BulkUpdate
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterId

Filter by id

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: BulkUpdate
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterMacAddress

Filter by mac address

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: BulkUpdate
  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: BulkUpdate
  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: BulkUpdate
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterPsaId

Notes: This must be accompanied by the filter for psa_integration_type

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: BulkUpdate
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterPsaIntegrationType

Filter by psa integration type

Allowed values: ‘manage’, ‘autotask’, ‘tigerpaw’, ‘kaseya-bms’, ‘pulseway-psa’, ‘vorex’

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: BulkUpdate
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterRmmId

Notes: This must be accompanied by the filter for rmm_integration_type

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: BulkUpdate
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterRmmIntegrationType

Filter by rmm integration type

Allowed values: ‘addigy’, ‘aem’, ‘atera’, ‘auvik’, ‘managed-workplace’, ‘continuum’, ‘jamf-pro’, ‘kaseya-vsa’, ‘automate’, ‘log-me-in’, ‘msp-rmm’, ‘meraki’, ‘msp-n-central’, ‘ninja-rmm’, ‘panorama9’, ‘pulseway-rmm’, ‘syncro’, ‘watchman-monitoring’, ‘office365’, ‘vsa-x’

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: BulkUpdate
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-FilterSerialNumber

Filter by serial number

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: BulkUpdate
  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: ByOrganizationById
  Position: 1
  IsRequired: true
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: ById
  Position: 0
  IsRequired: true
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-OrganizationId

Only required for nested relationships route

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases:
- organization_id
ParameterSets:
- Name: ByOrganizationById
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: true
  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: ''

-WhatIf

Runs the command in a mode that only reports what would happen without performing the actions.

Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- wi
ParameterSets:
- Name: (All)
  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 : PATCH /configurations Endpoint : PATCH /configurations/{id} Endpoint : PATCH /organizations/{organization_id}/relationships/configurations/{id}