
# 计算节点所在虚机的IP:Port
调用计算节点API时，需要获取TICS服务计算节点所在虚机的IP:Port。
#### 获取计算节点所在虚机的IP:Port
用户可在对应页面查看计算节点所在虚机的IP:Port。
1. 用户登录[TICS控制台](https://console.huaweicloud.com/ticsconsole/)。
2. 进入TICS控制台后，单击页面左侧"计算节点管理"。
3. 在"计算节点管理"页面，查找需要发布数据的计算节点名称，单击"计算节点名称"进入计算节点详情页。 
   图1选择计算节点   
   ![](https://support.huaweicloud.com/api-tics/zh-cn_image_0000001915694325.png)
   
   
4. 在"计算节点详情"页，单击"前往计算节点"，进入登录页面。 
   图2前往计算节点   
   ![](https://support.huaweicloud.com/api-tics/zh-cn_image_0000002126444781.png)
   
   
5. 在计算节点登录页面，可在浏览器地址栏中获取所在虚机的IP:Port。 
   图3获取IP:Port   
   ![](https://support.huaweicloud.com/api-tics/zh-cn_image_0000001629219822.png)
   
   
 
#### 调用API获取IP:Port
IP:Port可以通过调用空间API [获取计算节点详情信息 - ShowAgentDetail](https://support.huaweicloud.com/api-tics/ShowAgentDetail.html)接口获取。
空间API接口的调用请参见[构造请求](https://support.huaweicloud.com/api-tics/tics_05_0021.html)。请求样例：
```
GET /v1/{project_id}/agents/{agent_id}
```
响应示例如下，其中的"console_ip" 和"console_port"即为所需的IP:Port。
```
{
  "agent_deploy" : {
    "agent_id" : "22a38e92ef7e4284b666b2a14bc29462",
    "agent_name" : "agent_7819",
    "league_region_name" : "xx-xxxxx",
    "league_id" : "ef73b252a0ad4b5db21a12c40a413b2f",
    "league_name" : "test",
    "league_version" : "1.15.1",
    "image_id" : "115",
    "image_version" : "1.15.1",
    "creator_project_id" : "098593b07680d2a32f62c004a482da10",
    "creator_name" : "user01",
    "creator_id" : "098593b08f00d2a34f64c004408b64bc",
    "creator_domain_id" : "098593b06a80d2a30f5fc004c28f6da0",
    "create_time" : "2022-10-08T08:54:26.000+00:00",
    "storage_mount_type" : "OBS",
    "deploy_type" : "CCE",
    "deploy_status" : "RUNNING",
    "deployment_event_information" : "Closing agent container",
    "bcs_flag" : 0,
    "cce_version" : "v1.19.10",
    "aom_flag" : 1,
    "nat_id" : "baedab5b-d120-43a6-b965-5b3d7e2deae5",
    "high_avail" : 0
  },
  "agent_deploy_detail" : {
    "agent_id" : "22a38e92ef7e4284b666b2a14bc29462",
    "namespace_name" : "default",
    "resource_spec_code" : "agent.middle",
    "cce_cluster_id" : "233ac994-46e7-11ed-9162-0255ac100b09",
    "cce_cluster_name" : "tics-agent-22a38e92ef7e4284b666b2a14bc29462",
    "console_ip" : "100.85.116.131",
    "web_port" : 30964,
    "console_port" : 30912,
    "obs_pvc_name" : "cce-obs-22a38e92ef7e4284b666b2a14bc29462",
    "persistence_id" : "pvc-747d6aa1-22cc-4993-a32e-1c6c64f38bdb"
  },
  "agent_deploy_bcs" : null,
  "agent_deploy_node" : {
    "ecs_server_id" : "5461246e-29fc-4016-b422-4b0db86a89a6",
    "node_id" : "8e204053-46e8-11ed-9162-0255ac100b09",
    "agent_id" : "22a38e92ef7e4284b666b2a14bc29462",
    "node_ip" : "192.168.0.208",
    "node_name" : "node-22a38e92ef7e4284b666b2a14bc29462-0",
    "node_az" : "xxx",
    "nat_eip" : "100.85.116.131",
    "nat_eip_id" : "1966fa41-229e-4595-a725-e99266ce9587"
  },
  "agent_deploy_nat" : {
    "nat_id" : "baedab5b-d120-43a6-b965-5b3d7e2deae5",
    "project_id" : "098593b07680d2a32f62c004a482da10",
    "vpc_id" : "670ad039-5188-4c18-9ca2-a6b29bd18d67",
    "subnet_id" : "9cc4bdd1-ad35-4d0f-849c-71d305121f61"
  }
}
```
