1
0
forked from docs/doc-exports
doc-exports/docs/opengauss/api-ref/opengauss_api_1037.html
Ru, Li Yi d97aea4dd2 opengauss_api
Reviewed-by: Boka, Ladislav <ladislav.boka@t-systems.com>
Co-authored-by: Ru, Li Yi <liyiru7@huawei.com>
Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
2024-09-06 09:04:21 +00:00

11 KiB

Changing the Port Number of a Specified DB Instance

Function

This API is used to change the port number of a specified DB instance. Before calling this API:

URI

  • URI format

PUT https://{Endpoint}/v3/{project_id}/instances/{instance_id}/port

Request

  • Parameter description
    Table 2 Request body parameters

    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).

  • Example request
    { 
       "port" : 8001 
     }

Response

  • Normal response
    Table 3 Response body parameters

    Parameter

    Type

    Description

    job_id

    String

    ID of the task for modifying the port.

  • Example response
    { 
      "job_id" : "5cbb8a90-2253-4cff-8a13-49aa8f31dfb5" 
    }

Status Code

Error Code

For details, see Error Codes.