Skip to main content

purview retentionlabel get

Get a retention label

Usage

m365 purview retentionlabel get [options]

Options

-i, --id <id>

The Id of the retention label.

-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 is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Remarks

warning

This command is based on a Microsoft Graph API that is currently in preview and is subject to change once the API reached general availability.

Examples

Get a retention label

m365 purview retentionlabel get --id c37d695e-d581-4ae9-82a0-9364eba4291e

Response

{
"displayName": "TEST LABEL",
"descriptionForAdmins": "",
"descriptionForUsers": "",
"isInUse": false,
"retentionTrigger": "dateCreated",
"behaviorDuringRetentionPeriod": "retain",
"actionAfterRetentionPeriod": "delete",
"createdDateTime": "2022-12-12T15:14:53Z",
"lastModifiedDateTime": "2022-12-12T15:43:06Z",
"labelToBeApplied": "",
"defaultRecordBehavior": "startLocked",
"id": "5c8af2e2-b489-4fa0-9c16-180180245ac8",
"retentionDuration": {
"days": 100
},
"createdBy": {
"user": {
"id": null,
"displayName": "John Doe"
}
},
"lastModifiedBy": {
"user": {
"id": null,
"displayName": "John Doe"
}
},
"dispositionReviewStages": []
}
CTRL + M