Retrieve a listing of pages in your Confluence instance.
Get-ConfluencePage -ApiUri <Uri> [-Credential <PSCredential>]
[-PersonalAccessToken <String>] [-Certificate <X509Certificate>]
[-PageID] <UInt64[]> [-PageSize <UInt32>] [-IncludeTotalCount] [-Skip <UInt64>]
[-First <UInt64>] [-ExcludePageBody]
Get-ConfluencePage -ApiUri <Uri> [-Credential <PSCredential>]
[-PersonalAccessToken <String>] [-Certificate <X509Certificate>]
[-SpaceKey <String>] [-Space <Space>] -Label <String[]> [-Status <String[]>]
[-PageSize <UInt32>] [-IncludeTotalCount] [-Skip <UInt64>] [-First <UInt64>]
[-ExcludePageBody]
Get-ConfluencePage -ApiUri <Uri> [-Credential <PSCredential>]
[-PersonalAccessToken <String>] [-Certificate <X509Certificate>]
-SpaceKey <String> [-Title <String>] [-PageSize <UInt32>] [-IncludeTotalCount]
[-Skip <UInt64>] [-First <UInt64>] [-ExcludePageBody]
Get-ConfluencePage -ApiUri <Uri> [-Credential <PSCredential>]
[-PersonalAccessToken <String>] [-Certificate <X509Certificate>]
[-Query] <String> [-PageSize <UInt32>] [-IncludeTotalCount] [-Skip <UInt64>]
[-First <UInt64>] [-ExcludePageBody]
Get-ConfluencePage -ApiUri <Uri> [-Credential <PSCredential>]
[-PersonalAccessToken <String>] [-Certificate <X509Certificate>]
-Space <Space> [-Title <String>] [-PageSize <UInt32>] [-IncludeTotalCount]
[-Skip <UInt64>] [-First <UInt64>] [-ExcludePageBody]
Return Confluence pages, filtered by ID, Name, or Space. Pass the optional parameter -ExcludePageBody to avoid fetching the pages’ HTML content.
Get-ConfluencePage -SpaceKey HOTH
Get-ConfluenceSpace -SpaceKey HOTH | Get-ConfluencePage
Two different methods to return all wiki pages in space “HOTH”. Both examples should return identical results.
Get-ConfluencePage -PageID 123456 | Format-List *
Returns the wiki page with ID 123456.
Format-List * displays all of the object’s properties, including the full page body.
Get-ConfluencePage -Title 'luke*' -SpaceKey HOTH
Return all pages in HOTH whose names start with “luke” (case-insensitive). Wildcards (*) can be inserted to support partial matching.
Get-ConfluencePage -Label 'skywalker'
Return all pages containing the label “skywalker” (case-insensitive). Label text must match exactly; no wildcards are applied. Only current pages are returned by default; use -Status to request archived or trashed pages.
Get-ConfluencePage -Query "mention = jSmith and creator != jSmith"
Return all pages matching the query.
Get-ConfluencePage -Label 'skywalker' -ExcludePageBody
Return all current pages containing the label “skywalker” (case-insensitive) without their page content.
Get-ConfluencePage -Label 'skywalker' -Status trashed
Return trashed pages containing the label “skywalker” when Confluence content search returns trashed label results. Confluence Cloud content search may not return trashed pages for label queries.
Get-ConfluencePage -Label 'skywalker' -Status current, archived, trashed
Return all current, archived, and trashed pages containing the label “skywalker”.
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
Confluence’s Personal Access Token for authentication. Value can be set persistently with Set-ConfluenceInfo.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Certificate to use for the authentication with the REST Api.
If no sessions is available, the request will be executed anonymously.
Type: X509Certificate
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Filter results by page ID.
Best option if you already know the ID.
Type: UInt64[]
Parameter Sets: byId
Aliases: ID
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Filter results by page name (case-insensitive).
This supports wildcards (*) to allow for partial matching.
Type: String
Parameter Sets: bySpace, bySpaceObject
Aliases: Name
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
Filter results by space key (case-insensitive).
Type: String
Parameter Sets: bySpaceObject, byLabel
Aliases: Key
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: bySpace
Aliases: Key
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Filter results by space object(s), typically from the pipeline.
Type: Space
Parameter Sets: bySpaceObject, byLabel
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Type: Space
Parameter Sets: bySpaceObject
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Filter results to only pages with the specified label(s).
Type: String[]
Parameter Sets: byLabel
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Filter label search results by one or more page statuses.
The default is current, which excludes archived and trashed pages. This filters statuses returned by Confluence content search; Confluence Cloud content search may not return trashed pages for label queries.
Type: String[]
Parameter Sets: byLabel
Aliases:
Required: False
Position: Named
Default value: current
Accept pipeline input: False
Accept wildcard characters: False
Use Confluences advanced search: CQL.
This cmdlet will always append a filter to only look for pages (type=page).
Type: String
Parameter Sets: byQuery
Aliases:
Required: True
Position: 1
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: UInt32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 25
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
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
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
Avoids fetching pages’ body
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Piped output into other cmdlets is generally tested and supported.