API Reference
Cmdlet
Get-OfficeConfluenceAttachment
Lists or downloads Confluence page attachments.
Remarks
Lists or downloads Confluence page attachments.
Examples
Example 1: List all attachments for a page.
PS>
Get-OfficeConfluenceAttachment -Session $session -PageId 12345
Follows attachment cursors and streams attachment metadata.
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.
Syntax
Get-OfficeConfluenceAttachment [-AsPage] [-Cursor <String>] [-Limit <Int32>] -PageId <String> -Session <ConfluenceSession> [<CommonParameters>]#Parameter set:
ListParameters
- 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.
Outputs
OfficeIMO.Confluence.ConfluenceAttachment, OfficeIMO.Confluence.ConfluenceAttachmentBatch, System.Byte[], System.IO.FileInfo
Get-OfficeConfluenceAttachment -AttachmentId <String> [-Force] [-OutFile <String>] -PageId <String> -Session <ConfluenceSession> [<CommonParameters>]#Parameter set:
DownloadParameters
- 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.
- PageId String
- Page identifier.
- Session ConfluenceSession
- Configured Confluence session.
Outputs
OfficeIMO.Confluence.ConfluenceAttachment, OfficeIMO.Confluence.ConfluenceAttachmentBatch, System.Byte[], System.IO.FileInfo