Get-ITGlueDocumentImage
SYNOPSIS
Retrieve a specific document image
SYNTAX
__AllParameterSets
Get-ITGlueDocumentImage [-Id] <long> [-Raw]
ALIASES
This cmdlet has the following aliases,
- None
DESCRIPTION
The Get-ITGlueDocumentImage cmdlet invokes the GET method of the /document_images/{id} endpoint (Retrieve a specific document image)
Returns details of a specific document image including URLs for all size variants.
Example return value (Gallery image):
{ “data”: { “id”: “15”, “type”: “document-images”, “attributes”: { “name”: “screenshot.png”, “size”: 245678, “document-id”: 42, “document-gallery-id”: 12, “target”: { “type”: “gallery”, “id”: 12 }, “original-src”: “https://storage.example.com/developer/images/15/original/screenshot.png”, “slim-src”: “https://storage.example.com/developer/images/15/slim/screenshot.png”, “thumbnail-src”: “https://storage.example.com/developer/images/15/thumbnail/screenshot.png”, “inline-resource-url”: null, “created-at”: “2024-01-10T14:00:00.000Z”, “updated-at”: “2024-01-10T14:00:00.000Z” } } }
Example return value (Inline image):
{ “data”: { “id”: “16”, “type”: “document-images”, “attributes”: { “name”: “diagram.png”, “size”: 189234, “document-id”: 42, “document-gallery-id”: null, “target”: { “type”: “document”, “id”: 42 }, “original-src”: “https://storage.example.com/developer/images/16/original/diagram.png”, “slim-src”: “https://storage.example.com/developer/images/16/slim/diagram.png”, “thumbnail-src”: “https://storage.example.com/developer/images/16/thumbnail/diagram.png”, “inline-resource-url”: “/1065811/docs/2288222/developer/images/16”, “created-at”: “2024-01-10T15:00:00.000Z”, “updated-at”: “2024-01-10T15:00:00.000Z” } } }
EXAMPLES
EXAMPLE 1
Get-ITGlueDocumentImage -Id 12345
Returns the result of the /document_images/{id} endpoint
PARAMETERS
-Id
Defines the ID of the item
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
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: ''
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 /document_images/{id}