Cmdlet
Get-OfficeConfluenceAttachment
Lists or downloads Confluence page attachments.
Syntax
Get-OfficeConfluenceAttachment
[-AsPage]
[-Cursor <String>]
[-Limit <Int32>]
-PageId <String>
-Session <ConfluenceSession>
[<CommonParameters>]#Parameter set:
ListGet-OfficeConfluenceAttachment
-AttachmentId <String>
[-Force]
[-OutFile <String>]
-PageId <String>
-Session <ConfluenceSession>
[<CommonParameters>]#Parameter set:
DownloadExamples
List all attachments for a page.
Get-OfficeConfluenceAttachment -Session $session -PageId 12345Follows attachment cursors and streams attachment metadata.
Parameters
- -AsPage SwitchParameter
- Return attachment batches rather than individual metadata objects.
- -Cursor String
- Optional cursor at which to resume attachment listing.
- -Limit Int32
- Maximum attachments requested per listing batch.
- -PageId String
- Page identifier.
- -Session ConfluenceSession
- Configured Confluence session.
- -AttachmentId String
- Attachment identifier to download.
- -Force SwitchParameter
- Overwrite an existing destination file.
- -OutFile String
- Optional destination path. Without this parameter, the download is returned as one byte array.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.