Skip to content

Commit f7ead5a

Browse files
authored
docs(pgw): revamp public gateways API doc (#2871)
1 parent 7b6f37a commit f7ead5a

File tree

46 files changed

+470
-470
lines changed

Some content is hidden

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

46 files changed

+470
-470
lines changed

cmd/scw/testdata/test-all-usage-vpc-gw-dh-cpusage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
DHCP configuration allows you to set parameters for assignment of IP addresses to devices on a Private Network attached to a VPC Public Gateway (subnet, lease time etc).
3+
These objects define a DHCP configuration, i.e. how IP addresses should be assigned to devices on a Private Network attached to a Public Gateway. Definable parameters include the subnet for the DHCP server, the validity period for DHCP entries, whether to use dynamic pooling, and more. A DHCP configuration object has a DHCP ID, which can then be used as part of a call to create or update a Gateway Network. This lets you attach an existing DHCP configuration to a Public Gateway attached to a Private Network. Similarly, you can use a DHCP ID as a query parameter to list Gateway Networks which use this DHCP configuration object.
44

55
USAGE:
66
scw vpc-gw dhcp <command>

cmd/scw/testdata/test-all-usage-vpc-gw-dhcp-create-usage.golden

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Create a DHCP configuration.
3+
Create a new DHCP configuration object, containing settings for the assignment of IP addresses to devices on a Private Network attached to a Public Gateway. The response object includes the ID of the DHCP configuration object. You can use this ID as part of a call to `Create a Public Gateway connection to a Private Network` or `Update a Public Gateway connection to a Private Network` to directly apply this DHCP configuration.
44

55
USAGE:
66
scw vpc-gw dhcp create [arg=value ...]
77

88
ARGS:
99
[project-id] Project ID to use. If none is passed the default project ID will be used
1010
subnet Subnet for the DHCP server
11-
[address] Address of the DHCP server. This will be the gateway's address in the private network. Defaults to the first address of the subnet
12-
[pool-low] Low IP (included) of the dynamic address pool
13-
[pool-high] High IP (included) of the dynamic address pool
14-
[enable-dynamic] Whether to enable dynamic pooling of IPs
11+
[address] IP address of the DHCP server. This will be the gateway's address in the Private Network. Defaults to the first address of the subnet
12+
[pool-low] Low IP (inclusive) of the dynamic address pool. Must be in the config's subnet. Defaults to the second address of the subnet
13+
[pool-high] High IP (inclusive) of the dynamic address pool. Must be in the config's subnet. Defaults to the last address of the subnet
14+
[enable-dynamic] Defines whether to enable dynamic pooling of IPs. When false, only pre-existing DHCP reservations will be handed out. Defaults to true
1515
[valid-lifetime.seconds]
1616
[valid-lifetime.nanos]
1717
[renew-timer.seconds]
1818
[renew-timer.nanos]
1919
[rebind-timer.seconds]
2020
[rebind-timer.nanos]
21-
[push-default-route] Whether the gateway should push a default route to DHCP clients or only hand out IPs. Defaults to true
22-
[push-dns-server] Whether the gateway should push custom DNS servers to clients
23-
[dns-servers-override.{index}] Override the DNS server list pushed to DHCP clients, instead of the gateway itself
24-
[dns-search.{index}] Additional DNS search paths
25-
[dns-local-name] TLD given to hosts in the Private Network
21+
[push-default-route] Defines whether the gateway should push a default route to DHCP clients or only hand out IPs. Defaults to true
22+
[push-dns-server] Defines whether the gateway should push custom DNS servers to clients. This allows for Instance hostname -> IP resolution. Defaults to true
23+
[dns-servers-override.{index}] Array of DNS server IP addresses used to override the DNS server list pushed to DHCP clients, instead of the gateway itself
24+
[dns-search.{index}] Array of search paths in addition to the pushed DNS configuration
25+
[dns-local-name] TLD given to hostnames in the Private Network. Allowed characters are `a-z0-9-.`. Defaults to the slugified Private Network name if created along a GatewayNetwork, or else to `priv`
2626
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-1 | pl-waw-2)
2727

2828
FLAGS:

cmd/scw/testdata/test-all-usage-vpc-gw-dhcp-delete-usage.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Delete a DHCP configuration.
3+
Delete a DHCP configuration object, identified by its DHCP ID. Note that you cannot delete a DHCP configuration object that is currently being used by a Gateway Network.
44

55
USAGE:
66
scw vpc-gw dhcp delete <dhcp-id ...> [arg=value ...]
77

88
ARGS:
9-
dhcp-id DHCP config id to delete
9+
dhcp-id DHCP configuration ID to delete
1010
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-1 | pl-waw-2)
1111

1212
FLAGS:

cmd/scw/testdata/test-all-usage-vpc-gw-dhcp-entry-create-usage.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Create a static DHCP reservation.
3+
Create a static DHCP reservation, specifying the Gateway Network for the reservation, the MAC address of the target device and the IP address to assign this device. The response is a DHCP entry object, confirming the ID and configuration details of the static DHCP reservation.
44

55
USAGE:
66
scw vpc-gw dhcp-entry create [arg=value ...]
77

88
ARGS:
99
[gateway-network-id] GatewayNetwork on which to create a DHCP reservation
1010
[mac-address] MAC address to give a static entry to
11-
[ip-address] IP address to give to the machine
11+
[ip-address] IP address to give to the device
1212
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-1 | pl-waw-2)
1313

