@@ -11222,7 +11222,7 @@ paths:
11222
11222
Rebuilds a NodeBalancer Config and its Nodes that you have
11223
11223
permission to modify.
11224
11224
operationId: rebuildNodeBalancerConfig
11225
- x-linode-cli-action: rebuild
11225
+ x-linode-cli-action: config- rebuild
11226
11226
security:
11227
11227
- personalAccessToken: []
11228
11228
- oauth:
@@ -11234,33 +11234,24 @@ paths:
11234
11234
content:
11235
11235
application/json:
11236
11236
schema:
11237
- properties:
11238
- configs:
11239
- type: array
11240
- description: >
11241
- Each config must have a unique port and at least one Node. Additionally:
11242
- * Current Nodes excluded from the request body will be deleted.
11243
- * Current Nodes (identified by their ID) will be updated.
11244
- * New Nodes (included without an ID) will be created.
11245
- items:
11246
- allOf:
11247
- - $ref: '#/components/schemas/NodeBalancerConfig'
11248
- - type: object
11249
- properties:
11250
- nodes:
11251
- type: array
11252
- description: >
11253
- The NodeBalancer Node(s) that serve this port.
11254
- At least one Node is required per configured port.
11237
+ allOf:
11238
+ - $ref: "#/components/schemas/NodeBalancerConfig"
11239
+ - type: object
11240
+ properties:
11241
+ nodes:
11242
+ type: array
11243
+ description: >
11244
+ The NodeBalancer Node(s) that serve this port.
11245
+ At least one Node is required per configured port.
11255
11246
11256
- Some considerations for Nodes when rebuilding a config:
11257
- * Current Nodes excluded from the request body will be deleted.
11258
- * Current Nodes (identified by their ID) will be updated.
11259
- * New Nodes (included without an ID) will be created.
11260
- items:
11261
- type: object
11262
- allOf:
11263
- - $ref: '#/components/schemas/NodeBalancerNode'
11247
+ Some considerations for Nodes when rebuilding a config:
11248
+ * Current Nodes excluded from the request body will be deleted.
11249
+ * Current Nodes (identified by their ID) will be updated.
11250
+ * New Nodes (included without an ID) will be created.
11251
+ items:
11252
+ type: object
11253
+ allOf:
11254
+ - $ref: '#/components/schemas/NodeBalancerNode'
11264
11255
responses:
11265
11256
'200':
11266
11257
description: NodeBalancer created successfully.
@@ -11291,15 +11282,14 @@ paths:
11291
11282
"cipher_suite": "recommended",
11292
11283
"nodes": [
11293
11284
{
11294
- "id": 543231,
11295
11285
"address": "192.168.210.120:80",
11296
- "label": "node54321 ",
11286
+ "label": "node1 ",
11297
11287
"weight": 50,
11298
11288
"mode": "accept"
11299
11289
},
11300
11290
{
11301
11291
"address": "192.168.210.122:81",
11302
- "label": "thenewnode ",
11292
+ "label": "node2 ",
11303
11293
"weight": 50,
11304
11294
"mode": "accept"
11305
11295
},
@@ -11322,7 +11312,9 @@ paths:
11322
11312
--check_body "it works" \
11323
11313
--check_passive true \
11324
11314
--proxy_protocol "v1" \
11325
- --cipher_suite recommended
11315
+ --cipher_suite recommended \
11316
+ --nodes '{"address":"192.168.210.120:80","label":"node1","weight":50,"mode":"accept"}' \
11317
+ --nodes '{"address":"192.168.210.122:80","label":"node2","weight":50,"mode":"accept"}'
11326
11318
/nodebalancers/{nodeBalancerId}/configs/{configId}/nodes:
11327
11319
parameters:
11328
11320
- name: nodeBalancerId
0 commit comments