spo list webhook get
Gets information about the specific webhook
Usage
m365 spo list webhook get [options]
Options
-u, --webUrl <webUrl>URL of the site where the list is located.
-l, --listId [listId]ID of the list. Specify either
listTitle,listIdorlistUrl.-t, --listTitle [listTitle]Title of the list. Specify either
listTitle,listIdorlistUrl.--listUrl [listUrl]Server- or site-relative URL of the list. Specify either
listTitle,listIdorlistUrl.-i, --id <id>ID of the webhook.
-h, --help [help]Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options,examples,remarks,permissions,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.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Remarks
If the specified id doesn't refer to an existing webhook, you will get a 404 - "404 FILE NOT FOUND" error.
Examples
Return information about a specific webhook which belongs to a list retrieved by ID in a specific site
m365 spo list webhook get --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --id cc27a922-8224-4296-90a5-ebbc54da2e85
Return information about a specific webhook which belongs to a list retrieved by Title in a specific site
m365 spo list webhook get --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle Documents --id cc27a922-8224-4296-90a5-ebbc54da2e85
Return information about a specific webhook which belongs to a list retrieved by URL in a specific site
m365 spo list webhook get --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl '/sites/project-x/Documents' --id cc27a922-8224-4296-90a5-ebbc54da2e85
Response
- JSON
- Text
- CSV
- Markdown
{
"clientState": "system-managed:8082D436-D8DA-458D-96AD-34C902B73F37",
"expirationDateTime": "2022-11-16T20:25:12.2735056Z",
"id": "b8838bbb-9ddb-44fb-9016-0aacb9e02b77",
"notificationUrl": "https://northeurope1-0.pushnp.svc.ms/notifications?token=1e263e06-4bea-4db1-9f9f-5c8f713eef76",
"resource": "97d19285-b8a6-4c7f-9c6c-d6b850a6561a",
"resourceData": null
}
clientState : system-managed:8082D436-D8DA-458D-96AD-34C902B73F37
expirationDateTime: 2022-11-16T20:25:12.2735056Z
id : b8838bbb-9ddb-44fb-9016-0aacb9e02b77
notificationUrl : https://northeurope1-0.pushnp.svc.ms/notifications?token=1e263e06-4bea-4db1-9f9f-5c8f713eef76
resource : 97d19285-b8a6-4c7f-9c6c-d6b850a6561a
resourceData : null
clientState,expirationDateTime,id,notificationUrl,resource,resourceData
system-managed:8082D436-D8DA-458D-96AD-34C902B73F37,2022-11-16T20:25:12.2735056Z,b8838bbb-9ddb-44fb-9016-0aacb9e02b77,https://northeurope1-0.pushnp.svc.ms/notifications?token=1e263e06-4bea-4db1-9f9f-5c8f713eef76,97d19285-b8a6-4c7f-9c6c-d6b850a6561a,
# spo list webhook get --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "Documents" --id "b8838bbb-9ddb-44fb-9016-0aacb9e02b77"
Date: 2/20/2023
## b8838bbb-9ddb-44fb-9016-0aacb9e02b77
Property | Value
---------|-------
clientState| system-managed:8082D436-D8DA-458D-96AD-34C902B73F37
expirationDateTime| 2022-11-16T20:25:12.2735056Z
id| b8838bbb-9ddb-44fb-9016-0aacb9e02b77
notificationUrl| https://northeurope1-0.pushnp.svc.ms/notifications?token=1e263e06-4bea-4db1-9f9f-5c8f713eef76
resource| 97d19285-b8a6-4c7f-9c6c-d6b850a6561a
resourceData| null