Skip to content

Commit c297e8d

Browse files
committed
feat(cli): added call apiV2 for cloud storage
Signed-off-by: olivier dubo <olivier.dubo@ovhcloud.com>
1 parent 7ede299 commit c297e8d

33 files changed

Lines changed: 7703 additions & 3818 deletions

doc/ovhcloud_cloud_storage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Manage storage services in the given cloud project
3131

3232
* [ovhcloud cloud](ovhcloud_cloud.md) - Manage your projects and services in the Public Cloud universe (MKS, MPR, MRS, Object Storage...)
3333
* [ovhcloud cloud storage block](ovhcloud_cloud_storage_block.md) - Manage block storage volumes in the given cloud project
34-
* [ovhcloud cloud storage file](ovhcloud_cloud_storage_file.md) - Manage file storage shares in the given cloud project
34+
* [ovhcloud cloud storage file](ovhcloud_cloud_storage_file.md) - Manage file storage in the given cloud project
3535
* [ovhcloud cloud storage object](ovhcloud_cloud_storage_object.md) - Manage S3™* compatible storage containers in the given cloud project (* S3 is a trademark filed by Amazon Technologies,Inc. OVHcloud's service is not sponsored by, endorsed by, or otherwise affiliated with Amazon Technologies,Inc.)
3636
* [ovhcloud cloud storage swift](ovhcloud_cloud_storage_swift.md) - Manage SWIFT storage containers in the given cloud project
3737

doc/ovhcloud_cloud_storage_file.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
## ovhcloud cloud storage file
22

3-
Manage file storage shares in the given cloud project
3+
Manage file storage in the given cloud project
44

55
### Options
66

77
```
88
--cloud-project string Cloud project ID
99
-h, --help help for file
10-
--region string Region (skip region discovery if set)
1110
```
1211

1312
### Options inherited from parent commands
@@ -32,5 +31,7 @@ Manage file storage shares in the given cloud project
3231
### SEE ALSO
3332

3433
* [ovhcloud cloud storage](ovhcloud_cloud_storage.md) - Manage storage services in the given cloud project
34+
* [ovhcloud cloud storage file network](ovhcloud_cloud_storage_file_network.md) - Manage file storage share networks
3535
* [ovhcloud cloud storage file share](ovhcloud_cloud_storage_file_share.md) - Manage file storage shares
36+
* [ovhcloud cloud storage file snapshot](ovhcloud_cloud_storage_file_snapshot.md) - Manage file storage snapshots
3637

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## ovhcloud cloud storage file network
2+
3+
Manage file storage share networks
4+
5+
### Options
6+
7+
```
8+
-h, --help help for network
9+
```
10+
11+
### Options inherited from parent commands
12+
13+
```
14+
--cloud-project string Cloud project ID
15+
-d, --debug Activate debug mode (will log all HTTP requests details)
16+
-e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution
17+
-o, --output string Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax)
18+
Examples:
19+
--output json
20+
--output yaml
21+
--output interactive
22+
--output 'id' (to extract a single field)
23+
--output 'nested.field.subfield' (to extract a nested field)
24+
--output '[id, "name"]' (to extract multiple fields as an array)
25+
--output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
26+
--output 'name+","+type' (to extract and concatenate fields in a string)
27+
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
28+
--profile string Use a specific profile from the configuration file
29+
```
30+
31+
### SEE ALSO
32+
33+
* [ovhcloud cloud storage file](ovhcloud_cloud_storage_file.md) - Manage file storage in the given cloud project
34+
* [ovhcloud cloud storage file network create](ovhcloud_cloud_storage_file_network_create.md) - Create a new file storage share network
35+
* [ovhcloud cloud storage file network delete](ovhcloud_cloud_storage_file_network_delete.md) - Delete the given file storage share network
36+
* [ovhcloud cloud storage file network get](ovhcloud_cloud_storage_file_network_get.md) - Get a specific file storage share network
37+
* [ovhcloud cloud storage file network list](ovhcloud_cloud_storage_file_network_list.md) - List file storage share networks
38+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
## ovhcloud cloud storage file network create
2+
3+
Create a new file storage share network
4+
5+
```
6+
ovhcloud cloud storage file network create [flags]
7+
```
8+
9+
### Options
10+
11+
```
12+
--availability-zone string Availability zone within the region
13+
--description string Description of the share network
14+
--editor Use a text editor to define parameters
15+
--from-file string File containing parameters
16+
-h, --help help for create
17+
--init-file string Create a file with example parameters
18+
--name string Name of the share network
19+
--network-id string ID of the private network to back the share network
20+
--region string Region where the share network is created
21+
--replace Replace parameters file if it already exists
22+
--subnet-id string ID of the subnet to back the share network
23+
--wait Wait for the share network to be ready before exiting
24+
```
25+
26+
### Options inherited from parent commands
27+
28+
```
29+
--cloud-project string Cloud project ID
30+
-d, --debug Activate debug mode (will log all HTTP requests details)
31+
-e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution
32+
-o, --output string Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax)
33+
Examples:
34+
--output json
35+
--output yaml
36+
--output interactive
37+
--output 'id' (to extract a single field)
38+
--output 'nested.field.subfield' (to extract a nested field)
39+
--output '[id, "name"]' (to extract multiple fields as an array)
40+
--output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
41+
--output 'name+","+type' (to extract and concatenate fields in a string)
42+
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
43+
--profile string Use a specific profile from the configuration file
44+
```
45+
46+
### SEE ALSO
47+
48+
* [ovhcloud cloud storage file network](ovhcloud_cloud_storage_file_network.md) - Manage file storage share networks
49+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## ovhcloud cloud storage file network delete
2+
3+
Delete the given file storage share network
4+
5+
```
6+
ovhcloud cloud storage file network delete <network_id> [flags]
7+
```
8+
9+
### Options
10+
11+
```
12+
-h, --help help for delete
13+
```
14+
15+
### Options inherited from parent commands
16+
17+
```
18+
--cloud-project string Cloud project ID
19+
-d, --debug Activate debug mode (will log all HTTP requests details)
20+
-e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution
21+
-o, --output string Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax)
22+
Examples:
23+
--output json
24+
--output yaml
25+
--output interactive
26+
--output 'id' (to extract a single field)
27+
--output 'nested.field.subfield' (to extract a nested field)
28+
--output '[id, "name"]' (to extract multiple fields as an array)
29+
--output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
30+
--output 'name+","+type' (to extract and concatenate fields in a string)
31+
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
32+
--profile string Use a specific profile from the configuration file
33+
```
34+
35+
### SEE ALSO
36+
37+
* [ovhcloud cloud storage file network](ovhcloud_cloud_storage_file_network.md) - Manage file storage share networks
38+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## ovhcloud cloud storage file network get
2+
3+
Get a specific file storage share network
4+
5+
```
6+
ovhcloud cloud storage file network get <network_id> [flags]
7+
```
8+
9+
### Options
10+
11+
```
12+
-h, --help help for get
13+
```
14+
15+
### Options inherited from parent commands
16+
17+
```
18+
--cloud-project string Cloud project ID
19+
-d, --debug Activate debug mode (will log all HTTP requests details)
20+
-e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution
21+
-o, --output string Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax)
22+
Examples:
23+
--output json
24+
--output yaml
25+
--output interactive
26+
--output 'id' (to extract a single field)
27+
--output 'nested.field.subfield' (to extract a nested field)
28+
--output '[id, "name"]' (to extract multiple fields as an array)
29+
--output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
30+
--output 'name+","+type' (to extract and concatenate fields in a string)
31+
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
32+
--profile string Use a specific profile from the configuration file
33+
```
34+
35+
### SEE ALSO
36+
37+
* [ovhcloud cloud storage file network](ovhcloud_cloud_storage_file_network.md) - Manage file storage share networks
38+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
## ovhcloud cloud storage file network list
2+
3+
List file storage share networks
4+
5+
```
6+
ovhcloud cloud storage file network list [flags]
7+
```
8+
9+
### Options
10+
11+
```
12+
--filter stringArray Filter results by any property using https://github.com/PaesslerAG/gval syntax
13+
Examples:
14+
--filter 'state=="running"'
15+
--filter 'name=~"^my.*"'
16+
--filter 'nested.property.subproperty>10'
17+
--filter 'startDate>="2023-12-01"'
18+
--filter 'name=~"something" && nbField>10'
19+
-h, --help help for list
20+
```
21+
22+
### Options inherited from parent commands
23+
24+
```
25+
--cloud-project string Cloud project ID
26+
-d, --debug Activate debug mode (will log all HTTP requests details)
27+
-e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution
28+
-o, --output string Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax)
29+
Examples:
30+
--output json
31+
--output yaml
32+
--output interactive
33+
--output 'id' (to extract a single field)
34+
--output 'nested.field.subfield' (to extract a nested field)
35+
--output '[id, "name"]' (to extract multiple fields as an array)
36+
--output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
37+
--output 'name+","+type' (to extract and concatenate fields in a string)
38+
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
39+
--profile string Use a specific profile from the configuration file
40+
```
41+
42+
### SEE ALSO
43+
44+
* [ovhcloud cloud storage file network](ovhcloud_cloud_storage_file_network.md) - Manage file storage share networks
45+

doc/ovhcloud_cloud_storage_file_share.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,14 @@ Manage file storage shares
2626
--output 'name+","+type' (to extract and concatenate fields in a string)
2727
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
2828
--profile string Use a specific profile from the configuration file
29-
--region string Region (skip region discovery if set)
3029
```
3130

3231
### SEE ALSO
3332

34-
* [ovhcloud cloud storage file](ovhcloud_cloud_storage_file.md) - Manage file storage shares in the given cloud project
35-
* [ovhcloud cloud storage file share acl](ovhcloud_cloud_storage_file_share_acl.md) - Manage share access control lists
36-
* [ovhcloud cloud storage file share create](ovhcloud_cloud_storage_file_share_create.md) - Create a new share
37-
* [ovhcloud cloud storage file share delete](ovhcloud_cloud_storage_file_share_delete.md) - Delete the given share
38-
* [ovhcloud cloud storage file share edit](ovhcloud_cloud_storage_file_share_edit.md) - Edit the given share
39-
* [ovhcloud cloud storage file share get](ovhcloud_cloud_storage_file_share_get.md) - Get a specific share
40-
* [ovhcloud cloud storage file share list](ovhcloud_cloud_storage_file_share_list.md) - List shares
41-
* [ovhcloud cloud storage file share snapshot](ovhcloud_cloud_storage_file_share_snapshot.md) - Manage share snapshots
33+
* [ovhcloud cloud storage file](ovhcloud_cloud_storage_file.md) - Manage file storage in the given cloud project
34+
* [ovhcloud cloud storage file share create](ovhcloud_cloud_storage_file_share_create.md) - Create a new file storage share
35+
* [ovhcloud cloud storage file share delete](ovhcloud_cloud_storage_file_share_delete.md) - Delete the given file storage share
36+
* [ovhcloud cloud storage file share edit](ovhcloud_cloud_storage_file_share_edit.md) - Edit the given file storage share
37+
* [ovhcloud cloud storage file share get](ovhcloud_cloud_storage_file_share_get.md) - Get a specific file storage share
38+
* [ovhcloud cloud storage file share list](ovhcloud_cloud_storage_file_share_list.md) - List file storage shares
4239

doc/ovhcloud_cloud_storage_file_share_create.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
## ovhcloud cloud storage file share create
22

3-
Create a new share
3+
Create a new file storage share
44

55
```
6-
ovhcloud cloud storage file share create <region> [flags]
6+
ovhcloud cloud storage file share create [flags]
77
```
88

99
### Options
1010

1111
```
12-
--availability-zone string Availability zone (required in 3AZ regions)
13-
--description string Share description
12+
--availability-zone string Availability zone within the region
13+
--description string Description of the file storage share
1414
--editor Use a text editor to define parameters
1515
--from-file string File containing parameters
1616
-h, --help help for create
1717
--init-file string Create a file with example parameters
18-
--name string Share name
19-
--network-id string Network ID
18+
--name string Name of the file storage share
19+
--protocol string File sharing protocol (NFS)
20+
--region string Region where the share is created
2021
--replace Replace parameters file if it already exists
21-
--size int Share size in GB
22-
--snapshot-id string Snapshot ID to create the share from
23-
--subnet-id string Subnet ID
24-
--type string Share type
22+
--share-network-id string ID of the share network to attach the share to
23+
--share-type string File storage type / performance tier (STANDARD_1AZ)
24+
--size int Size of the file storage share in GB
25+
--wait Wait for the share to be ready before exiting
2526
```
2627

2728
### Options inherited from parent commands
@@ -42,7 +43,6 @@ ovhcloud cloud storage file share create <region> [flags]
4243
--output 'name+","+type' (to extract and concatenate fields in a string)
4344
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
4445
--profile string Use a specific profile from the configuration file
45-
--region string Region (skip region discovery if set)
4646
```
4747

4848
### SEE ALSO

doc/ovhcloud_cloud_storage_file_share_delete.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## ovhcloud cloud storage file share delete
22

3-
Delete the given share
3+
Delete the given file storage share
44

55
```
66
ovhcloud cloud storage file share delete <share_id> [flags]
@@ -30,7 +30,6 @@ ovhcloud cloud storage file share delete <share_id> [flags]
3030
--output 'name+","+type' (to extract and concatenate fields in a string)
3131
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
3232
--profile string Use a specific profile from the configuration file
33-
--region string Region (skip region discovery if set)
3433
```
3534

3635
### SEE ALSO

0 commit comments

Comments
 (0)