Skip to content

Commit 4ee1aaf

Browse files
committed
Fix
1 parent 73098e1 commit 4ee1aaf

11 files changed

+21
-180
lines changed

cmd/scw/testdata/test-all-usage-iam-organization-usage.golden

Lines changed: 0 additions & 15 deletions
This file was deleted.

cmd/scw/testdata/test-all-usage-iam-usage.golden

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ AVAILABLE COMMANDS:
1111
group Groups management commands
1212
jwt JWTs management commands
1313
log Log management commands
14-
organization Organization-wide management commands
1514
permission-set Permission sets management commands
1615
policy Policies management commands
1716
rule Rules management commands

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

Lines changed: 0 additions & 20 deletions
This file was deleted.

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

Lines changed: 0 additions & 19 deletions
This file was deleted.

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
Instance endpoints enable connection to your instance.
44

55
USAGE:
6-
scw mongodb endpoint <command>
7-
8-
AVAILABLE COMMANDS:
9-
create Create a new Instance endpoint
10-
delete Delete a Database Instance endpoint
6+
scw mongodb endpoint
117

128
FLAGS:
139
-h, --help help for endpoint
@@ -17,5 +13,3 @@ GLOBAL FLAGS:
1713
-D, --debug Enable debug mode
1814
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
1915
-p, --profile string The config profile to use
20-
21-
Use "scw mongodb endpoint [command] --help" for more information about a command.

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

Lines changed: 0 additions & 21 deletions
This file was deleted.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ USAGE:
66
scw mongodb user <command>
77

88
AVAILABLE COMMANDS:
9-
create Create an user on a Database Instance
109
delete Delete a user on a Database Instance
1110
list List users of a Database Instance
1211
set-role Apply user roles

