JAVA APIs to modify azure postgres parameters

Sajith Shetty 21 Reputation points
2022-05-16T04:41:38.323+00:00

Hi,

Our organisation is planning to migrate to azure Postgres from on-premise. Currently, we have a JAVA program that modifies the config parameters of Postgres. I understand that azure provides a CLI tool to modify or automate the modification of DB parameters. However are there any APIs which we can call from the JAVA program to modify the parameters?
Thanks in advance!

Azure Database for PostgreSQL
0 comments No comments
{count} votes

Accepted answer
  1. Anurag Sharma 17,566 Reputation points
    2022-05-16T08:50:25.193+00:00

    Hi @Sajith Shetty , welcome to Microsoft Q&A forum.

    As I understand from your query, you want to change the config parameters using any JAVA API for Azure PostgreSQL.

    We can config the parameters through the Azure Portal, Azure CLI and Rest API.

    In your case you can call the rest API through the JAVA code and update the config. Below is the rest API call you can use:

    Server Parameters - List Update Configurations

    Configurations - Get

    Please let us know if that helps or else we can discuss further.


0 additional answers

Sort by: Most helpful