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
Copy file name to clipboardExpand all lines: docs/modules/database_mysql_v2.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,20 @@ Create, read, and update a Linode MySQL database.
70
70
state: present
71
71
```
72
72
73
+
```yaml
74
+
- name: Create a MySQL database attached to a VPC
75
+
linode.cloud.database_mysql_v2:
76
+
label: my-db
77
+
region: us-mia
78
+
engine: mysql/8
79
+
type: g6-nanode-1
80
+
private_network:
81
+
vpc_id: 123
82
+
subnet_id: 456
83
+
public_access: true
84
+
state: present
85
+
```
86
+
73
87
```yaml
74
88
- name: Delete a MySQL database
75
89
linode.cloud.database_mysql_v2:
@@ -88,6 +102,8 @@ Create, read, and update a Linode MySQL database.
88
102
| `engine` | <center>`str`</center> | <center>Optional</center> | The Managed Database engine in engine/version format. **(Updatable)** |
89
103
| [`engine_config` (sub-options)](#engine_config) | <center>`dict`</center> | <center>Optional</center> | Various parameters used to configure this database's underlying engine. NOTE: If a configuration parameter is not current accepted by this field, configure using the linode.cloud.api_request module. **(Updatable)** |
90
104
| `label` | <center>`str`</center> | <center>Optional</center> | The label of the Managed Database. |
105
+
| `detach_private_network` | <center>`bool`</center> | <center>Optional</center> | If true, the Managed Database will be detached from its current private network when `private_network` is null. If the Managed Database is not currently attached to a private network or the private_network field is specified, this option has no effect. This is not necessary when switching between VPC subnets. **(Default: `False`)** |
106
+
| [`private_network` (sub-options)](#private_network) | <center>`dict`</center> | <center>Optional</center> | Restricts access to this database using a virtual private cloud (VPC) that you've configured in the region where the database will live. **(Updatable)** |
91
107
| `region` | <center>`str`</center> | <center>Optional</center> | The region of the Managed Database. |
92
108
| `type` | <center>`str`</center> | <center>Optional</center> | The Linode Instance type used by the Managed Database for its nodes. **(Updatable)** |
93
109
| [`fork` (sub-options)](#fork) | <center>`dict`</center> | <center>Optional</center> | Information about a database to fork from. |
@@ -133,6 +149,14 @@ Create, read, and update a Linode MySQL database.
133
149
| `tmp_table_size` | <center>`int`</center> | <center>Optional</center> | Limits the size of internal in-memory tables. Also sets max_heap_table_size. Default is 16777216 (16M). |
134
150
| `wait_timeout` | <center>`int`</center> | <center>Optional</center> | The number of seconds the server waits for activity on a noninteractive connection before closing it. |
| `vpc_id` | <center>`int`</center> | <center>**Required**</center> | The ID of the virtual private cloud (VPC) to restrict access to this database using |
157
+
| `subnet_id` | <center>`int`</center> | <center>**Required**</center> | The ID of the VPC subnet to restrict access to this database using. |
158
+
| `public_access` | <center>`bool`</center> | <center>Optional</center> | Set to `true` to allow clients outside of the VPC to connect to the database using a public IP address. **(Default: `False`)** |
159
+
136
160
### fork
137
161
138
162
| Field | Type | Required | Description |
@@ -183,6 +207,11 @@ Create, read, and update a Linode MySQL database.
0 commit comments