Skip to content

Commit 11351ce

Browse files
authored
Merge pull request #168 from arnaud-jost/dev/ajost/split-webhosting
Adds full CLI support for the OVHcloud WebHosting API
2 parents dc39347 + 2a69964 commit 11351ce

255 files changed

Lines changed: 15837 additions & 159 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.

doc/ovhcloud_webhosting.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,38 @@ Retrieve information and manage your WebHosting services
3030
### SEE ALSO
3131

3232
* [ovhcloud](ovhcloud.md) - CLI to manage your OVHcloud services
33+
* [ovhcloud webhosting abuse-state](ovhcloud_webhosting_abuse-state.md) - Get abuse state
34+
* [ovhcloud webhosting api](ovhcloud_webhosting_api.md) - Generic webhosting API access
35+
* [ovhcloud webhosting boost-history](ovhcloud_webhosting_boost-history.md) - List boost history
36+
* [ovhcloud webhosting cdn](ovhcloud_webhosting_cdn.md) - Manage CDN
37+
* [ovhcloud webhosting cron](ovhcloud_webhosting_cron.md) - Manage cron tasks
38+
* [ovhcloud webhosting db](ovhcloud_webhosting_db.md) - Manage databases
39+
* [ovhcloud webhosting domain](ovhcloud_webhosting_domain.md) - Manage attached domains
3340
* [ovhcloud webhosting edit](ovhcloud_webhosting_edit.md) - Edit the given WebHosting
41+
* [ovhcloud webhosting email](ovhcloud_webhosting_email.md) - Manage automated emails
42+
* [ovhcloud webhosting email-option](ovhcloud_webhosting_email-option.md) - Manage email options
43+
* [ovhcloud webhosting env](ovhcloud_webhosting_env.md) - Manage environment variables
44+
* [ovhcloud webhosting extra-sql](ovhcloud_webhosting_extra-sql.md) - Manage extra SQL options
3445
* [ovhcloud webhosting get](ovhcloud_webhosting_get.md) - Retrieve information of a specific WebHosting
46+
* [ovhcloud webhosting incident](ovhcloud_webhosting_incident.md) - List current incidents
3547
* [ovhcloud webhosting list](ovhcloud_webhosting_list.md) - List your WebHosting services
48+
* [ovhcloud webhosting local-seo](ovhcloud_webhosting_local-seo.md) - Manage Local SEO features
49+
* [ovhcloud webhosting module](ovhcloud_webhosting_module.md) - Manage one-click modules
50+
* [ovhcloud webhosting offer](ovhcloud_webhosting_offer.md) - Inspect hosting offers
51+
* [ovhcloud webhosting ovh-config](ovhcloud_webhosting_ovh-config.md) - Manage .ovhconfig settings
52+
* [ovhcloud webhosting own-log](ovhcloud_webhosting_own-log.md) - Manage own logs
53+
* [ovhcloud webhosting request-action](ovhcloud_webhosting_request-action.md) - Request a hosting operation
54+
* [ovhcloud webhosting request-boost](ovhcloud_webhosting_request-boost.md) - Request a boost offer
55+
* [ovhcloud webhosting restore-snapshot](ovhcloud_webhosting_restore-snapshot.md) - Restore a snapshot
56+
* [ovhcloud webhosting runtime](ovhcloud_webhosting_runtime.md) - Manage runtimes
57+
* [ovhcloud webhosting service-info](ovhcloud_webhosting_service-info.md) - Manage webhosting service info
58+
* [ovhcloud webhosting ssh-key](ovhcloud_webhosting_ssh-key.md) - Manage SSH keys
59+
* [ovhcloud webhosting ssl](ovhcloud_webhosting_ssl.md) - Manage SSL
60+
* [ovhcloud webhosting tasks](ovhcloud_webhosting_tasks.md) - Manage tasks
61+
* [ovhcloud webhosting terminate](ovhcloud_webhosting_terminate.md) - Terminate service
62+
* [ovhcloud webhosting token](ovhcloud_webhosting_token.md) - Get DNS verification token
63+
* [ovhcloud webhosting unblock-tcp-out](ovhcloud_webhosting_unblock-tcp-out.md) - Unblock outgoing TCP connections
64+
* [ovhcloud webhosting user](ovhcloud_webhosting_user.md) - Manage FTP/SSH users
65+
* [ovhcloud webhosting vcs](ovhcloud_webhosting_vcs.md) - Manage VCS integrations
66+
* [ovhcloud webhosting website](ovhcloud_webhosting_website.md) - Manage websites deployments
3667

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
## ovhcloud webhosting abuse-state
2+
3+
Get abuse state
4+
5+
```
6+
ovhcloud webhosting abuse-state <service_name> [flags]
7+
```
8+
9+
### Options
10+
11+
```
12+
-h, --help help for abuse-state
13+
```
14+
15+
### Options inherited from parent commands
16+
17+
```
18+
-d, --debug Activate debug mode (will log all HTTP requests details)
19+
-e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution
20+
-o, --output string Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax)
21+
Examples:
22+
--output json
23+
--output yaml
24+
--output interactive
25+
--output 'id' (to extract a single field)
26+
--output 'nested.field.subfield' (to extract a nested field)
27+
--output '[id, "name"]' (to extract multiple fields as an array)
28+
--output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
29+
--output 'name+","+type' (to extract and concatenate fields in a string)
30+
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
31+
--profile string Use a specific profile from the configuration file
32+
```
33+
34+
### SEE ALSO
35+
36+
* [ovhcloud webhosting](ovhcloud_webhosting.md) - Retrieve information and manage your WebHosting services
37+

