Retrieves the binary Attachment for a given Attachment object.
Get-ConfluenceAttachmentFile -ApiUri <Uri> -Credential <PSCredential> [-Attachment] <Attachment[]> [-Path <string>]
Retrieves the binary Attachment for a given Attachment object.
As the files are stored in a location of the server that requires authentication, this functions allows the download of the Attachment in the same way as the rest of the module authenticates with the server.
Get-ConfluenceAttachment -PageID 123456 | Get-ConfluenceAttachmentFile
Save any attachments of page 123456 to the current directory with each filename constructed with the page ID and the attachment filename.
Get-ConfluenceAttachment -PageID 123456 | Get-ConfluenceAttachmentFile -Path "c:\temp_dir"
Save any attachments of page 123456 to a specific directory with each filename constructed with the page ID and the attachment filename.
The URi of the API interface. Value can be set persistently with Set-ConfluenceInfo.
Type: Uri
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Confluence’s credentials for authentication. Value can be set persistently with Set-ConfluenceInfo.
Type: PSCredential
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Certificate for authentication.
Type: X509Certificate
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Attachment object to download.
Type: Attachment[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Override the path used to save the files.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: Use current directory
Accept pipeline input: False
Accept wildcard characters: False
Confluence uses hierarchy to help organize content. This command is meant to help provide the intended context from the command line.