Set-SPOTenantCdnPolicy
在租使用者層級設定 CDN) 原則 (內容傳遞網路。
Syntax
Set-SPOTenantCdnPolicy
-CdnType <SPOTenantCdnType>
-PolicyType <SPOTenantCdnPolicyType>
-PolicyValue <String>
[<CommonParameters>]
Description
使用此 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
String,表示 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