Menjalankan deteksi drift pada resource dalam suatu stack untuk menentukan apakah konfigurasi resource tersebut telah menyimpang dari konfigurasi yang diharapkan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ros:DetectStackResourceDrift |
delete |
*stack
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| StackId |
string |
Yes |
ID stack. |
4a6c9851-3b0f-4f5f-b4ca-a14bf691**** |
| ClientToken |
string |
No |
Token client yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menghasilkan nilai ini dari sisi client, tetapi harus memastikan nilainya unik di antara permintaan yang berbeda. Panjang nilai maksimal 64 karakter dan dapat berisi huruf, angka, tanda hubung (-), serta garis bawah (_). Untuk informasi selengkapnya, lihat Cara memastikan idempotensi. |
123e4567-e89b-12d3-a456-42665544**** |
| RegionId |
string |
Yes |
ID wilayah stack. Anda dapat memanggil operasi DescribeRegions untuk mengambil daftar wilayah terbaru. |
cn-hangzhou |
| LogicalResourceId |
string |
Yes |
Nama resource. |
ScalingRuleName |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| LogicalResourceId |
string |
ID logis resource yang didefinisikan dalam templat. |
ScalingRule |
| ResourceDriftStatus |
string |
Status drift resource. Nilai yang valid:
|
MODIFIED |
| PropertyDifferences |
array<object> |
Deviasi properti resource. |
|
|
object |
|||
| ActualValue |
string |
Nilai aktual properti resource. |
test1 |
| DifferenceType |
string |
Jenis deviasi properti resource. Nilai yang valid:
|
NOT_EQUAL |
| PropertyPath |
string |
Jalur properti resource. |
/ScalingRuleName |
| ExpectedValue |
string |
Nilai yang diharapkan untuk properti resource sebagaimana didefinisikan dalam templat. |
test2 |
| RequestId |
string |
ID permintaan. |
B288A0BE-D927-4888-B0F7-B35EF84B6E6F |
| PhysicalResourceId |
string |
ID fisik resource. |
asr-2ze4zzc3kf9yz1kd**** |
| ExpectedProperties |
string |
Properti resource dalam format JSON yang didefinisikan dalam templat. |
{"ScalingRuleName": "test2"} |
| DriftDetectionTime |
string |
Waktu ketika pendeteksian drift resource dimulai. |
2020-02-27T07:47:47 |
| ResourceType |
string |
Tipe resource. |
ALIYUN::ESS::ScalingRule |
| ActualProperties |
string |
Properti resource aktual dalam format JSON. |
{"ScalingRuleName": "test1"} |
| StackId |
string |
ID stack. |
4a6c9851-3b0f-4f5f-b4ca-a14bf691**** |
Contoh
Respons sukses
JSONformat
{
"LogicalResourceId": "ScalingRule",
"ResourceDriftStatus": "MODIFIED",
"PropertyDifferences": [
{
"ActualValue": "test1",
"DifferenceType": "NOT_EQUAL",
"PropertyPath": "/ScalingRuleName",
"ExpectedValue": "test2"
}
],
"RequestId": "B288A0BE-D927-4888-B0F7-B35EF84B6E6F",
"PhysicalResourceId": "asr-2ze4zzc3kf9yz1kd****",
"ExpectedProperties": "{\"ScalingRuleName\": \"test2\"}",
"DriftDetectionTime": "2020-02-27T07:47:47",
"ResourceType": "ALIYUN::ESS::ScalingRule",
"ActualProperties": "{\"ScalingRuleName\": \"test1\"}",
"StackId": "4a6c9851-3b0f-4f5f-b4ca-a14bf691****"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.