docs/commands/iam.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ This API allows you to manage Identity and Access Management (IAM) across your S
3131
- [Log management commands](#log-management-commands)
3232
- [Get a log](#get-a-log)
3333
- [List logs](#list-logs)
34-
- [Organization-wide management commands](#organization-wide-management-commands)
3534
- [Permission sets management commands](#permission-sets-management-commands)
3635
- [List permission sets](#list-permission-sets)
3736
- [Policies management commands](#policies-management-commands)
@@ -630,20 +629,6 @@ scw iam log list [arg=value ...]
630629

631630

632631

633-
## Organization-wide management commands
634-
635-
Organization-wide management commands.
636-
637-
Organization-wide management commands.
638-
639-
**Usage:**
640-
641-
```
642-
scw iam organization
643-
```
644-
645-
646-
647632
## Permission sets management commands
648633

649634
Permission sets management commands.

docs/commands/mongodb.md

Lines changed: 2 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
This API allows you to manage your Managed Databases for MongoDB®.
44

55
- [Endpoint management commands](#endpoint-management-commands)
6-
- [Create a new Instance endpoint](#create-a-new-instance-endpoint)
7-
- [Delete a Database Instance endpoint](#delete-a-database-instance-endpoint)
86
- [Instance management commands](#instance-management-commands)
97
- [Create a MongoDB® Database Instance](#create-a-mongodb®-database-instance)
108
- [Delete a MongoDB® Database Instance](#delete-a-mongodb®-database-instance)
@@ -23,7 +21,6 @@ This API allows you to manage your Managed Databases for MongoDB®.
2321
- [Restore a Database Instance snapshot](#restore-a-database-instance-snapshot)
2422
- [Update a Database Instance snapshot](#update-a-database-instance-snapshot)
2523
- [User management commands](#user-management-commands)
26-
- [Create an user on a Database Instance](#create-an-user-on-a-database-instance)
2724
- [Delete a user on a Database Instance](#delete-a-user-on-a-database-instance)
2825
- [List users of a Database Instance](#list-users-of-a-database-instance)
2926
- [Apply user roles](#apply-user-roles)
@@ -36,47 +33,15 @@ This API allows you to manage your Managed Databases for MongoDB®.
3633

3734
Instance endpoints enable connection to your instance.
3835

39-
40-
### Create a new Instance endpoint
41-
42-
Create a new endpoint for a MongoDB® Database Instance. You can add `public_network` or `private_network` specifications to the body of the request.
43-
44-
**Usage:**
45-
46-
```
47-
scw mongodb endpoint create <instance-id ...> [arg=value ...]
48-
```
49-
50-
51-
**Args:**
52-
53-
| Name | | Description |
54-
|------|---|-------------|
55-
| instance-id | Required | UUID of the Database Instance |
56-
| endpoint.private-network.private-network-id | | UUID of the Private Network |
57-
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |
58-
59-
60-
61-
### Delete a Database Instance endpoint
62-
63-
Delete the endpoint of a Database Instance. You must specify the `endpoint_id` parameter of the endpoint you want to delete. Note that you might need to update any environment configurations that point to the deleted endpoint.
36+
Instance endpoints enable connection to your instance.
6437

6538
**Usage:**
6639

6740
```
68-
scw mongodb endpoint delete <endpoint-id ...> [arg=value ...]
41+
scw mongodb endpoint
6942
```
7043

7144

72-
**Args:**
73-
74-
| Name | | Description |
75-
|------|---|-------------|
76-
| endpoint-id | Required | UUID of the Endpoint to delete |
77-
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |
78-
79-
8045

8146
## Instance management commands
8247

@@ -410,28 +375,6 @@ scw mongodb snapshot update <snapshot-id ...> [arg=value ...]
410375
Users are profiles to which you can attribute database-level permissions. They allow you to define permissions specific to each type of database usage.
411376

412377

413-
### Create an user on a Database Instance
414-
415-
Create an user on a Database Instance. You must define the `name`, `password` of the user and `instance_id` parameters in the request.
416-
417-
**Usage:**
418-
419-
```
420-
scw mongodb user create [arg=value ...]
421-
```
422-
423-
424-
**Args:**
425-
426-
| Name | | Description |
427-
|------|---|-------------|
428-
| instance-id | Required | UUID of the Database Instance the user belongs to |
429-
| name | | Name of the database user |
430-
| password | | Password of the database user |
431-
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |
432-
433-
434-
435378
### Delete a user on a Database Instance
436379

437380
Delete an existing user on a Database Instance.

internal/namespaces/vpc/v2/testdata/test-get-private-network-multiple.golden

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3-
ID 82e2935f-1e06-46cb-83a9-ad664aedd289
4-
Name cli-pn-exciting-keldysh
5-
OrganizationID ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b
6-
ProjectID ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b
7-
Region fr-par
8-
CreatedAt few seconds ago
9-
UpdatedAt few seconds ago
10-
VpcID 53e50f63-f6c0-44f7-8576-d6edcb965d9c
11-
DHCPEnabled true
12-
DefaultRoutePropagationEnabled false
3+
ID 82e2935f-1e06-46cb-83a9-ad664aedd289
4+
Name cli-pn-exciting-keldysh
5+
OrganizationID ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b
6+
ProjectID ee7bd9e1-9cbd-4724-b2f4-19e50f3cf38b
7+
Region fr-par
8+
CreatedAt few seconds ago
9+
UpdatedAt few seconds ago
10+
VpcID 53e50f63-f6c0-44f7-8576-d6edcb965d9c
11+
DHCPEnabled true
1312

1413
Instance Servers:
1514
ID NAME STATE NIC ID MAC ADDRESS
@@ -59,7 +58,6 @@ dd08a119-9d52-4afa-af50-0c990aa63d61 few seconds ago few seconds ago fd4a:c18
5958
],
6059
"vpc_id": "53e50f63-f6c0-44f7-8576-d6edcb965d9c",
6160
"dhcp_enabled": true,
62-
"default_route_propagation_enabled": false,
6361
"instance_servers": [
6462
{
6563
"id": "d5ea776f-d30a-4e93-9ec9-d293dfd84104",

0 commit comments

Comments
 (0)