Queries the network objects protected by micro-segmentation (container firewall).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ListInterceptionTargetPage |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TargetName |
string |
No |
The name of the network object. |
source-test-obj-0**** |
| TargetType |
string |
No |
The object type. Valid values:
|
IMAGE |
| Namespace |
string |
No |
The namespace of the network object. |
default |
| AppName |
string |
No |
The application name of the network object. |
frontend |
| CurrentPage |
integer |
No |
The page number of the page to return. Default value: 1, which indicates the first page. |
1 |
| PageSize |
integer |
No |
The maximum number of entries per page for paging. Default value: 20. If you leave this parameter empty, 20 entries are returned by default. Note
Do not leave PageSize empty. |
20 |
| ImageList |
array |
No |
The list of images included in the network object. |
|
|
string |
No |
The image information. |
jenkins-master:2.277 |
|
| TagList |
array |
No |
The list of tags included in the network object. |
|
|
string |
No |
The tag information. |
app.kubernetes.io/instance:cas0-oms |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The network object list information. |
||
| RequestId |
string |
The request ID, which is a unique identifier generated by Alibaba Cloud for the request. You can use this ID to troubleshoot issues. |
028CF634-5268-5660-9575-48C9ED6B**** |
| PageInfo |
object |
The pagination information of the query result. |
|
| CurrentPage |
integer |
The page number of the current page in paging. |
1 |
| PageSize |
integer |
The maximum number of entries per page in paging. |
20 |
| TotalCount |
integer |
The total number of entries returned. |
45 |
| RuleTargetList |
array<object> |
The list of network objects returned. |
|
|
object |
The network object list. |
||
| AppName |
string |
The application name included in the specified network object. |
frontend |
| ImageList |
array |
The list of images included in the specified network object. |
|
|
string |
The image information. |
alpine:3.9.6 |
|
| TagList |
array |
The list of tags included in the specified network object. |
|
|
string |
The tag information. |
chart:ack-arms-prometheus-1.1.0 |
|
| TargetId |
integer |
The ID of the network object. Note
You can call the ListInterceptionTargetPage operation to obtain this parameter. |
400914 |
| TargetName |
string |
The name of the network object. |
destination-test-obj-Na3cF |
| Namespace |
string |
The namespace. |
default |
| TargetType |
string |
The object type. Valid values:
|
IMAGE |
| ClusterId |
string |
The ID of the container cluster. |
c3e2eae03eb064d2ebf940cd5e1b17**** |
| ClusterName |
string |
The name of the container cluster. |
sas-test-cnnf |
| RuleType |
string |
The rule type. Valid values:
|
customize |
Examples
Success response
JSON format
{
"RequestId": "028CF634-5268-5660-9575-48C9ED6B****",
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 45
},
"RuleTargetList": [
{
"AppName": "frontend",
"ImageList": [
"alpine:3.9.6"
],
"TagList": [
"chart:ack-arms-prometheus-1.1.0"
],
"TargetId": 400914,
"TargetName": "destination-test-obj-Na3cF",
"Namespace": "default",
"TargetType": "IMAGE",
"ClusterId": "c3e2eae03eb064d2ebf940cd5e1b17****",
"ClusterName": "sas-test-cnnf\n",
"RuleType": "customize"
}
]
}
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.