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":{"AssociateServerVirtualIpOption":{"description":"","properties":{"ip_address":{"description":"网卡即将配置的私有IP的地址。","example":"192.168.0.7","type":"string"},"reverse_binding":{"description":"私有IP的allowed_address_pairs属性是否添加网卡的IP/Mac对。","example":true,"type":"boolean"},"subnet_id":{"description":"网卡的子网ID。","example":"d32019d3-bc6e-4319-9c1d-6722fc136a23","type":"string"}},"required":["ip_address","subnet_id"]},"AssociateServerVirtualIpRequestBody":{"description":"This is a auto create Body Object","properties":{"nic":{"$ref":"#/definitions/AssociateServerVirtualIpOption","description":"需要配置私有IP的网卡参数列表。"}},"required":["nic"]},"AssociateServerVirtualIpResponseBody":{"description":"This is a auto create Response Object","properties":{"port_id":{"description":"云服务器网卡ID。","type":"string"}},"required":["port_id"]}},"description":null,"group_id":"395cf9dd07ff44ddb50f92797b2a85de","host":"ecs.cn-north-4.myhuaweicloud.com","id":"bdcdeb8bbb304f4abcddca3091189eec","info_version":"v2","method":"put","name":"AssociateServerVirtualIp","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"}},"paths":{"/v1/{project_id}/cloudservers/nics/{nic_id}":{"put":{"consumes":[],"deprecated":false,"description":"虚拟IP地址用于为网卡提供第二个IP地址,同时支持与多个弹性云服务器的网卡绑定,从而实现多个弹性云服务器之间的高可用性。\n\n该接口用于给云服务器网卡配置虚拟IP地址:\n\n- 当指定的IP地址是一个不存在的虚拟IP地址时,系统会创建该虚拟IP,并绑定至对应网卡。\n\n- 当指定的IP地址是一个已经创建好的私有IP时,系统会将指定的网卡和虚拟IP绑定。如果该IP的device_owner为空,则仅支持VPC内二三层通信;如果该IP的device_owner为neutron:VIP_PORT,则支持VPC内二三层通信、VPC之间对等连接访问,以及弹性公网IP、VPN、云专线等Internet接入。","operationId":"AssociateServerVirtualIp","parameters":[{"description":"云服务器网卡ID。","in":"path","name":"nic_id","required":true,"type":"string","x-example":"e6b99563-xxxx-xxxx-xxxx-1820d4fd2a67","x-order":2},{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/X-Auth-Token"},{"description":"This is a auto create Body Object","in":"body","name":"AssociateServerVirtualIpRequestBody","required":true,"schema":{"$ref":"#/definitions/AssociateServerVirtualIpRequestBody"}}],"produces":[],"responses":{"200":{"description":"OK","examples":{"application/json":{"port_id":"d32019d3-bc6e-4319-9c1d-6722fc136a23"}},"schema":{"$ref":"#/definitions/AssociateServerVirtualIpResponseBody"}}},"summary":"云服务器网卡配置虚拟IP地址","tags":["网卡管理"],"x-apiexplorer-hide":"false","x-constraint":"无","x-first-open-time":"2018-3-30","x-hybridcloud":"true","x-is-registered":"Y","x-name":"云服务器网卡配置虚拟IP地址","x-open-region-cloud":"hc,hk","x-order":27,"x-publishpath":"","x-registered_to":"apicom","x-request-examples-1":{"nic":{"ip_address":"192.168.0.7","reverse_binding":true,"subnet_id":"d32019d3-bc6e-4319-9c1d-6722fc136a23"}},"x-request-examples-description-1":"","x-request-examples-text-1":"{\n    \"nic\": { \n           \"subnet_id\": \"d32019d3-bc6e-4319-9c1d-6722fc136a23\",\n           \"ip_address\": \"192.168.0.7\",\n           \"reverse_binding\": true\n    }\n}","x-request-examples-url-1":"PUT https://{endpoint}/v1/{project_id}/cloudservers/nics/{nic_id}","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":"云服务器网卡配置虚拟IP地址","tags":"网卡管理","uri":null,"version":"2.0"}