doc/ovhcloud_webhosting_api.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## ovhcloud webhosting api
2+
3+
Generic webhosting API access
4+
5+
### Options
6+
7+
```
8+
-h, --help help for api
9+
```
10+
11+
### Options inherited from parent commands
12+
13+
```
14+
-d, --debug Activate debug mode (will log all HTTP requests details)
15+
-e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution
16+
-o, --output string Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax)
17+
Examples:
18+
--output json
19+
--output yaml
20+
--output interactive
21+
--output 'id' (to extract a single field)
22+
--output 'nested.field.subfield' (to extract a nested field)
23+
--output '[id, "name"]' (to extract multiple fields as an array)
24+
--output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
25+
--output 'name+","+type' (to extract and concatenate fields in a string)
26+
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
27+
--profile string Use a specific profile from the configuration file
28+
```
29+
30+
### SEE ALSO
31+
32+
* [ovhcloud webhosting](ovhcloud_webhosting.md) - Retrieve information and manage your WebHosting services
33+
* [ovhcloud webhosting api call](ovhcloud_webhosting_api_call.md) - Call any webhosting API path
34+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## ovhcloud webhosting api call
2+
3+
Call any webhosting API path
4+
5+
```
6+
ovhcloud webhosting api call <method> <path> [flags]
7+
```
8+
9+
### Options
10+
11+
```
12+
--editor Use a text editor to define parameters
13+
--from-file string File containing parameters
14+
-h, --help help for call
15+
```
16+
17+
### Options inherited from parent commands
18+
19+
```
20+
-d, --debug Activate debug mode (will log all HTTP requests details)
21+
-e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution
22+
-o, --output string Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax)
23+
Examples:
24+
--output json
25+
--output yaml
26+
--output interactive
27+
--output 'id' (to extract a single field)
28+
--output 'nested.field.subfield' (to extract a nested field)
29+
--output '[id, "name"]' (to extract multiple fields as an array)
30+
--output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
31+
--output 'name+","+type' (to extract and concatenate fields in a string)
32+
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
33+
--profile string Use a specific profile from the configuration file
34+
```
35+
36+
### SEE ALSO
37+
38+
* [ovhcloud webhosting api](ovhcloud_webhosting_api.md) - Generic webhosting API access
39+
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
## ovhcloud webhosting boost-history
2+
3+
List boost history
4+
5+
```
6+
ovhcloud webhosting boost-history <service_name> [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 boost-history
20+
```
21+
22+
### Options inherited from parent commands
23+
24+
```
25+
-d, --debug Activate debug mode (will log all HTTP requests details)
26+
-e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution
27+
-o, --output string Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax)
28+
Examples:
29+
--output json
30+
--output yaml
31+
--output interactive
32+
--output 'id' (to extract a single field)
33+
--output 'nested.field.subfield' (to extract a nested field)
34+
--output '[id, "name"]' (to extract multiple fields as an array)
35+
--output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
36+
--output 'name+","+type' (to extract and concatenate fields in a string)
37+
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
38+
--profile string Use a specific profile from the configuration file
39+
```
40+
41+
### SEE ALSO
42+
43+
* [ovhcloud webhosting](ovhcloud_webhosting.md) - Retrieve information and manage your WebHosting services
44+

