Bir ortam için PodMonitor oluşturur.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
arms:CreateEnvPodMonitor |
create |
*Ortam.
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
Bölge kimliği. |
cn-hangzhou |
| AliyunLang |
string |
No |
Dil. Varsayılan değer: zh. Geçerli değerler: zh ve en. Valid values:
|
zh |
| EnvironmentId |
string |
Yes |
Ortam örneği kimliği. |
env-xxxxxx |
| DryRun |
boolean |
No |
Formatın geçerli olup olmadığını ve hedeflerin eşleştirilip eşleştirilemeyeceğini kontrol etmek için deneme çalıştırması yapılıp yapılmayacağını belirtir. |
true |
| ConfigYaml |
string |
Yes |
PodMonitor'ın YAML yapılandırma dizesi. |
Refer to the supplementary description |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Yanıt şeması. |
||
| Code |
integer |
Dönüş kodu. 200 dönüş kodu başarılı olduğunu gösterir. |
200 |
| Data |
object |
Döndürülen sonuç. |
|
| MatchedMsg |
string |
Hedef eşleştirme mesajı. |
Match succeeded |
| MatchedTargetCount |
string |
Eşleştirilen hedef sayısı. |
1 |
| Namespace |
string |
Ad alanı. |
arms-prom |
| PodMonitorName |
string |
Oluşturulan PodMonitor'ın adı. |
arms-admin-pm1 |
| Message |
string |
Yanıt mesajı. |
message |
| RequestId |
string |
İstek kimliği. |
78901766-3806-4E96-8E47-CFEF59E4**** |
Examples
Success response
JSON format
{
"Code": 200,
"Data": {
"MatchedMsg": "Match succeeded",
"MatchedTargetCount": "1",
"Namespace": "arms-prom",
"PodMonitorName": "arms-admin-pm1"
},
"Message": "message",
"RequestId": "78901766-3806-4E96-8E47-CFEF59E4****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.