huawei-cloud-api-definitions-ECS 0.1.20250919

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"InterfaceAttachableQuantity":{"properties":{"free_nic":{"description":"云服务器剩余可挂载网卡数量","format":"int32","type":"integer"}}},"InterfaceAttachment":{"properties":{"delete_on_termination":{"description":"卸载网卡时,是否删除网卡。","type":"boolean"},"driver_mode":{"description":"从guest os中,网卡的驱动类型。可选值为virtio和hinic,默认为virtio","type":"string"},"fixed_ips":{"description":"网卡私网IP信息列表。","items":{"$ref":"#/definitions/ServerInterfaceFixedIp"},"type":"array"},"mac_addr":{"description":"网卡Mac地址信息。","type":"string"},"min_rate":{"description":"网卡带宽下限。","format":"int32","type":"integer"},"multiqueue_num":{"description":"网卡多队列个数。","format":"int32","type":"integer"},"net_id":{"description":"网卡端口所属网络ID。","type":"string"},"pci_address":{"description":"弹性网卡在Linux GuestOS里的BDF号","type":"string"},"port_id":{"description":"网卡端口ID。","type":"string"},"port_state":{"description":"网卡端口状态。","type":"string"}}},"ListServerInterfacesResponseBody":{"description":"This is a auto create Response Object","properties":{"attachableQuantity":{"$ref":"#/definitions/InterfaceAttachableQuantity","description":"云服务器可挂载网卡数。"},"interfaceAttachments":{"description":"云服务器网卡信息列表","example":"[{\"port_state\":\"ACTIVE\",\"fixed_ips\":[{\"subnet_id\":\"f8a6e8f8-c2ec-497c-9f23-da9616de54ef\",\"ip_address\":\"192.168.1.3\"}],\"net_id\":\"3cb9bc59-5699-4588-a4b1-b87f96708bc6\",\"port_id\":\"ce531f90-199f-48c0-816c-13e38010b442\",\"mac_addr\":\"fa:16:3e:4c:2c:30\"}]","items":{"$ref":"#/definitions/InterfaceAttachment"},"type":"array"}},"required":["attachableQuantity","interfaceAttachments"]},"ServerInterfaceFixedIp":{"properties":{"ip_address":{"description":"网卡私网IP信息。","type":"string"},"subnet_id":{"description":"网卡私网IP对应子网信息。","type":"string"}}}},"description":null,"group_id":"395cf9dd07ff44ddb50f92797b2a85de","host":"ecs.cn-north-4.myhuaweicloud.com","id":"8efa93f4cfb042d2a64c8d1c484e53dd","info_version":"v2","method":"get","name":"ListServerInterfaces","parameters":{"X-Auth-Token":{"description":"用户Token。\n\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX..."},"project_id":{"description":"项目ID。","in":"path","name":"project_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},"server_id":{"description":"云服务器ID。","in":"path","name":"server_id","required":true,"type":"string","x-example":"e6b99563-xxxx-xxxx-xxxx-1820d4fd2a67"}},"paths":{"/v1/{project_id}/cloudservers/{server_id}/os-interface":{"get":{"consumes":[],"deprecated":false,"description":"查询云服务器网卡信息。","operationId":"ListServerInterfaces","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/server_id"},{"$ref":"#/parameters/X-Auth-Token"}],"produces":[],"responses":{"200":{"description":"OK","examples":{"application/json":{"attachableQuantity":{"free_nic":11},"interfaceAttachments":[{"delete_on_termination":false,"driver_mode":null,"fixed_ips":[{"ip_address":"192.168.0.33","subnet_id":"ba31e1f5-fa76-4530-862c-5176fad033cf"}],"mac_addr":"fa:16:3e:45:65:c4","min_rate":null,"multiqueue_num":null,"net_id":"610a4af2-1d90-4d2b-8057-dc238b26febf","port_id":"04819c0a-6a07-44b6-945e-fb932071888e","port_state":"ACTIVE"}]}},"schema":{"$ref":"#/definitions/ListServerInterfacesResponseBody"}}},"summary":"查询云服务器网卡信息","tags":["网卡管理"],"x-apiexplorer-hide":"false","x-constraint":"无","x-first-open-time":"2018-7-30","x-hybridcloud":"true","x-is-registered":"Y","x-name":"查询云服务器网卡信息","x-open-region-cloud":"hc,hk,ctc","x-order":29,"x-publishpath":"","x-request-examples-1":"GET https://{endpoint}/v1/9c53a566cb3443ab910cf0daebca90c4/cloudservers/0f58c8dc-4a78-42e6-9811-565679de8e9e/os-interface","x-request-examples-description-1":"","x-request-examples-text-1":"GET https://{endpoint}/v1/9c53a566cb3443ab910cf0daebca90c4/cloudservers/0f58c8dc-4a78-42e6-9811-565679de8e9e/os-interface","x-request-examples-url-1":"","x-scope":"Commercial","x-source":"SelfDeveloped","x-support-sdk":"Y","x-version":"v1"}}},"product_short":"ECS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询云服务器网卡信息","tags":"网卡管理","uri":null,"version":"2.0"}