Retrieves information about the namespaces of clusters for which the rules of the at-risk image blocking type are configured in proactive defense for containers.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:GetOpaClusterNamespaceList |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| NameSpaceName |
string |
No |
The name of the namespace. |
sit |
| ClusterId |
string |
No |
The ID of the cluster that you want to query. Note
You can call the DescribeGroupedContainerInstances operation to query the IDs of clusters. |
ca0faf43e33904ecbb6c695df7906**** |
| PageSize |
integer |
No |
The number of entries per page. Default value: 20. |
20 |
| CurrentPage |
integer |
No |
The page number. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Data |
array<object> |
The namespaces. |
|
|
object |
|||
| NameSpaceName |
string |
The name of the namespace. |
testNameSpace |
| Count |
integer |
The number of entries returned on the current page. |
0 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Code |
string |
The response code. The status code 200 indicates that the request was successful. Other status codes indicate that the request failed. You can identify the cause of the failure based on the status code. |
200 |
| Message |
string |
The returned message. |
successful |
| RequestId |
string |
The request ID. |
384BFAF1-FC41-58DD-97DD-9D361ADF377D |
Examples
Success response
JSON format
{
"Data": [
{
"NameSpaceName": "testNameSpace"
}
],
"Count": 0,
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "384BFAF1-FC41-58DD-97DD-9D361ADF377D"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.