forked from yandex-cloud/terraform-provider-yandex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'yandex-cloud:master' into master
- Loading branch information
Showing
53 changed files
with
5,501 additions
and
2,249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
layout: "yandex" | ||
page_title: "Yandex: yandex_mdb_mysql_user" | ||
sidebar_current: "docs-yandex-datasource-mdb-mysql-user" | ||
description: |- | ||
Get information about a Yandex Managed MySQL user. | ||
--- | ||
|
||
# yandex\_mdb\_mysql\_user | ||
|
||
Get information about a Yandex Managed MySQL user. For more information, see | ||
[the official documentation](https://cloud.yandex.com/docs/managed-mysql/). | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
data "yandex_mdb_mysql_user" "foo" { | ||
cluster_id = "some_cluster_id" | ||
name = "test" | ||
} | ||
output "permission" { | ||
value = "${data.yandex_mdb_mysql_user.foo.permission}" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `cluster_id` - (Required) The ID of the MySQL cluster. | ||
|
||
* `name` - (Required) The name of the MySQL user. | ||
|
||
## Attributes Reference | ||
|
||
In addition to the arguments listed above, the following computed attributes are exported: | ||
|
||
* `name` - The name of the user. | ||
* `password` - The password of the user. | ||
* `permission` - Set of permissions granted to the user. The structure is documented below. | ||
* `global_permissions` - List user's global permissions. Allowed values: `REPLICATION_CLIENT`, `REPLICATION_SLAVE`, `PROCESS` or empty list. | ||
* `connection_limits` - User's connection limits. The structure is documented below. | ||
* `authentication_plugin` - Authentication plugin. Allowed values: `MYSQL_NATIVE_PASSWORD`, `CACHING_SHA2_PASSWORD`, `SHA256_PASSWORD` | ||
|
||
The `connection_limits` block supports: | ||
When these parameters are set to -1, backend default values will be actually used. | ||
|
||
* `max_questions_per_hour` - Max questions per hour. | ||
* `max_updates_per_hour` - Max updates per hour. | ||
* `max_connections_per_hour` - Max connections per hour. | ||
* `max_user_connections` - Max user connections. | ||
|
||
The `permission` block supports: | ||
|
||
* `database_name` - The name of the database that the permission grants access to. | ||
* `roles` - List user's roles in the database. | ||
Allowed roles: `ALL`,`ALTER`,`ALTER_ROUTINE`,`CREATE`,`CREATE_ROUTINE`,`CREATE_TEMPORARY_TABLES`, | ||
`CREATE_VIEW`,`DELETE`,`DROP`,`EVENT`,`EXECUTE`,`INDEX`,`INSERT`,`LOCK_TABLES`,`SELECT`,`SHOW_VIEW`,`TRIGGER`,`UPDATE`. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
website/docs/d/datasource_mdb_postgresql_database.html.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
layout: "yandex" | ||
page_title: "Yandex: yandex_mdb_postgresql_database" | ||
sidebar_current: "docs-yandex-datasource-mdb-postgresql-database" | ||
description: |- | ||
Get information about a Yandex Managed PostgreSQL database. | ||
--- | ||
|
||
# yandex\_mdb\_postgresql\_database | ||
|
||
Get information about a Yandex Managed PostgreSQL database. For more information, see | ||
[the official documentation](https://cloud.yandex.com/docs/managed-postgresql/). | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
data "yandex_mdb_postgresql_database" "foo" { | ||
cluster_id = "some_cluster_id" | ||
name = "test" | ||
} | ||
output "owner" { | ||
value = "${data.yandex_mdb_postgresql_database.foo.owner}" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `cluster_id` - (Required) The ID of the PostgreSQL cluster. | ||
|
||
* `name` - (Required) The name of the PostgreSQL cluster. | ||
|
||
## Attributes Reference | ||
|
||
In addition to the arguments listed above, the following computed attributes are | ||
exported: | ||
|
||
* `owner` - Name of the user assigned as the owner of the database. | ||
* `lc_collate` - POSIX locale for string sorting order. Forbidden to change in an existing database. | ||
* `lc_type` - POSIX locale for character classification. Forbidden to change in an existing database. | ||
* `extension` - Set of database extensions. The structure is documented below | ||
|
||
The `extension` block supports: | ||
|
||
* `name` - Name of the database extension. For more information on available extensions see [the official documentation](https://cloud.yandex.com/docs/managed-postgresql/operations/cluster-extensions). | ||
* `version` - Version of the extension. | ||
|
49 changes: 49 additions & 0 deletions
49
website/docs/d/datasource_mdb_postgresql_user.html.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
layout: "yandex" | ||
page_title: "Yandex: yandex_mdb_postgresql_user" | ||
sidebar_current: "docs-yandex-datasource-mdb-postgresql-user" | ||
description: |- | ||
Get information about a Yandex Managed PostgreSQL user. | ||
--- | ||
|
||
# yandex\_mdb\_postgresql\_user | ||
|
||
Get information about a Yandex Managed PostgreSQL user. For more information, see | ||
[the official documentation](https://cloud.yandex.com/docs/managed-postgresql/). | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
data "yandex_mdb_postgresql_user" "foo" { | ||
cluster_id = "some_cluster_id" | ||
name = "test" | ||
} | ||
output "permission" { | ||
value = "${data.yandex_mdb_postgresql_user.foo.permission}" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `cluster_id` - (Required) The ID of the PostgreSQL cluster. | ||
|
||
* `name` - (Required) The name of the PostgreSQL user. | ||
|
||
## Attributes Reference | ||
|
||
In addition to the arguments listed above, the following computed attributes are | ||
exported: | ||
|
||
* `password` - The password of the user. | ||
* `permission` - Set of permissions granted to the user. The structure is documented below. | ||
* `login` - User's ability to login. | ||
* `grants` - List of the user's grants. | ||
* `conn_limit` - The maximum number of connections per user. | ||
* `settings` - Map of user settings. | ||
|
||
The `permission` block supports: | ||
|
||
* `database_name` - The name of the database that the permission grants access to. |
Oops, something went wrong.