All Products
Search
Document Center

Security Center:FindContainerNetworkConnect

Last Updated:Nov 25, 2024

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:ListContainerNetworkConnectnone
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
CriteriaTypestringNo

The type of the information that you want to query. Valid values:

  • EDGE: connection information
EDGE
StartTimelongNo

The start time of the network connection.

1666886400000
EndTimelongNo

The end time of the network connection.

1649260799999
SrcNodeobjectNo

The information about the source node.

NodeTypestringNo

The type of the node. Valid values:

  • app: application, which indicates that the node type is application.
app
ClusterIdstringNo

The ID of the container cluster.

Note You can call the DescribeGroupedContainerInstances operation to query the IDs of container clusters.
c56xxx1775dea0
NamespacestringNo

The namespace of the cluster.

default
AppNamestringNo

The name of the container application.

arms-prometheus-ack-arms-prometheus
PodNamestringNo

The name of the pod.

abc-deployment-yacs-31144-39265-1384966-7f8c8cd578-h6mhb
NodeIdsarrayNo

The node IDs.

stringNo

The node ID.

1001
DstNodeobjectNo

The information about the destination node.

NodeTypestringNo

The type of the node. Valid values:

  • app: application, which indicates that the node type is application.
app
ClusterIdstringNo

The ID of the container cluster.

Note You can call the DescribeGroupedContainerInstances operation to query the IDs of container clusters.
f5x833820xx
NamespacestringNo

The namespace of the cluster.

default
AppNamestringNo

The name of the container application.

nginx-ingress-controller
PodNamestringNo

The name of the pod.

abc-deployment-yacs-31144-39265-1384966-7f8c8cd578-h6mhb
NodeIdsarrayNo

The node IDs.

stringNo

The node ID.

1001
PageSizelongNo

The number of entries to return on each page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.

Note We recommend that you do not leave this parameter empty.
20
CurrentPagelongNo

The number of the page to return. Default value: 1.

1

Response parameters

ParameterTypeDescriptionExample
object

The data returned.

RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

8686CE6E-9BFA-5436-A9D9-77B984AEE7F8
Connectsarray<object>

The information about the network connections.

connectobject

The information about the network connection.

Idlong

The ID of the network connection.

1458
FirstTimelong

The timestamp when the connection was first established.

2022-11-11 20:54:32
LastTimelong

The timestamp when the connection was last established.

2022-11-24 10:26:00
SrcIpstring

The source IP address.

35.233.62.116
SrcPortstring

The source port.

10240
DstIpstring

The destination IP address.

172.20.62.176
DstPortstring

The destination port.

443
SrcContainerobject

The information about the source container.

Note This parameter is not supported.
ContainerIdstring

The ID of the source container.

48a6xxx5709d5a5866
DstContainerobject

The information about the destination container.

Note This parameter is not supported.
ContainerIdstring

The ID of the destination container.

48a6dxxx9d5a5866
PageInfoobject

The pagination information.

TotalCountlong

The total number of entries returned.

12
Countlong

The number of entries returned on the current page.

10
PageSizelong

The number of entries returned per page. Default value: 20.

20
CurrentPagelong

The page number of the returned page.

1

Examples

Sample success responses

JSONformat

{
  "RequestId": "8686CE6E-9BFA-5436-A9D9-77B984AEE7F8",
  "Connects": [
    {
      "Id": 1458,
      "FirstTime": 0,
      "LastTime": 0,
      "SrcIp": "35.233.62.116",
      "SrcPort": "10240",
      "DstIp": "172.20.62.176",
      "DstPort": "443",
      "SrcContainer": {
        "ContainerId": "48a6xxx5709d5a5866"
      },
      "DstContainer": {
        "ContainerId": "48a6dxxx9d5a5866"
      }
    }
  ],
  "PageInfo": {
    "TotalCount": 12,
    "Count": 10,
    "PageSize": 20,
    "CurrentPage": 1
  }
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history