Skip to content

Commit fd8fe7f

Browse files
committed
Merge branch 'main' of github.com:ovh/ovhcloud-cli into dev/lpatte/managed-database-mvp
Signed-off-by: Ludwig Patte <ludwig.patte@ovhcloud.com>
2 parents 79ea47e + 077d44d commit fd8fe7f

324 files changed

Lines changed: 20541 additions & 1638 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,10 @@ release-snapshot:
3030
release:
3131
goreleaser release --clean
3232

33-
.PHONY: all wasm doc
33+
schemas:
34+
@if [ -z "$(UNIVERSE)" ]; then echo "Usage: make schemas UNIVERSE=<name> (e.g. cloud, domain, vps)"; exit 1; fi
35+
@tmp=$$(mktemp internal/assets/api-schemas/$(UNIVERSE).json.XXXXXX) && \
36+
curl -s "https://eu.api.ovh.com/v1/$(UNIVERSE).json?format=openapi3" | jq 'del(.paths[] | .[]["x-code-samples"])' > "$$tmp" && \
37+
mv "$$tmp" internal/assets/api-schemas/$(UNIVERSE).json
38+
39+
.PHONY: all wasm doc schemas

doc/ovhcloud_cloud.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Manage your projects and services in the Public Cloud universe (MKS, MPR, MRS, O
3232
* [ovhcloud](ovhcloud.md) - CLI to manage your OVHcloud services
3333
* [ovhcloud cloud alerting](ovhcloud_cloud_alerting.md) - Manage billing alert configurations in the given cloud project
3434
* [ovhcloud cloud container-registry](ovhcloud_cloud_container-registry.md) - Manage container registries in the given cloud project
35+
* [ovhcloud cloud floating-ip](ovhcloud_cloud_floating-ip.md) - Manage floating IPs in the given cloud project
3536
* [ovhcloud cloud instance](ovhcloud_cloud_instance.md) - Manage instances in the given cloud project
3637
* [ovhcloud cloud ip-failover](ovhcloud_cloud_ip-failover.md) - Manage failover IPs in the given cloud project
3738
* [ovhcloud cloud kube](ovhcloud_cloud_kube.md) - Manage Kubernetes clusters in the given cloud project
@@ -48,6 +49,7 @@ Manage your projects and services in the Public Cloud universe (MKS, MPR, MRS, O
4849
* [ovhcloud cloud savings-plan](ovhcloud_cloud_savings-plan.md) - Manage savings plans for your cloud project
4950
* [ovhcloud cloud ssh-key](ovhcloud_cloud_ssh-key.md) - Manage SSH keys in the given cloud project
5051
* [ovhcloud cloud storage-block](ovhcloud_cloud_storage-block.md) - Manage block storage volumes in the given cloud project
52+
* [ovhcloud cloud storage-file](ovhcloud_cloud_storage-file.md) - Manage file storage shares in the given cloud project
5153
* [ovhcloud cloud storage-s3](ovhcloud_cloud_storage-s3.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.)
5254
* [ovhcloud cloud storage-swift](ovhcloud_cloud_storage-swift.md) - Manage SWIFT storage containers in the given cloud project
5355
* [ovhcloud cloud user](ovhcloud_cloud_user.md) - Manage users in the given cloud project

doc/ovhcloud_cloud_floating-ip.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## ovhcloud cloud floating-ip
2+
3+
Manage floating IPs in the given cloud project
4+
5+
### Options
6+
7+
```
8+
--cloud-project string Cloud project ID
9+
-h, --help help for floating-ip
10+
--region string Filter by region or specify the region of the floating IP
11+
```
12+
13+
### Options inherited from parent commands
14+
15+
```
16+
-d, --debug Activate debug mode (will log all HTTP requests details)
17+
-e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution
18+
-o, --output string Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax)
19+
Examples:
20+
--output json
21+
--output yaml
22+
--output interactive
23+
--output 'id' (to extract a single field)
24+
--output 'nested.field.subfield' (to extract a nested field)
25+
--output '[id, "name"]' (to extract multiple fields as an array)
26+
--output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
27+
--output 'name+","+type' (to extract and concatenate fields in a string)
28+
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
29+
--profile string Use a specific profile from the configuration file
30+
```
31+
32+
### SEE ALSO
33+
34+
* [ovhcloud cloud](ovhcloud_cloud.md) - Manage your projects and services in the Public Cloud universe (MKS, MPR, MRS, Object Storage...)
35+
* [ovhcloud cloud floating-ip delete](ovhcloud_cloud_floating-ip_delete.md) - Delete a floating IP
36+
* [ovhcloud cloud floating-ip get](ovhcloud_cloud_floating-ip_get.md) - Get information about a floating IP
37+
* [ovhcloud cloud floating-ip list](ovhcloud_cloud_floating-ip_list.md) - List floating IPs
38+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## ovhcloud cloud floating-ip delete
2+
3+
Delete a floating IP
4+
5+
```
6+
ovhcloud cloud floating-ip delete <floating_ip_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+
--region string Filter by region or specify the region of the floating IP
34+
```
35+
36+
### SEE ALSO
37+
38+
* [ovhcloud cloud floating-ip](ovhcloud_cloud_floating-ip.md) - Manage floating IPs in the given cloud project
39+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## ovhcloud cloud floating-ip get
2+
3+
Get information about a floating IP
4+
5+
```
6+
ovhcloud cloud floating-ip get <floating_ip_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+
--region string Filter by region or specify the region of the floating IP
34+
```
35+
36+
### SEE ALSO
37+
38+
* [ovhcloud cloud floating-ip](ovhcloud_cloud_floating-ip.md) - Manage floating IPs in the given cloud project
39+
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
## ovhcloud cloud floating-ip list
2+
3+
List floating IPs
4+
5+
```
6+
ovhcloud cloud floating-ip 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+
--region string Filter by region or specify the region of the floating IP
41+
```
42+
43+
### SEE ALSO
44+
45+
* [ovhcloud cloud floating-ip](ovhcloud_cloud_floating-ip.md) - Manage floating IPs in the given cloud project
46+

doc/ovhcloud_cloud_instance.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,13 @@ Manage instances in the given cloud project
3232

3333
* [ovhcloud cloud](ovhcloud_cloud.md) - Manage your projects and services in the Public Cloud universe (MKS, MPR, MRS, Object Storage...)
3434
* [ovhcloud cloud instance activate-monthly-billing](ovhcloud_cloud_instance_activate-monthly-billing.md) - Activate monthly billing for the given instance
35+
* [ovhcloud cloud instance application-access](ovhcloud_cloud_instance_application-access.md) - Get application access credentials for the given instance
36+
* [ovhcloud cloud instance autobackup](ovhcloud_cloud_instance_autobackup.md) - Manage automatic backup workflows for instances
3537
* [ovhcloud cloud instance create](ovhcloud_cloud_instance_create.md) - Create a new instance
3638
* [ovhcloud cloud instance delete](ovhcloud_cloud_instance_delete.md) - Delete the given instance
3739
* [ovhcloud cloud instance exit-rescue](ovhcloud_cloud_instance_exit-rescue.md) - Exit the given instance from rescue mode
3840
* [ovhcloud cloud instance get](ovhcloud_cloud_instance_get.md) - Get a specific instance
41+
* [ovhcloud cloud instance group](ovhcloud_cloud_instance_group.md) - Manage instance groups
3942
* [ovhcloud cloud instance interface](ovhcloud_cloud_instance_interface.md) - Manage interfaces of the given instance
4043
* [ovhcloud cloud instance list](ovhcloud_cloud_instance_list.md) - List your instances
4144
* [ovhcloud cloud instance reboot](ovhcloud_cloud_instance_reboot.md) - Reboot the given instance
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
## ovhcloud cloud instance application-access
2+
3+
Get application access credentials for the given instance
4+
5+
### Synopsis
6+
7+
Get the credentials to access the application installed on the given instance (e.g. WordPress, GitLab, etc.)
8+
9+
```
10+
ovhcloud cloud instance application-access <instance_id> [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help help for application-access
17+
```
18+
19+
### Options inherited from parent commands
20+
21+
```
22+
--cloud-project string Cloud project ID
23+
-d, --debug Activate debug mode (will log all HTTP requests details)
24+
-e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution
25+
-o, --output string Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax)
26+
Examples:
27+
--output json
28+
--output yaml
29+
--output interactive
30+
--output 'id' (to extract a single field)
31+
--output 'nested.field.subfield' (to extract a nested field)
32+
--output '[id, "name"]' (to extract multiple fields as an array)
33+
--output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
34+
--output 'name+","+type' (to extract and concatenate fields in a string)
35+
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
36+
--profile string Use a specific profile from the configuration file
37+
```
38+
39+
### SEE ALSO
40+
41+
* [ovhcloud cloud instance](ovhcloud_cloud_instance.md) - Manage instances in the given cloud project
42+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## ovhcloud cloud instance autobackup
2+
3+
Manage automatic backup workflows for instances
4+
5+
### Options
6+
7+
```
8+
-h, --help help for autobackup
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 instance](ovhcloud_cloud_instance.md) - Manage instances in the given cloud project
34+
* [ovhcloud cloud instance autobackup create](ovhcloud_cloud_instance_autobackup_create.md) - Create an automatic backup workflow for the given instance
35+
* [ovhcloud cloud instance autobackup delete](ovhcloud_cloud_instance_autobackup_delete.md) - Delete an automatic backup workflow
36+
* [ovhcloud cloud instance autobackup get](ovhcloud_cloud_instance_autobackup_get.md) - Get details of an automatic backup workflow
37+
* [ovhcloud cloud instance autobackup list](ovhcloud_cloud_instance_autobackup_list.md) - List automatic backup workflows for the given instance
38+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## ovhcloud cloud instance autobackup create
2+
3+
Create an automatic backup workflow for the given instance
4+
5+
```
6+
ovhcloud cloud instance autobackup create <instance_id> [flags]
7+
```
8+
9+
### Options
10+
11+
```
12+
--cron string Unix Cron pattern (e.g. '0 0 * * *')
13+
-h, --help help for create
14+
--name string Workflow name
15+
--rotation int Number of backups to keep
16+
```
17+
18+
### Options inherited from parent commands
19+
20+
```
21+
--cloud-project string Cloud project ID
22+
-d, --debug Activate debug mode (will log all HTTP requests details)
23+
-e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution
24+
-o, --output string Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax)
25+
Examples:
26+
--output json
27+
--output yaml
28+
--output interactive
29+
--output 'id' (to extract a single field)
30+
--output 'nested.field.subfield' (to extract a nested field)
31+
--output '[id, "name"]' (to extract multiple fields as an array)
32+
--output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
33+
--output 'name+","+type' (to extract and concatenate fields in a string)
34+
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
35+
--profile string Use a specific profile from the configuration file
36+
```
37+
38+
### SEE ALSO
39+
40+
* [ovhcloud cloud instance autobackup](ovhcloud_cloud_instance_autobackup.md) - Manage automatic backup workflows for instances
41+

0 commit comments

Comments
 (0)