Retrieve the child Attachments of a given wiki Page.
Get-ConfluenceAttachment -ApiUri <Uri> -Credential <PSCredential> [-PageID] <Int32[]> [-FileNameFilter <string>] [-MediaTypeFilter <string>] [-Skip <UInt64>] [-First <UInt64>] [-PageSize <UInt64>] [-IncludeTotalCount]
Return all Attachments directly below the given Page.
Get-ConfluenceAttachment -PageID 123456
Get-ConfluencePage -PageID 123456 | Get-ConfluenceAttachment
Two different methods to return all Attachments directly below Page 123456. Both examples should return identical results.
Get-ConfluenceAttachment -PageID 123456, 234567
Get-ConfluencePage -PageID 123456, 234567 | Get-ConfluenceAttachment
Similar to the previous example, this shows two different methods to return the Attachments of multiple pages. Both examples should return identical results.
Get-ConfluenceAttachment -PageID 123456 -FileNameFilter "test.png"
Returns the Attachment called test.png from Page 123456 if it exists.
Get-ConfluenceAttachment -PageID 123456 -MediaTypeFilter "image/png"
Returns any attachments of mime type image/png from Page 123456.
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
Return attachments for a list of page IDs.
Type: Int32[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Filter results by filename (case sensitive). Does not support wildcards (*).
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Filter results by media type (case insensitive).
Does not support wildcards (*).
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Maximum number of results to fetch per call.
This setting can be tuned to get better performance according to the load on the server.
Warning: too high of a PageSize can cause a timeout on the request.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 25
Accept pipeline input: False
Accept wildcard characters: False
Controls how many things will be skipped before starting output.
Defaults to 0.
Type: UInt64
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
NOTE: Not yet implemented.
Indicates how many items to return.
Type: UInt64
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 18446744073709551615
Accept pipeline input: False
Accept wildcard characters: False
NOTE: Not yet implemented.
Causes an extra output of the total count at the beginning.
Note this is actually a uInt64, but with a custom string representation.
Type: SwitchParameter
Required: False
Position: Named
Default value: None
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.