You need to enable JavaScript to run this app.
导航
获取弹性网卡详情
最近更新时间:2025.12.17 14:07:20首次发布时间:2025.12.17 14:07:20
复制全文
我的收藏
有用
有用
无用
无用

本接口用于获取弹性网卡的详情。

请求说明

  • 请求方式:POST
  • 请求地址:https://veenedge.volcengineapi.com/?Action=GetENIInstance&Version=2021-04-30

请求参数

下表列出了接口特定的请求参数以及公共请求参数 Action 和 Version。 其他公共参数,请参见公共参数

Query

参数
类型
是否必选
示例值
描述
Action
String
GetENIInstance
接口名称。当前 API 的名称为 GetENIInstance
Version
String
2021-04-30
接口版本。当前 API 的版本为 2021-04-30

Body

参数
类型
是否必选
示例值
描述
eni_identity
String
eni-h4bwdmbkmhb****
弹性网卡的 ID。您可以调用 ListENIInstances 接口获取弹性网卡的 ID。

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结果

参数
类型
示例值
描述
eni_instance
Object
-
弹性网卡详情。

请求示例

POST https://veenedge.volcengineapi.com/?Action=GetENIInstance&Version=2021-04-30
<其他公共参数>
{
    "eni_identity": "eni-h4bwdmbkmhb****"
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20251209151610C835FD72514D4304****",
        "Action": "GetENIInstance",
        "Version": "2021-04-30",
        "Service": "veenedge",
        "Region": "cn-north-1"
    },
    "Result": {
        "eni_instance": {
            "account_identity": 210006****,
            "user_identity": 0,
            "eni_identity": "eni-h4bwdmbkmh****",
            "name": "eni_testing01",
            "desc": "",
            "type": "secondary",
            "status": "detached",
            "cluster": {
                "cluster_name": "bd**cu03",
                "country": "CN",
                "region": "SouthChina",
                "province": "HI",
                "city": "460100",
                "isp": "CUCC",
                "level": "2",
                "alias": "**联通03"
            },
            "vpc": {
                "account_identity": 210006****,
                "user_identity": 0,
                "vpc_identity": "vpc-h294p6****",
                "vpc_name": "test-eni-v6",
                "create_time": 1764917450,
                "update_time": 1765178346
            },
            "subnet": {
                "account_identity": 210006****,
                "user_identity": 0,
                "subnet_identity": "subnet-2j48lqz64b****",
                "cidr_ip": "192.168.1.0",
                "cidr_mask": 24,
                "subnet_name": "test-eni-v6",
                "ipv6_cidr": "2408:**:**:104::/64",
                "create_time": 1764917450,
                "update_time": 1765178364
            },
            "mac_addr": "0a:58:**:**:01:04",
            "eni_internal_ip_count": 2,
            "eni_binder_resource": {
                "resource_type": "",
                "resource_identity": "",
                "resource_name": ""
            },
            "primary_internal_ip": {
                "eni_internal_ip_identity": "eni_iip-7jld4hc8gnw****",
                "eni_identity": "eni-h4bwdmbkmhb****",
                "status": "unbound",
                "type": "primary",
                "desc": "",
                "ip_version": "ipv4",
                "addr": "192.168.1.4",
                "mask": "24",
                "create_time": 1764920525,
                "update_time": 1765181636
            },
            "escrow_account_identity": 0,
            "eni_direct_eip_count": 0,
            "eni_indirect_eip_count": 0,
            "is_enhanced": false,
            "create_time": 1764920525,
            "update_time": 1765264551
        }
    }
}

错误码

如果响应正文中包含 Error 字段,则表示 API 请求失败。关于错误码的更多信息,参见错误码