This API is used to change the port number of a specified DB instance. Before calling this API:
PUT https://{Endpoint}/v3/{project_id}/instances/{instance_id}/port
https://gaussdb.eu-de.otc.t-systems.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/cc6fd964d93f4003851dfc29d57d30a5in14/port
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID of a tenant in a region. To obtain this value, see Obtaining a Project ID. |
instance_id |
Yes |
String |
Instance ID, which is compliant with the UUID format. |
Name |
Mandatory |
Type |
Description |
---|---|---|---|
port |
No |
Integer |
Instance port. Value range: 1024 to 39998 (excluding the following which are occupied by the system and cannot be used: 2378, 2379, 2380, 4999, 5000, 5999, 6000, 60001, 8097, 8098, 12016, 12017, 20049, 20050, 21731, 21732, 32122, 32123, and 32124). |
{ "port" : 8001 }
Parameter |
Type |
Description |
---|---|---|
job_id |
String |
ID of the task for modifying the port. |
{ "job_id" : "5cbb8a90-2253-4cff-8a13-49aa8f31dfb5" }
For details, see Abnormal Request Results.
For details, see Status Codes.
For details, see Error Codes.