Set-SPOTenantCdnPolicy
在租户级别设置内容分发网络 (CDN) 策略。
语法
Set-SPOTenantCdnPolicy
-CdnType <SPOTenantCdnType>
-PolicyType <SPOTenantCdnPolicyType>
-PolicyValue <String>
[<CommonParameters>]
说明
使用此 cmdlet 在租户级别设置内容分发网络 (CDN) 策略。
示例
--------------------示例 1---------------------
Set-SPOTenantCdnPolicy -CdnType Public -PolicyType IncludeFileExtensions -PolicyValue "CSS,EOT,GIF,ICO,JPEG,JPG,JS,MAP,PNG,SVG,TTF,WOFF,BMP"
此示例将 CDN 设置为具有列出的扩展的策略值的公共类型。
--------------------示例 2---------------------
Set-SPOTenantCdnPolicy -CdnType Public -PolicyType ExcludeRestrictedSiteClassifications -PolicyValue "Confidential,Restricted"
本示例将所选 CdnType 的 ExcludeRestrictedSiteClassifications 策略设置为列出的已排除网站分类的策略值。
参数
-CdnType
CdnType 参数指定 CDN 类型。 有效值为 Public 或 Private。
Type: | SPOTenantCdnType |
Accepted values: | Public, Private |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-PolicyType
PolicyType 指定要设置的策略类型。
有效值:
- IncludeFileExtensions
- ExcludeRestrictedSiteClassifications
- ExcludeIfNoScriptDisabled
Type: | SPOTenantCdnPolicyType |
Accepted values: | IncludeFileExtensions, ExcludeRestrictedSiteClassifications, ExcludeIfNoScriptDisabled |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-PolicyValue
一个字符串,表示 PolicyType 参数定义的策略类型的值。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
输入
None
输出
System.Object