You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 6, 2022. It is now read-only.
Support specifying server name, admin username and password of postgreSQL (#711)
* Support specifying server name, admin username and admin password of postgreSQL
* Fix lint issues and add lifecycle test
* Change regexp to custom validator
* Fix typo
* Update lifecycle test
* Fix bug
* Fix role name error
Copy file name to clipboardExpand all lines: docs/modules/postgresql.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Open Service Broker for Azure contains three types of Azure Database for Postgre
10
10
|`azure-postgresql-*-dbms`| Provision only an Azure Database for PostgreSQL DBMS. This can be used to provision multiple databases at a later time. |
11
11
|`azure-postgresql-*-database`| Provision a new database only upon a previously provisioned DBMS. |
12
12
13
-
The `azure-postgresql-*` services allow you to provision both a DBMS and a database. When the provision operation is successful, the database will be ready to use. You can not provision additional databases onto an instance provisioned through these two services. The `azure-postgresql-*-dbms` and `azure-postgresql-*-database` services, on the other hand, can be combined to provision multiple databases on a single DBMS. Currently, OSBA supports two versions of Azure Database for PostgreSQL services:
13
+
The `azure-postgresql-*` services allow you to provision both a DBMS and a database. When the provision operation is successful, the database will be ready to use. You can not provision additional databases onto an instance of `azure-postgresql-*`. The `azure-postgresql-*-dbms` and `azure-postgresql-*-database` services, on the other hand, can be combined to provision multiple databases on a single DBMS. Currently, OSBA supports two versions of Azure Database for PostgreSQL services:
|`location`|`string`| The Azure region in which to provision applicable resources. | Y ||
80
80
|`resourceGroup`|`string`| The (new or existing) resource group with which to associate new resources. | Y ||
81
+
|`serverName`|`string`| Name of the PostgreSQL server. | N | A random generated string. |
82
+
|`adminAccountSettings`|`object`| Settings of administrator account of PostgreSQL server. Typically you do not need to specify this. | N | Default admin username is "postgres" and password is a randomly generated string. |
83
+
|`adminAccountSettings.adminUsername`|`string`| The administrator username for the server. | N | "postgres" |
84
+
|`adminAccountSettings.adminPassword`|`string`| The administrator password for the server. **Warning**: you may leak your password if you specify this property, others can see this password in your request body and `ServiceInstance` definition. DO NOT use this property unless you know what you are doing. | N | A random generated password. |
81
85
|`sslEnforcement`|`string`| Specifies whether the server requires the use of TLS when connecting. Valid valued are `""` (unspecified), `enabled`, or `disabled`. | N |`""`. Left unspecified, SSL _will_ be enforced. |
82
86
|`firewallRules`|`array`| Specifies the firewall rules to apply to the server. Definition follows. | N |`[]` Left unspecified, Firewall will default to only Azure IPs. If rules are provided, they must have valid values. |
83
87
|`firewallRules[n].name`|`string`| Specifies the name of the generated firewall rule |Y ||
@@ -275,6 +279,9 @@ Provisions an Azure Database for PostgreSQL DBMS instance containing no database
|`location`|`string`| The Azure region in which to provision applicable resources. | Y ||
277
281
|`resourceGroup`|`string`| The (new or existing) resource group with which to associate new resources. | Y ||
282
+
|`serverName`|`string`| Name of the PostgreSQL server. | N | A random generated string. |
283
+
|`adminUsername`|`string`| The administrator username for the server. | N | "postgresql" |
284
+
|`adminPassword`|`string`| The administrator password for the server. **Warning**: you may leak your password if you specify this property, others can see this password in your request body and `ServiceInstance` definition. DO NOT use this property unless you know what you are doing. | N | A random generated password. |
278
285
|`alias`|`string`| Specifies an alias that can be used by later provision actions to create databases on this DBMS. | Y ||
279
286
|`sslEnforcement`|`string`| Specifies whether the server requires the use of TLS when connecting. Valid valued are `""` (unspecified), `enabled`, or `disabled`. | N |`""`. Left unspecified, SSL _will_ be enforced. |
280
287
|`firewallRules`|`array`| Specifies the firewall rules to apply to the server. Definition follows. | N |`[]` Left unspecified, Firewall will default to only Azure IPs. If rules are provided, they must have valid values. |
0 commit comments