检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
"network_interface_id" : "adebbdca-8c26-4c14-b34f-3f53cd2c42f2", "ip_address" : "192.168.1.68", "gateway_id" : "521bb3d9-8bed-4c6c-9ee8-669bd0620f76"
https://{Endpoint}/v3/70505c941b9b4dfd82fd351932328a2f/private-nat/gateways/14338426-6afe-4019-996b-3a9525296e11 响应示例 无 SDK代码示例 SDK代码示例如下。 Java Python
9/private-nat/transit-ips/a2845109-3b2f-4627-b08f-09a726c0a6e7 响应示例 无 SDK代码示例 SDK代码示例如下。 Java Python Go 更多 1 2 3 4 5 6 7 8 9 10 11 12
-09a726c0a6e7", "project_id" : "da261828016849188f4dcc2ef94d9da9", "network_interface_id" : "adebbdca-8c26-4c14-b34f-3f53cd2c42f2",
"373979ee-f4f0-46c5-80e3-0fbf72646b70" } ] }, "request_id" : "747a911c17067a39692f75ac146fb47e" } SDK代码示例 SDK代码示例如下。 Java Python Go
"router_id" : "d84f345c-80a1-4fa2-a39c-d0d397c3f09a", "spec" : "1", "admin_state_up" : true, "tenant_id" : "70505c941b9b4dfd82fd351932328a2f"
d2", "virsubnet_id" : "373979ee-f4f0-46c5-80e3-0fbf72646b70" } ] } } SDK代码示例 SDK代码示例如下。 Java Python Go 更多 创建私网NAT网关实例,其中,私网NAT网关
-09a726c0a6e7", "project_id" : "da261828016849188f4dcc2ef94d9da9", "network_interface_id" : "adebbdca-8c26-4c14-b34f-3f53cd2c42f2",
0/snat_rules/5b95c675-69c2-4656-ba06-58ff72e1d338 响应样例 { "snat_rule": { "floating_ip_id": "bdc10a4c-d81a-41ec-adf7-de857f7c812a",
665430", "id" : "5b95c675-69c2-4656-ba06-58ff72e1d338", "floating_ip_address" : "5.21.11.226" } } SDK代码示例 SDK代码示例如下。 Java Python Go 更多
0/dnat_rules/5b95c675-69c2-4656-ba06-58ff72e1d338 响应样例 { "dnat_rule": { "floating_ip_id": "bf99c679-9f41-4dac-8513-9c9228e713e1"
"request_id" : "70505c941b9b4dfd82fd351932328a2f" } SDK代码示例 SDK代码示例如下。 Java Python Go 更多 创建DNAT规则,其中,中转IP的id为3faa719d-6d18-4ccb-a5c7-33e65a09663e,
ca0-4ed1-b28b-668c1f9c6b81 { "snat_rule" : { "description" : "my_snat_rule_update", "transit_ip_ids" : [ "bbe7c2e7-3bad-445b-a067-b30acce66053"
"89d66639-aacb-4929-969d-07080b0f9fd9", "router_id" : "d84f345c-80a1-4fa2-a39c-d0d397c3f09a", "admin_state_up" : true, "billing_info" : null
else { fmt.Println(err) } } 更多编程语言的SDK代码示例,请参见API Explorer的代码示例页签,可生成自动对应的SDK代码示例。 状态码 状态码 描述 200 查询私网NAT网关实例列表成功 错误码 请参见错误码。 父主题:
"gateway_id" : "0adefb29-a6c2-48a5-8637-2be67fa03fec", "transit_ip_id" : "15abdf29-4a68-474c-9963-79c4e6d495d7", "enterprise_project_id"
eabeb7fcd9a3/snat_rules/5b95c675-69c2-4656-ba06-58ff72e1d338 { "snat_rule" : { "nat_gateway_id" : "bbe7c2e7-3bad-445b-a067-b30acce66053"
https://{NAT_endpoint}/v3/9ad601814ac94c80bf7bb9073ded66fc/nat_gateways/fe1a4cf0-27fe-4b97-a9b1-2c67c127f0e0/tags/key1 响应示例 无 SDK代码示例 SDK代码示例如下。 Java Python Go
"cda3a125-2406-456c-a11f-598e10578541", "floating_ip_id" : "bf99c679-9f41-4dac-8513-9c9228e713e1", "port_id" : "9a469561-daac-4c94-88f5-39366e5ea193"
"status" : "ACTIVE" }, "request_id" : "747a911c17067a39692f75ac146fb47e" } SDK代码示例 SDK代码示例如下。 Java Python Go 更多 更新DNAT规则,其中,DNAT规则的描述为my dnat-rules