@@ -4,82 +4,59 @@ Create a gateway in the given cloud project
44
55### Synopsis
66
7- Use this command to create a new gateway.
7+ Use this command to create a new gateway in the given public cloud project .
88
9- Two options are available to create a gateway:
10- - Create a gateway in an existing private network
11- - Create a gateway in a new private network
12-
13- When creating a gateway in an existing private network, you must specify the network ID and subnet ID
14- using the flags --network-id and --subnet-id.
15- In this case, only two parameters are supported and required: the gateway model and its name (respectively
16- --model and --name flags).
17-
18- There are three ways to define the parameters:
9+ Subnets are nested objects: to attach them, use the repeatable --subnet flag, a
10+ configuration file or your text editor. There are three ways to define the
11+ creation parameters:
1912
20131 . Using only CLI flags:
2114
22- ovhcloud cloud network gateway create <region> --name MyGateway --model xl
15+ ovhcloud cloud network gateway create --name MyGateway --region GRA11 --external-gateway-enabled --external-gateway- model S
2316
24172 . Using a configuration file:
2518
2619 First you can generate an example of parameters file using the following command:
2720
28- ovhcloud cloud network gateway create <region> --init-file ./params.json
21+ ovhcloud cloud network gateway create --init-file ./params.json
2922
30- You will be able to choose from several examples of parameters. Once an example has been selected, the content is written in the given file.
3123 After editing the file to set the correct creation parameters, run:
3224
33- ovhcloud cloud network gateway create <region> --from-file ./params.json
25+ ovhcloud cloud network gateway create --from-file ./params.json
3426
3527 Note that you can also pipe the content of the parameters file, like the following:
3628
37- cat ./params.json | ovhcloud cloud network gateway create <region>
29+ cat ./params.json | ovhcloud cloud network gateway create
3830
3931 In both cases, you can override the parameters in the given file using command line flags, for example:
4032
41- ovhcloud cloud network gateway create <region> --from-file ./params.json --name MyGateway
33+ ovhcloud cloud network gateway create --from-file ./params.json --name MyGateway
4234
43353 . Using your default text editor:
4436
45- ovhcloud cloud network gateway create <region> --editor
46-
47- You will be able to choose from several examples of parameters. Once an example has been selected, the CLI will open your
48- default text editor to update the parameters. When saving the file, the creation will start.
49-
50- Note that it is also possible to override values in the presented examples using command line flags like the following:
51-
52- ovhcloud cloud network gateway create <region> --editor --name MyGateway
37+ ovhcloud cloud network gateway create --editor
5338
5439
5540```
56- ovhcloud cloud network gateway create <region> [flags]
41+ ovhcloud cloud network gateway create [flags]
5742```
5843
5944### Options
6045
6146```
62- --editor Use a text editor to define parameters
63- --from-file string File containing parameters
64- -h, --help help for create
65- --init-file string Create a file with example parameters
66- --model string Gateway model (s, m, l, xl, 2xl, 3xl)
67- --name string Name of the gateway
68- --network-id string ID of the existing private network to create the gateway in
69- --network-name string Name of the private network
70- --network-vlan-id int VLAN ID for the private network
71- --replace Replace parameters file if it already exists
72- --subnet-allocation-pools strings Allocation pools for the subnet in format start:end
73- --subnet-cidr string CIDR of the subnet
74- --subnet-dns-name-servers strings DNS name servers for the subnet
75- --subnet-enable-dhcp Enable DHCP for the subnet
76- --subnet-gateway-ip string Gateway IP address for the subnet
77- --subnet-host-routes strings Host routes for the subnet in format destination:nextHop
78- --subnet-id string ID of the existing subnet to create the gateway in
79- --subnet-ip-version int IP version (4 or 6)
80- --subnet-name string Name of the subnet
81- --subnet-use-default-public-dns-resolver Use default DNS resolver for the subnet
82- --wait Wait for gateway creation to be done before exiting
47+ --availability-zone string Availability zone within the region
48+ --description string Description of the gateway
49+ --editor Use a text editor to define parameters
50+ --external-gateway-enabled Whether the external gateway is enabled
51+ --external-gateway-model string External gateway sizing model (S, M, L, XL, 2XL, 3XL)
52+ --from-file string File containing parameters
53+ -h, --help help for create
54+ --init-file string Create a file with example parameters
55+ --name string Name of the gateway
56+ --region string Region where the gateway will be created
57+ --replace Replace parameters file if it already exists
58+ --subnet strings ID of a subnet to attach to the gateway (repeatable)
59+ --wait Wait for gateway creation to be done before exiting
8360```
8461
8562### Options inherited from parent commands
0 commit comments