Memperbarui konfigurasi keadaan yang diinginkan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oos:UpdateStateConfiguration |
update |
*stateconfiguration
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID wilayah. |
cn-hangzhou |
| Description |
string |
No |
Deskripsi. |
ACS-ECS-InventoryDataCollection |
| Parameters |
object |
No |
Parameter. |
{ "policy": { "ACS:Application": { "Collection": "Enabled" }, "ACS:Network": { "Collection": "Enabled" } } } |
| ConfigureMode |
string |
No |
Mode konfigurasi. Nilai valid:
|
ApplyOnce |
| ScheduleType |
string |
No |
Tipe penjadwalan. |
rate |
| ScheduleExpression |
string |
No |
Ekspresi penjadwalan. |
1 hour |
| Targets |
string |
No |
Sumber daya target. |
{ "ResourceType": "ALIYUN::ECS::Instance", "Filters": [ { "Type": "All", "RegionId": "cn-hangzhou", "Parameters": { "RegionId": "cn-hangzhou", "Status": "Running" } } ] } |
| ClientToken |
string |
No |
Token idempotensi. |
DASKJJLKADS-AHKLJHJSAKL-AJK |
| StateConfigurationId |
string |
Yes |
ID konfigurasi keadaan yang diinginkan. |
sc-asfgdhj12345 |
| Tags |
object |
No |
Tag. |
{"Key": "oos", "Value": "sc"} |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-acfmxsn4m4****** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
1306108F-610C-40FD-AAD5-DA13E8B00BE9 |
| StateConfiguration |
array<object> |
Detail konfigurasi. |
|
|
array<object> |
|||
| UpdateTime |
string |
Pengatur waktu ketika konfigurasi terakhir kali diperbarui. |
2021-03-22T03:13:32Z |
| CreateTime |
string |
Pengatur waktu ketika konfigurasi dibuat. |
2021-03-22T03:13:32Z |
| Targets |
string |
Sumber daya target. |
{ "ResourceType": "ALIYUN::ECS::Instance", "Filters": [ { "Type": "All", "RegionId": "cn-hangzhou", "Parameters": { "RegionId": "cn-hangzhou", "Status": "Running" } } ] } |
| Tags |
object |
Tag. |
{"Key": "oos", "Value": "inventory"} |
| StateConfigurationId |
string |
ID konfigurasi keadaan yang diinginkan yang dibuat. |
StateConfigurationId |
| ScheduleExpression |
string |
Ekspresi penjadwalan. |
1 hour |
| TemplateName |
string |
Nama templat. |
ACS-ECS-InventoryDataCollection |
| TemplateVersion |
string |
Versi templat. |
v1 |
| ConfigureMode |
string |
Mode konfigurasi. |
ApplyAndAutoCorrect |
| ScheduleType |
string |
Tipe penjadwalan. |
rate |
| Parameters |
string |
Parameter. |
{"policy": {"ACS:Network": {"Collection": "Enabled"}, "ACS:Application": {"Collection": "Enabled"}}} |
| Description |
string |
Deskripsi konfigurasi keadaan yang diinginkan. |
Collect Inventory data |
| ResourceGroupId |
string |
ID kelompok sumber daya. |
rg-acfmxsn4m4****** |
| TemplateId |
string |
ID templat. |
t-1234asadf |
Contoh
Respons sukses
JSONformat
{
"RequestId": "1306108F-610C-40FD-AAD5-DA13E8B00BE9",
"StateConfiguration": [
{
"UpdateTime": "2021-03-22T03:13:32Z",
"CreateTime": "2021-03-22T03:13:32Z",
"Targets": "{ \"ResourceType\": \"ALIYUN::ECS::Instance\", \"Filters\": [ { \"Type\": \"All\", \"RegionId\": \"cn-hangzhou\", \"Parameters\": { \"RegionId\": \"cn-hangzhou\", \"Status\": \"Running\" } } ] }",
"Tags": {
"Key": "oos",
"Value": "inventory"
},
"StateConfigurationId": "StateConfigurationId",
"ScheduleExpression": "1 hour",
"TemplateName": "ACS-ECS-InventoryDataCollection",
"TemplateVersion": "v1",
"ConfigureMode": "ApplyAndAutoCorrect",
"ScheduleType": "rate",
"Parameters": "{\"policy\": {\"ACS:Network\": {\"Collection\": \"Enabled\"}, \"ACS:Application\": {\"Collection\": \"Enabled\"}}}",
"Description": "Collect Inventory data",
"ResourceGroupId": "rg-acfmxsn4m4******",
"TemplateId": "t-1234asadf"
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.