This API is used to modify the private IP address for cross-VPC access.
POST /v2/{project_id}/instances/{instance_id}/crossvpc/modify
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Project ID. |
instance_id |
Yes |
String |
Instance ID. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
advertised_ip_contents |
Yes |
Map<String,String> |
User-defined advertised_ip_contents key-value pair. The key is the listeners IP address. The value is the advertised.listeners IP address or domain name. NOTE:
Fill in the items that are not modified during IP address change. |
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
success |
Boolean |
Result of the cross-VPC access modification. |
results |
Array of results objects |
Details of the result of the cross-VPC access modification. |
Modifying the private IP address for cross-VPC access.
POST https://{endpoint}/v2/{project_id}/instances/{instance_id}/crossvpc/modify
{
"advertised_ip_contents" : {
"192.168.245.246" : "192.168.245.247",
"192.168.197.36" : "192.168.197.38",
"192.168.190.11" : "192.168.190.11"
}
}
Status code: 200
The private IP address for cross-VPC access is modified successfully.
{
"success" : true,
"results" : [ {
"advertised_ip" : "192.168.197.36",
"success" : true,
"ip" : "192.168.197.36"
}, {
"advertised_ip" : "192.168.190.11",
"success" : true,
"ip" : "192.168.190.11"
}, {
"advertised_ip" : "192.168.245.255",
"success" : true,
"ip" : "192.168.245.246"
} ]
}
Status Code |
Description |
|---|---|
200 |
The private IP address for cross-VPC access is modified successfully. |
See Error Codes.