Get-ITGlueAttachment

SYNOPSIS

List all attachments for a specific resource / Retrieve a specific attachment

SYNTAX

List (Default)

Get-ITGlueAttachment [-ResourceType] <string> [-ResourceId] <long> [-Raw]

ById

Get-ITGlueAttachment [-ResourceType] <string> [-ResourceId] <long> [-Id] <long> [-Raw]

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

Parameter set [ List ] - The Get-ITGlueAttachment cmdlet invokes the GET method of the /{resource_type}/{resource_id}/relationships/attachments endpoint (List all attachments for a specific resource)

Returns a list of attachments for the specified resource. The attachments are returned in the order they were created, with the most recent attachments appearing first by default.

Parameter set [ ById ] - The Get-ITGlueAttachment cmdlet invokes the GET method of the /{resource_type}/{resource_id}/relationships/attachments/{id} endpoint (Retrieve a specific attachment)

Returns the details of a specific attachment identified by its ID. The attachment must belong to the specified parent resource.

EXAMPLES

EXAMPLE 1

Get-ITGlueAttachment -ResourceType 'checklists' -ResourceId 12345

Returns the result of the /{resource_type}/{resource_id}/relationships/attachments endpoint

EXAMPLE 2

Get-ITGlueAttachment -ResourceType 'checklists' -ResourceId 12345 -Id 12345

Returns the result of the /{resource_type}/{resource_id}/relationships/attachments/{id} endpoint

PARAMETERS

-Id

Attachment ID

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

-ResourceId

The resource id of the parent resource.

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases:
- resource_id
ParameterSets:
- Name: ById
  Position: 1
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
- Name: List
  Position: 1
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-ResourceType

The resource type of the parent resource

Allowed values: ‘checklists’, ‘checklist_templates’, ‘configurations’, ‘contacts’, ‘documents’, ‘domains’, ‘locations’, ‘passwords’, ‘ssl_certificates’, ‘flexible_assets’, ‘tickets’

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- resource_type
ParameterSets:
- Name: ById
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
- Name: List
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: true
  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.String

System.Int64

OUTPUTS

NOTES

Endpoint : GET /{resource_type}/{resource_id}/relationships/attachments Endpoint : GET /{resource_type}/{resource_id}/relationships/attachments/{id}