1414
FLAGS:

cmd/scw/testdata/test-all-usage-vpc-gw-dhcp-entry-delete-usage.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Delete a DHCP reservation.
3+
Delete a static DHCP reservation, identified by its DHCP entry ID. Note that you cannot delete DHCP entries of type `lease`, these are deleted automatically when their time-to-live expires.
44

55
USAGE:
66
scw vpc-gw dhcp-entry delete <dhcp-entry-id ...> [arg=value ...]
77

88
ARGS:
9-
dhcp-entry-id DHCP entry ID to delete
9+
dhcp-entry-id ID of the DHCP entry to delete
1010
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-1 | pl-waw-2)
1111

1212
FLAGS:

cmd/scw/testdata/test-all-usage-vpc-gw-dhcp-entry-get-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Get DHCP entries.
3+
Get a DHCP entry, specified by its DHCP entry ID.
44

55
USAGE:
66
scw vpc-gw dhcp-entry get <dhcp-entry-id ...> [arg=value ...]

cmd/scw/testdata/test-all-usage-vpc-gw-dhcp-entry-list-usage.golden

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
List DHCP entries.
3+
List DHCP entries, whether dynamically assigned and/or statically reserved. DHCP entries can be filtered by the Gateway Network they are on, their MAC address, IP address, type or hostname.
44

55
USAGE:
66
scw vpc-gw dhcp-entry list [arg=value ...]
77

88
ARGS:
99
[order-by] Order in which to return results (created_at_asc | created_at_desc | ip_address_asc | ip_address_desc | hostname_asc | hostname_desc)
10-
[gateway-network-id] Filter entries based on the gateway network they are on
11-
[mac-address] Filter entries on their MAC address
12-
[ip-address] Filter entries on their IP address
13-
[hostname] Filter entries on their hostname substring
14-
[type] Filter entries on their type (unknown | reservation | lease)
10+
[gateway-network-id] Filter for entries on this GatewayNetwork
11+
[mac-address] Filter for entries with this MAC address
12+
[ip-address] Filter for entries with this IP address
13+
[hostname] Filter for entries with this hostname substring
14+
[type] Filter for entries of this type (unknown | reservation | lease)
1515
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-1 | pl-waw-2 | all)
1616

1717
FLAGS:

cmd/scw/testdata/test-all-usage-vpc-gw-dhcp-entry-set-usage.golden

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Set the list of DHCP reservations attached to a Gateway Network. Reservations are identified by their MAC address, and will sync the current DHCP entry list to the given list, creating, updating or deleting DHCP entries.
3+
Set the list of DHCP reservations attached to a Gateway Network. Reservations are identified by their MAC address, and will sync the current DHCP entry list to the given list, creating, updating or deleting DHCP entries accordingly.
44

55
USAGE:
66
scw vpc-gw dhcp-entry set [arg=value ...]
77

88
ARGS:
9-
[gateway-network-id] Gateway Network on which to set DHCP reservation list
9+
[gateway-network-id] ID of the Gateway Network on which to set DHCP reservation list
1010
[dhcp-entries.{index}.mac-address] MAC address to give a static entry to
11-
[dhcp-entries.{index}.ip-address] IP address to give to the machine
11+
[dhcp-entries.{index}.ip-address] IP address to give to the device
1212
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-1 | pl-waw-2)
1313

1414
FLAGS:

cmd/scw/testdata/test-all-usage-vpc-gw-dhcp-entry-update-usage.golden

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Update a DHCP entry.
3+
Update the IP address for a DHCP entry, specified by its DHCP entry ID. You can update an existing DHCP entry of any type (`reservation` (static), `lease` (dynamic) or `unknown`), but in manually updating the IP address the entry will necessarily be of type `reservation` after the update.
44

55
USAGE:
66
scw vpc-gw dhcp-entry update <dhcp-entry-id ...> [arg=value ...]
77

88
ARGS:
9-
dhcp-entry-id DHCP entry ID to update
10-
[ip-address] New IP address to give to the machine
9+
dhcp-entry-id ID of the DHCP entry to update
10+
[ip-address] New IP address to give to the device
1111
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-1 | pl-waw-2)
1212

1313
FLAGS:

cmd/scw/testdata/test-all-usage-vpc-gw-dhcp-entry-usage.golden

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
DHCP entries hold both dynamic DHCP leases (IP addresses dynamically assigned by the gateway to instances) and static user-created DHCP reservations.
3+
DHCP entries belong to a specified Gateway Network (Public Gateway / Private Network connection). A DHCP entry can hold either a dynamic DHCP lease (an IP address dynamically assigned by the Public Gateway to a device) or a static, user-created DHCP reservation.
44

55
USAGE:
66
scw vpc-gw dhcp-entry <command>
77

88
AVAILABLE COMMANDS:
9-
create Create a static DHCP reservation
10-
delete Delete a DHCP reservation
11-
get Get DHCP entries
9+
create Create a DHCP entry
10+
delete Delete a DHCP entry
11+
get Get a DHCP entry
1212
list List DHCP entries
1313
set Set all DHCP reservations on a Gateway Network
1414
update Update a DHCP entry

0 commit comments

Comments
 (0)