Retrieves all clusters associated with non-image-based program defense rules.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ListContainerDefenseRuleClusters |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
ListResult |
||
| ClusterList |
array<object> |
The list of clusters. |
|
|
object |
The cluster information. |
||
| ClusterId |
string |
The cluster ID. |
cfeb7a9f99ce740e98c5595d0fe37**** |
| RuleId |
integer |
The rule ID. Note
You can call the ListInterceptionRulePage operation to obtain this parameter. |
403178 |
| AllNamespace |
integer |
Indicates whether all namespaces are included. Valid values:
|
1 |
| Namespaces |
array |
The list of namespaces. |
|
|
string |
The namespace ID. |
kube-system |
|
| Count |
integer |
The number of entries returned. |
1 |
| Success |
boolean |
Indicates whether the call was successful. Valid values:
|
true |
| Code |
string |
The result code. A value of 200 indicates success. Any other value indicates failure. You can use this field to determine the cause of the failure. |
200 |
| Message |
string |
The message returned for the request result. |
successful |
| RequestId |
string |
The request ID, which is a unique identifier generated by Alibaba Cloud for the request. You can use it to troubleshoot issues. |
1F995515-CAF3-5F84-8D82-C9F706AD5070 |
| HttpStatusCode |
integer |
The HTTP status code of the request result. |
200 |
Examples
Success response
JSON format
{
"ClusterList": [
{
"ClusterId": "cfeb7a9f99ce740e98c5595d0fe37****",
"RuleId": 403178,
"AllNamespace": 1,
"Namespaces": [
"kube-system"
]
}
],
"Count": 1,
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "1F995515-CAF3-5F84-8D82-C9F706AD5070",
"HttpStatusCode": 200
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.