Skip to main content

spo cdn policy list

Lists CDN policies settings for the current SharePoint Online tenant

Usage

m365 spo cdn policy list [options]

Options

-t, --cdnType [cdnType]

Type of CDN to manage. Allowed values are: Public, Private. Default Public.

-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

Using the -t, --cdnType option you can choose whether you want to manage the settings of the Public (default) or Private CDN. If you don't use the option, the command will use the Public CDN.

info

To use this command you have to have permissions to access the tenant admin site.

Examples

Show the list of policies configured for the Public CDN.

m365 spo cdn policy list

Show the list of policies configured for the Private CDN.

m365 spo cdn policy list --cdnType Private

Response

[
{
"Policy": "IncludeFileExtensions",
"Value": "CSS,EOT,GIF,ICO,JPEG,JPG,JS,MAP,PNG,SVG,TTF,WOFF,JSON"
}
]

More information

CTRL + M