查詢指定規則模板的詳細資料。
介面說明
本文將提供一個樣本,查詢規則模板cdn-domain-https-enabled的詳情。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
config:GetManagedRule |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| Identifier |
string |
是 |
規則模板標識。 關於如何擷取規則模板標識,請參見 ListManagedRules 。 |
cdn-domain-https-enabled |
關於公用請求參數的詳情,請參見公用參數。
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
無。 |
||
| ManagedRule |
object |
規則模板詳情。 |
|
| RiskLevel |
integer |
規則模板的風險等級。取值:
|
1 |
| Labels |
array |
規則模板的標籤列表。 |
|
|
string |
規則模板的標籤。 |
CDN |
|
| OptionalInputParameterDetails |
object |
規則模板的選擇性參數資訊。 |
{} |
| Identifier |
string |
規則模板標識。 |
cdn-domain-https-enabled |
| CompulsoryInputParameterDetails |
object |
規則模板的必填參數資訊。 |
{} |
| SourceDetails |
array<object> |
規則引發方式資訊列表。 |
|
|
object |
無。 |
||
| MessageType |
string |
規則引發機制。取值:
|
ConfigurationItemChangeNotification |
| MaximumExecutionFrequency |
string |
規則執行循環。取值:
|
TwentyFour_Hours |
| Description |
string |
規則模板描述。 |
CDN網域名稱開啟HTTPS協議加密,視為“合規”。 |
| ConfigRuleName |
string |
規則模板名稱。 |
CDN網域名稱開啟HTTPS加密 |
| Scope |
object |
規則模板生效範圍。 |
|
| ComplianceResourceTypes |
array |
規則模板生效的資源類型列表。 |
|
|
string |
規則模板生效的資源類型。 |
ACS::CDN::Domain |
|
| HelpUrls |
string |
規則模板修正指導的文檔連結。 |
https://example.aliyundoc.com |
| RequestId |
string |
請求 ID。 |
7E6DDC09-87C1-5310-A924-3491EAAE6F90 |
樣本
正常返回樣本
JSON格式
{
"ManagedRule": {
"RiskLevel": 1,
"Labels": [
"CDN"
],
"OptionalInputParameterDetails": {},
"Identifier": "cdn-domain-https-enabled",
"CompulsoryInputParameterDetails": {},
"SourceDetails": [
{
"MessageType": "ConfigurationItemChangeNotification",
"MaximumExecutionFrequency": "TwentyFour_Hours"
}
],
"Description": "CDN網域名稱開啟HTTPS協議加密,視為“合規”。",
"ConfigRuleName": "CDN網域名稱開啟HTTPS加密",
"Scope": {
"ComplianceResourceTypes": [
"ACS::CDN::Domain"
]
},
"HelpUrls": "https://example.aliyundoc.com"
},
"RequestId": "7E6DDC09-87C1-5310-A924-3491EAAE6F90"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | ConfigRuleNotExists | The ConfigRule does not exist. | 此規則不存在。 |
| 400 | NoPermission | You are not authorized to perform this operation. | 您無權執行此操作。 |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | 服務不可用。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。