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: doc/ovhcloud_cloud_reference.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ Fetch reference data in the given cloud project
24
24
25
25
*[ovhcloud cloud](ovhcloud_cloud.md) - Manage your projects and services in the Public Cloud universe
26
26
*[ovhcloud cloud reference container-registry](ovhcloud_cloud_reference_container-registry.md) - Fetch container registry reference data in the given cloud project
27
+
*[ovhcloud cloud reference database](ovhcloud_cloud_reference_database.md) - Fetch database reference data in the given cloud project
27
28
*[ovhcloud cloud reference list-flavors](ovhcloud_cloud_reference_list-flavors.md) - List available flavors in the given cloud project
28
29
*[ovhcloud cloud reference list-images](ovhcloud_cloud_reference_list-images.md) - List available images in the given cloud project
29
30
*[ovhcloud cloud reference rancher](ovhcloud_cloud_reference_rancher.md) - Fetch Rancher reference data in the given cloud project
-f, --format string Output value according to given format (expression using gval format)
17
+
-e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution
18
+
-i, --interactive Interactive output
19
+
-j, --json Output in JSON
20
+
-y, --yaml Output in YAML
21
+
```
22
+
23
+
### SEE ALSO
24
+
25
+
*[ovhcloud cloud reference](ovhcloud_cloud_reference.md) - Fetch reference data in the given cloud project
26
+
*[ovhcloud cloud reference database list-engines](ovhcloud_cloud_reference_database_list-engines.md) - List available database engines in the given cloud project
27
+
*[ovhcloud cloud reference database list-node-flavors](ovhcloud_cloud_reference_database_list-node-flavors.md) - List available database node flavors in the given cloud project
28
+
*[ovhcloud cloud reference database list-plans](ovhcloud_cloud_reference_database_list-plans.md) - List available database plans in the given cloud project
You will be able to choose from several examples of parameters. Once an example has been selected, the CLI will open your
62
+
default text editor to update the parameters. When saving the file, the creation will start.
63
+
64
+
Note that it is also possible to override values in the presented examples using command line flags like the following:
65
+
66
+
ovhcloud cloud database create --engine mysql --editor --version 8
67
+
`,
68
+
Run: cloud.CreateDatabase,
69
+
Args: cobra.NoArgs,
70
+
}
71
+
72
+
// Database details
73
+
databaseCreateCmd.Flags().StringVar(&cloud.DatabaseSpec.Engine, "engine", "", "Database engine (you can get the list of available engines using 'ovhcloud cloud reference database list-engines')")
74
+
databaseCreateCmd.MarkFlagRequired("engine")
75
+
databaseCreateCmd.Flags().StringSliceVar(&cloud.DatabaseSpec.Backups.Regions, "backups-regions", nil, "Regions on which the backups are stored")
76
+
databaseCreateCmd.Flags().StringVar(&cloud.DatabaseSpec.Backups.Time, "backups-time", "", "Time on which backups start every day")
databaseCreateCmd.Flags().StringVar(&cloud.DatabaseSpec.ForkFrom.BackupID, "fork-from.backup-id", "", "Backup ID (not compatible with fork-from.point-in-time)")
80
+
databaseCreateCmd.Flags().StringVar(&cloud.DatabaseSpec.ForkFrom.PointInTime, "fork-from.point-in-time", "", "Point in time to restore from (not compatible with fork-from.backup-id)")
databaseCreateCmd.Flags().StringVar(&cloud.DatabaseSpec.ForkFrom.ServiceID, "fork-from.service-id", "", "Service ID that owns the backups")
83
+
databaseCreateCmd.Flags().StringVar(&cloud.DatabaseSpec.MaintenanceTime, "maintenance-time", "", "Time on which maintenances can start every day")
84
+
databaseCreateCmd.Flags().StringVar(&cloud.DatabaseSpec.Plan, "plan", "", "Database plan (you can get the list of available plans using 'ovhcloud cloud reference database list-plans')")
85
+
databaseCreateCmd.Flags().StringVar(&cloud.DatabaseSpec.Version, "version", "", "Database version (you can get the list of available versions using 'ovhcloud cloud reference database list-engines')")
86
+
87
+
// Network configuration
88
+
databaseCreateCmd.Flags().StringSliceVar(&cloud.DatabaseSpec.CLIIPRestrictions, "ip-restrictions", nil, "IP blocks authorized to access the cluster (CIDR format)")
89
+
databaseCreateCmd.Flags().StringVar(&cloud.DatabaseSpec.NetworkID, "network-id", "", "Private network ID in which the cluster is deployed")
90
+
databaseCreateCmd.Flags().StringVar(&cloud.DatabaseSpec.SubnetID, "subnet-id", "", "Private subnet ID in which the cluster is deployed")
91
+
92
+
// Nodes pattern definition
93
+
databaseCreateCmd.Flags().StringVar(&cloud.DatabaseSpec.NodesPattern.Flavor, "nodes-pattern.flavor", "", "Flavor of all nodes")
94
+
databaseCreateCmd.Flags().IntVar(&cloud.DatabaseSpec.NodesPattern.Number, "nodes-pattern.number", 0, "Number of nodes")
95
+
databaseCreateCmd.Flags().StringVar(&cloud.DatabaseSpec.NodesPattern.Region, "nodes-pattern.region", "", "Region of all nodes")
96
+
97
+
// Nodes list definition
98
+
databaseCreateCmd.Flags().StringSliceVar(&cloud.DatabaseSpec.CLINodesList, "nodes-list", nil, "List of nodes (format: flavor1:region1,flavor2:region2...)")
0 commit comments