You are not logged in.
UpdateInstancePort
This API is used to change a database port.
Name | Type | IN | Mandatory | Description |
---|---|---|---|---|
x-auth-token | string | header | Yes | Specifies the user token obtained from the IAM service. |
instance_id | string | path | Yes | Specifies the instance ID, which can be obtained by calling the API for querying instances and details. If you do not have an instance, you can call the API used for creating an instance. |
project_id | string | path | Yes | Specifies the project ID of a tenant in a region. |
Name | Type | Mandatory | Description |
---|---|---|---|
port | integer | Yes | Specifies the port number. The port is in range 2100 to 9500, or 27017, 27018, or 27019. |
Success.
Name | Type | Description |
---|---|---|
job_id | string | Indicates the workflow ID. |
port | integer | Indicates the port number. |
Client or server error.
Name | Type | Description |
---|---|---|
error_code | string | Specifies the error returned when a task submission exception occurs. |
error_msg | string | Specifies the description of the error returned when a task submission exception occurs. |
"POST https://{endpoint}/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/e73893ef73754465a8bd2e0857bbf13ein02/modify-port"
{
"port": 8888
}