spo page get
Gets information about the specific modern page
Usage
m365 spo page get [options]
Options
-n, --name <name>
Name of the page to retrieve.
-u, --webUrl <webUrl>
URL of the site where the page to retrieve is located.
--metadataOnly
Specify to only retrieve the metadata without the section and control information.
-h, --help [help]
Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options
,examples
,remarks
,response
,full
. Default isoptions
.--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]
Output type.
json
,text
,csv
,md
,none
. Defaultjson
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Remarks
If the specified name doesn't refer to an existing modern page, you will get a File doesn't exists
error.
Examples
Get information about the modern page.
m365 spo page get --webUrl https://contoso.sharepoint.com/sites/team-a --name home.aspx
Get all the metadata from the modern page, without the section and control count information.
m365 spo page get --webUrl https://contoso.sharepoint.com/sites/team-a --name home.aspx --metadataOnly
Response
- JSON
- Text
- CSV
- Markdown
{
"ListItemAllFields": {
"CommentsDisabled": true,
"FileSystemObjectType": 0,
"Id": 21,
"ServerRedirectedEmbedUri": null,
"ServerRedirectedEmbedUrl": "",
"ContentTypeId": "0x0101009D1CB255DA76424F860D91F20E6C411800F1678937A82C3142BEF3C962300813B5",
"OData__ModerationComments": null,
"ComplianceAssetId": null,
"WikiField": null,
"Title": "new-page",
"ClientSideApplicationId": "b6917cb1-93a0-4b97-a84d-7cf49975d4ec",
"PageLayoutType": "Article",
"CanvasContent1": "<div><div data-sp-canvascontrol=\"\" data-sp-canvasdataversion=\"1.0\" data-sp-controldata=\"{"controlType":3,"displayMode":2,"id":"7558d804-0334-49ca-b14a-53870cf6caae","position":{"controlIndex":1,"sectionIndex":1,"zoneIndex":1,"sectionFactor":12,"layoutIndex":1},"webPartId":"e377ea37-9047-43b9-8cdb-a761be2f8e09","emphasis":{}}\"><div data-sp-webpart=\"\" data-sp-webpartdataversion=\"1.0\" data-sp-webpartdata=\"{"dataVersion":"1.0","description":"Display a location on a map using Bing Maps.","id":"e377ea37-9047-43b9-8cdb-a761be2f8e09","instanceId":"7558d804-0334-49ca-b14a-53870cf6caae","properties":{"pushPins":[],"maxNumberOfPushPins":1,"shouldShowPushPinTitle":true,"zoomLevel":12,"mapType":"road"},"title":"Bing Maps"}\"><div data-sp-componentid=\"e377ea37-9047-43b9-8cdb-a761be2f8e09\"></div><div data-sp-htmlproperties=\"\"></div></div></div><div data-sp-canvascontrol=\"\" data-sp-canvasdataversion=\"1.0\" data-sp-controldata=\"{"controlType":0,"pageSettingsSlice":{"isDefaultDescription":true,"isDefaultThumbnail":true}}\"></div></div>",
"BannerImageUrl": {
"Description": "https://contoso.sharepoint.com/_layouts/15/images/sitepagethumbnail.png",
"Url": "https://contoso.sharepoint.com/_layouts/15/images/sitepagethumbnail.png"
},
"Description": null,
"PromotedState": 0,
"FirstPublishedDate": null,
"LayoutWebpartsContent": null,
"OData__AuthorBylineId": null,
"_AuthorBylineStringId": null,
"OData__TopicHeader": null,
"OData__SPSitePageFlags": null,
"OData__OriginalSourceUrl": null,
"OData__OriginalSourceSiteId": null,
"OData__OriginalSourceWebId": null,
"OData__OriginalSourceListId": null,
"OData__OriginalSourceItemId": null,
"OData__SPCallToAction": null,
"OData__ModerationStatus": 3,
"Created": "2022-11-26T01:51:46",
"AuthorId": 7,
"Modified": "2022-11-26T01:55:47",
"EditorId": 7,
"OData__CopySource": null,
"CheckoutUserId": null,
"OData__UIVersionString": "0.4",
"GUID": "c8e64e90-e546-4b67-ad05-44e76dac54fb"
},
"CheckInComment": "",
"CheckOutType": 2,
"ContentTag": "{C431F2EF-447C-4F72-BC3E-ED2687456C33},8,3",
"CustomizedPageStatus": 2,
"ETag": "\"{C431F2EF-447C-4F72-BC3E-ED2687456C33},8\"",
"Exists": true,
"IrmEnabled": false,
"Length": "4106",
"Level": 2,
"LinkingUri": null,
"LinkingUrl": "",
"MajorVersion": 0,
"MinorVersion": 4,
"Name": "new-page.aspx",
"ServerRelativeUrl": "/sites/SPDemo/SitePages/new-page.aspx",
"TimeCreated": "2022-11-26T09:51:46Z",
"TimeLastModified": "2022-11-26T09:55:46Z",
"Title": "new-page",
"UIVersion": 4,
"UIVersionLabel": "0.4",
"UniqueId": "c431f2ef-447c-4f72-bc3e-ed2687456c33",
"commentsDisabled": true,
"title": "new-page",
"layoutType": "Article",
"canvasContentJson": "[{\"controlType\":3,\"displayMode\":2,\"id\":\"7558d804-0334-49ca-b14a-53870cf6caae\",\"position\":{\"controlIndex\":1,\"sectionIndex\":1,\"zoneIndex\":1,\"sectionFactor\":12,\"layoutIndex\":1},\"webPartId\":\"e377ea37-9047-43b9-8cdb-a761be2f8e09\",\"emphasis\":{},\"webPartData\":{\"dataVersion\":\"1.0\",\"description\":\"Display a location on a map using Bing Maps.\",\"id\":\"e377ea37-9047-43b9-8cdb-a761be2f8e09\",\"instanceId\":\"7558d804-0334-49ca-b14a-53870cf6caae\",\"properties\":{\"pushPins\":[],\"maxNumberOfPushPins\":1,\"shouldShowPushPinTitle\":true,\"zoomLevel\":12,\"mapType\":\"road\"},\"title\":\"Bing Maps\",\"serverProcessedContent\":{\"htmlStrings\":{},\"searchablePlainTexts\":{},\"imageSources\":{},\"links\":{}}}},{\"controlType\":0,\"pageSettingsSlice\":{\"isDefaultDescription\":true,\"isDefaultThumbnail\":true}}]",
"numControls": 2,
"numSections": 1
}
commentsDisabled: true
layoutType : Article
numControls : 2
numSections : 1
title : new-page
commentsDisabled,numSections,numControls,title,layoutType
1,1,2,new-page,Article
# spo page get --webUrl "https://contoso.sharepoint.com/sites/team-a" --name "home.aspx"
Date: 5/1/2023
## Home (86ce2216-83f1-4ab4-9b7e-ffbdcf890992)
Property | Value
---------|-------
CheckInComment |
CheckOutType | 2
CustomizedPageStatus | 1
ETag | "{86CE2216-83F1-4AB4-9B7E-FFBDCF890992},14"
Exists | true
IrmEnabled | false
Length | 805
Level | 1
LinkingUrl |
MajorVersion | 2
MinorVersion | 0
Name | home.aspx
ServerRelativeUrl | /sites/Company311/SitePages/home.aspx
TimeCreated | 2021-09-19T00:20:25Z
TimeLastModified | 2023-05-01T20:43:12Z
Title | Home
UIVersion | 1024
UIVersionLabel | 2.0
UniqueId | 86ce2216-83f1-4ab4-9b7e-ffbdcf890992
commentsDisabled | true
title | Home
layoutType | Home
numControls | 9
numSections | 2