Skip to content

Commit 5781f8a

Browse files
authored
droplets, autoscale_pools: add optional public_networking bool to create request (#1148)
* droplets: add optional public_networking bool to create request * autoscale_pools: add optional public_networking bool to create request
1 parent e0cebf7 commit 5781f8a

3 files changed

Lines changed: 30 additions & 0 deletions

File tree

specification/resources/autoscale_pools/models/autoscale_pool_droplet_template.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,19 @@ properties:
9090
description: A string containing user data that cloud-init consumes to configure a Droplet on first boot.
9191
User data is often a cloud-config file or Bash script. It must be plain text and may not exceed 64 KiB in size.
9292

93+
public_networking:
94+
type: boolean
95+
example: true
96+
default: true
97+
description: An optional boolean indicating whether the Droplets should be created with
98+
public networking or not.
99+
By default, all Droplets are created with public networking available.
100+
If explicitly set to `false`, only private networking will be enabled,
101+
and public networking will be disabled; currently this means that it will
102+
not have any public static or Reserved IPv4 or IPv6 address, nor can one
103+
be assigned later.
104+
If explicitly set to `false`, `ipv6` must also be `false`.
105+
93106
required:
94107
- region
95108
- image

specification/resources/autoscale_pools/responses/examples.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ autoscale_pools_all:
2020
vpc_uuid: 760e09ef-dc84-11e8-981e-3cfdfeaae000
2121
with_droplet_agent: true
2222
project_id: 746c6152-2fa2-11ed-92d3-27aaa54e4988
23+
public_networking: true
2324
ipv6: true
2425
user_data: "#cloud-config\nruncmd:\n - touch /test.txt\n"
2526
created_at: 2020-11-19T20:27:18Z
@@ -55,6 +56,7 @@ autoscale_pool_single:
5556
vpc_uuid: 760e09ef-dc84-11e8-981e-3cfdfeaae000
5657
with_droplet_agent: true
5758
project_id: 746c6152-2fa2-11ed-92d3-27aaa54e4988
59+
public_networking: true
5860
ipv6: true
5961
user_data: "#cloud-config\nruncmd:\n - touch /test.txt\n"
6062
created_at: 2020-11-19T20:27:18Z
@@ -115,6 +117,7 @@ autoscale_create_response_dynamic:
115117
vpc_uuid: 760e09ef-dc84-11e8-981e-3cfdfeaae000
116118
with_droplet_agent: true
117119
project_id: 746c6152-2fa2-11ed-92d3-27aaa54e4988
120+
public_networking: true
118121
ipv6: true
119122
user_data: "#cloud-config\nruncmd:\n - touch /test.txt\n"
120123
created_at: 2020-11-19T20:27:18Z
@@ -140,6 +143,7 @@ autoscale_create_response_static:
140143
vpc_uuid: 760e09ef-dc84-11e8-981e-3cfdfeaae000
141144
with_droplet_agent: true
142145
project_id: 746c6152-2fa2-11ed-92d3-27aaa54e4988
146+
public_networking: true
143147
ipv6: true
144148
user_data: "#cloud-config\nruncmd:\n - touch /test.txt\n"
145149
created_at: 2020-11-19T20:27:18Z

specification/resources/droplets/models/droplet_create.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,19 @@ properties:
124124
set to `false`. To make installation errors fatal, explicitly set it
125125
to `true`.
126126

127+
public_networking:
128+
type: boolean
129+
example: true
130+
default: true
131+
description: An optional boolean indicating whether this Droplet should be created with
132+
public networking or not.
133+
By default, all Droplets are created with public networking available.
134+
If explicitly set to `false`, only private networking will be enabled,
135+
and public networking will be disabled; currently this means that it will
136+
not have any public static or Reserved IPv4 or IPv6 address, nor can one
137+
be assigned later.
138+
If explicitly set to `false`, `ipv6` must also be `false`.
139+
127140
required:
128141
- size
129142
- image

0 commit comments

Comments
 (0)