Mengambil detail templat aturan yang ditentukan.
Deskripsi operasi
Topik ini memberikan contoh cara mengambil detail templat aturan cdn-domain-https-enabled.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
config:GetManagedRule |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Identifier |
string |
Yes |
Identifier dari templat aturan. Untuk informasi selengkapnya tentang cara memperoleh identifier templat aturan, lihat ListManagedRules. |
cdn-domain-https-enabled |
Untuk informasi selengkapnya tentang parameter permintaan umum, lihat Common parameters.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Tidak ada. |
||
| ManagedRule |
object |
Detail templat aturan. |
|
| RiskLevel |
integer |
Tingkat risiko templat aturan. Nilai yang valid:
|
1 |
| Labels |
array |
Label templat aturan. |
|
|
string |
Label templat aturan. |
CDN |
|
| OptionalInputParameterDetails |
object |
Informasi mengenai parameter input opsional untuk templat aturan. |
{} |
| Identifier |
string |
Identifier templat aturan. |
cdn-domain-https-enabled |
| CompulsoryInputParameterDetails |
object |
Informasi mengenai parameter input wajib untuk templat aturan. |
{} |
| SourceDetails |
array<object> |
Metode pemicu aturan. |
|
|
object |
Tidak ada. |
||
| MessageType |
string |
Jenis pemicu aturan. Nilai yang valid:
|
ConfigurationItemChangeNotification |
| MaximumExecutionFrequency |
string |
Periode eksekusi aturan. Nilai yang valid:
|
TwentyFour_Hours |
| Description |
string |
Deskripsi templat aturan. |
CDN域名开启HTTPS协议加密,视为“合规”。 |
| ConfigRuleName |
string |
Nama templat aturan. |
CDN域名开启HTTPS加密 |
| Scope |
object |
Cakupan efektif templat aturan. |
|
| ComplianceResourceTypes |
array |
Jenis resource yang tercakup dalam templat aturan. |
|
|
string |
Jenis resource yang tercakup dalam templat aturan. |
ACS::CDN::Domain |
|
| HelpUrls |
string |
URL dokumen yang memberikan panduan cara memperbaiki masalah. |
https://example.aliyundoc.com |
| RequestId |
string |
ID permintaan. |
7E6DDC09-87C1-5310-A924-3491EAAE6F90 |
Contoh
Respons sukses
JSONformat
{
"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"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.