Skip to content

Commit f2b6218

Browse files
scaleway-botyfodil
andauthored
docs(mongodb): add documentation (scaleway#4228)
Co-authored-by: Yacine Fodil <[email protected]>
1 parent 822e18f commit f2b6218

17 files changed

+94
-85
lines changed

cmd/scw/testdata/test-all-usage-mongodb-instance-create-usage.golden

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Create a new MongoDB Database Instance.
3+
Create a new MongoDB® Database Instance.
44

55
USAGE:
66
scw mongodb instance create [arg=value ...]
77

88
ARGS:
99
[project-id] Project ID to use. If none is passed the default project ID will be used
1010
[name=<generated>] Name of the Database Instance
11-
version Version of the MongoDB engine
11+
version Version of the MongoDB® engine
1212
[tags.{index}] Tags to apply to the Database Instance
1313
node-number Number of node to use for the Database Instance
1414
node-type Type of node to use for the Database Instance
1515
user-name Username created when the Database Instance is created
1616
password Password of the initial user
1717
[volume.volume-size] Volume size
1818
[volume.volume-type] Type of volume where data is stored (unknown_type | sbs_5k | sbs_15k)
19-
[endpoints.{index}.private-network.private-network-id] UUID of the private network
19+
[endpoints.{index}.private-network.private-network-id] UUID of the Private Network
2020
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
2121

2222
FLAGS:

cmd/scw/testdata/test-all-usage-mongodb-instance-delete-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Delete a given MongoDB Database Instance, specified by the `region` and `instance_id` parameters. Deleting a MongoDB Database Instance is permanent, and cannot be undone. Note that upon deletion all your data will be lost.
3+
Delete a given MongoDB® Database Instance, specified by the `region` and `instance_id` parameters. Deleting a MongoDB® Database Instance is permanent, and cannot be undone. Note that upon deletion all your data will be lost.
44

55
USAGE:
66
scw mongodb instance delete <instance-id ...> [arg=value ...]

cmd/scw/testdata/test-all-usage-mongodb-instance-get-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Retrieve information about a given MongoDB Database Instance, specified by the `region` and `instance_id` parameters. Its full details, including name, status, IP address and port, are returned in the response object.
3+
Retrieve information about a given MongoDB® Database Instance, specified by the `region` and `instance_id` parameters. Its full details, including name, status, IP address and port, are returned in the response object.
44

55
USAGE:
66
scw mongodb instance get <instance-id ...> [arg=value ...]

cmd/scw/testdata/test-all-usage-mongodb-instance-list-usage.golden

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
List all MongoDB Database Instances in the specified region, for a given Scaleway Project. By default, the MongoDB Database Instances returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. You can define additional parameters for your query, such as `tags` and `name`. For the `name` parameter, the value you include will be checked against the whole name string to see if it includes the string you put in the parameter.
3+
List all MongoDB® Database Instances in the specified region. By default, the MongoDB® Database Instances returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. You can define additional parameters for your query, such as `tags` and `name`. For the `name` parameter, the value you include will be checked against the whole name string to see if it includes the string you put in the parameter.
44

55
USAGE:
66
scw mongodb instance list [arg=value ...]
@@ -9,8 +9,8 @@ ARGS:
99
[tags.{index}] List Database Instances that have a given tag
1010
[name] Lists Database Instances that match a name pattern
1111
[order-by] Criteria to use when ordering Database Instance listings (created_at_asc | created_at_desc | name_asc | name_desc | status_asc | status_desc)
12-
[project-id] Project ID to list the Database Instance of
13-
[organization-id] Organization ID the Database Instance belongs to
12+
[project-id] Project ID
13+
[organization-id] Organization ID of the Database Instance
1414
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
1515

1616
FLAGS:

cmd/scw/testdata/test-all-usage-mongodb-instance-update-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Update the parameters of a MongoDB Database Instance.
3+
Update the parameters of a MongoDB® Database Instance.
44

55
USAGE:
66
scw mongodb instance update <instance-id ...> [arg=value ...]

cmd/scw/testdata/test-all-usage-mongodb-instance-upgrade-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ USAGE:
77

88
ARGS:
99
instance-id UUID of the Database Instance you want to upgrade
10-
[volume-size] Increase your block storage volume size
10+
[volume-size] Increase your Block Storage volume size
1111
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1212

1313
FLAGS:

cmd/scw/testdata/test-all-usage-mongodb-instance-usage.golden

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
A Managed Database for MongoDB instance is composed of one or multiple dedicated compute nodes running a single database engine.
3+
A Managed Database for MongoDB® Database Instance is composed of one or multiple dedicated compute nodes running a single database engine.
44

55
USAGE:
66
scw mongodb instance <command>
77

88
AVAILABLE COMMANDS:
9-
create Create a MongoDB Database Instance
10-
delete Delete a MongoDB Database Instance
11-
get Get a MongoDB Database Instance
9+
create Create a MongoDB® Database Instance
10+
delete Delete a MongoDB® Database Instance
11+
get Get a MongoDB® Database Instance
1212
get-certificate Get the certificate of a Database Instance
13-
list List MongoDB Database Instances
14-
update Update a MongoDB Database Instance
13+
list List MongoDB® Database Instances
14+
update Update a MongoDB® Database Instance
1515
upgrade Upgrade a Database Instance
1616

1717
FLAGS:

cmd/scw/testdata/test-all-usage-mongodb-node-type-usage.golden

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Node types powering your instance.
3+
Two node type ranges are available:
4+
5+
* **Cost-Optimized:** a complete and highly reliable node range with shared resources that is made for scaling from development to production needs, at affordable prices.
6+
* **Production-Optimized:** database nodes with dedicated vCPU for the most demanding workloads and mission-critical applications.
47

58
USAGE:
69
scw mongodb node-type <command>

cmd/scw/testdata/test-all-usage-mongodb-snapshot-delete-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Delete a given snapshot of a Database Instance. You must specify, in the endpoint, the `snapshot_id` parameter of the snapshot you want to delete.
3+
Delete a given snapshot of a Database Instance. You must specify, in the endpoint, the `snapshot_id` parameter of the snapshot you want to delete.
44

55
USAGE:
66
scw mongodb snapshot delete <snapshot-id ...> [arg=value ...]

cmd/scw/testdata/test-all-usage-mongodb-snapshot-list-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ USAGE:
77

88
ARGS:
99
[instance-id] Instance ID the snapshots belongs to
10-
[name] Lists Database snapshots that match a name pattern
10+
[name] Lists database snapshots that match a name pattern
1111
[order-by] Criteria to use when ordering snapshot listings (created_at_asc | created_at_desc | name_asc | name_desc | expires_at_asc | expires_at_desc)
1212
[project-id] Project ID to list the snapshots of
1313
[organization-id] Organization ID the snapshots belongs to

0 commit comments

Comments
 (0)