doc/ovhcloud_webhosting_cdn.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## ovhcloud webhosting cdn
2+
3+
Manage CDN
4+
5+
### Options
6+
7+
```
8+
-h, --help help for cdn
9+
```
10+
11+
### Options inherited from parent commands
12+
13+
```
14+
-d, --debug Activate debug mode (will log all HTTP requests details)
15+
-e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution
16+
-o, --output string Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax)
17+
Examples:
18+
--output json
19+
--output yaml
20+
--output interactive
21+
--output 'id' (to extract a single field)
22+
--output 'nested.field.subfield' (to extract a nested field)
23+
--output '[id, "name"]' (to extract multiple fields as an array)
24+
--output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
25+
--output 'name+","+type' (to extract and concatenate fields in a string)
26+
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
27+
--profile string Use a specific profile from the configuration file
28+
```
29+
30+
### SEE ALSO
31+
32+
* [ovhcloud webhosting](ovhcloud_webhosting.md) - Retrieve information and manage your WebHosting services
33+
* [ovhcloud webhosting cdn available-options](ovhcloud_webhosting_cdn_available-options.md) - List available CDN options
34+
* [ovhcloud webhosting cdn domain](ovhcloud_webhosting_cdn_domain.md) - Manage CDN domains
35+
* [ovhcloud webhosting cdn get](ovhcloud_webhosting_cdn_get.md) - Get CDN info
36+
* [ovhcloud webhosting cdn operation](ovhcloud_webhosting_cdn_operation.md) - Manage CDN operations
37+
* [ovhcloud webhosting cdn service-info](ovhcloud_webhosting_cdn_service-info.md) - Manage CDN service info
38+
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
## ovhcloud webhosting cdn available-options
2+
3+
List available CDN options
4+
5+
```
6+
ovhcloud webhosting cdn available-options <service_name> [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 available-options
20+
```
21+
22+
### Options inherited from parent commands
23+
24+
```
25+
-d, --debug Activate debug mode (will log all HTTP requests details)
26+
-e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution
27+
-o, --output string Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax)
28+
Examples:
29+
--output json
30+
--output yaml
31+
--output interactive
32+
--output 'id' (to extract a single field)
33+
--output 'nested.field.subfield' (to extract a nested field)
34+
--output '[id, "name"]' (to extract multiple fields as an array)
35+
--output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
36+
--output 'name+","+type' (to extract and concatenate fields in a string)
37+
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
38+
--profile string Use a specific profile from the configuration file
39+
```
40+
41+
### SEE ALSO
42+
43+
* [ovhcloud webhosting cdn](ovhcloud_webhosting_cdn.md) - Manage CDN
44+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## ovhcloud webhosting cdn domain
2+
3+
Manage CDN domains
4+
5+
### Options
6+
7+
```
8+
-h, --help help for domain
9+
```
10+
11+
### Options inherited from parent commands
12+
13+
```
14+
-d, --debug Activate debug mode (will log all HTTP requests details)
15+
-e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution
16+
-o, --output string Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax)
17+
Examples:
18+
--output json
19+
--output yaml
20+
--output interactive
21+
--output 'id' (to extract a single field)
22+
--output 'nested.field.subfield' (to extract a nested field)
23+
--output '[id, "name"]' (to extract multiple fields as an array)
24+
--output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
25+
--output 'name+","+type' (to extract and concatenate fields in a string)
26+
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
27+
--profile string Use a specific profile from the configuration file
28+
```
29+
30+
### SEE ALSO
31+
32+
* [ovhcloud webhosting cdn](ovhcloud_webhosting_cdn.md) - Manage CDN
33+
* [ovhcloud webhosting cdn domain get](ovhcloud_webhosting_cdn_domain_get.md) - Get a CDN domain
34+
* [ovhcloud webhosting cdn domain list](ovhcloud_webhosting_cdn_domain_list.md) - List CDN domains
35+
* [ovhcloud webhosting cdn domain option](ovhcloud_webhosting_cdn_domain_option.md) - Manage CDN domain options
36+
* [ovhcloud webhosting cdn domain purge](ovhcloud_webhosting_cdn_domain_purge.md) - Purge CDN domain cache
37+
* [ovhcloud webhosting cdn domain refresh](ovhcloud_webhosting_cdn_domain_refresh.md) - Refresh CDN domain
38+
* [ovhcloud webhosting cdn domain statistics](ovhcloud_webhosting_cdn_domain_statistics.md) - Get CDN domain statistics
39+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
## ovhcloud webhosting cdn domain get
2+
3+
Get a CDN domain
4+
5+
```
6+
ovhcloud webhosting cdn domain get <service_name> <domain> [flags]
7+
```
8+
9+
### Options
10+
11+
```
12+
-h, --help help for get
13+
```
14+
15+
### Options inherited from parent commands
16+
17+
```
18+
-d, --debug Activate debug mode (will log all HTTP requests details)
19+
-e, --ignore-errors Ignore errors in API calls when it is not fatal to the execution
20+
-o, --output string Output format: json, yaml, interactive, or a custom format expression (using https://github.com/PaesslerAG/gval syntax)
21+
Examples:
22+
--output json
23+
--output yaml
24+
--output interactive
25+
--output 'id' (to extract a single field)
26+
--output 'nested.field.subfield' (to extract a nested field)
27+
--output '[id, "name"]' (to extract multiple fields as an array)
28+
--output '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
29+
--output 'name+","+type' (to extract and concatenate fields in a string)
30+
--output '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
31+
--profile string Use a specific profile from the configuration file
32+
```
33+
34+
### SEE ALSO
35+
36+
* [ovhcloud webhosting cdn domain](ovhcloud_webhosting_cdn_domain.md) - Manage CDN domains
37+

0 commit comments

Comments
 (0)