File: parameters.yaml

package info (click to toggle)
magnum 21.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 6,976 kB
  • sloc: python: 33,785; sh: 16,800; makefile: 75
file content (609 lines) | stat: -rw-r--r-- 17,616 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
# Header params
request_id:
  type: UUID
  in: header
  required: true
  description: |
    A unique ID for tracking service request. The request ID associated
    with the request by default appears in the service logs.

# Path params
ca_cert_type:
  type: string
  in: path
  required: false
  description: |
    The CA certificate type. For Kubernetes, it could be kubelet, etcd or front-proxy.
cluster_ident:
  type: string
  in: path
  required: true
  description: |
    The UUID or name of clusters in Magnum.
clustertemplate_ident:
  type: string
  in: path
  required: true
  description: |
    The UUID or name of cluster templates in Magnum.
project_id:
  type: string
  in: path
  required: true
  description: |
    Project ID.

# Body params
api_address:
  description: |
    The endpoint URL of COE API exposed to end-users.
  in: body
  format: uri
  required: true
  type: string
apiserver_port:
  type: integer
  in: body
  required: true
  description: |
    The exposed port of COE API server.
binary:
  type: string
  in: body
  required: true
  description: |
    The name of the binary form of the Magnum service.
cluster_distro:
  type: string
  in: body
  required: true
  description: |
    Display the attribute ``os_distro`` defined as appropriate metadata in
    image for the cluster driver.
cluster_id:
  type: UUID
  in: body
  required: true
  description: |
    The UUID of the cluster.
cluster_list:
  type: array
  in: body
  required: true
  description: |
    The list of all clusters in Magnum.
clusters:
  type: integer
  in: body
  required: true
  description: |
    The number of clusters.
clustertemplate_id:
  type: UUID
  in: body
  required: true
  description: |
    The UUID of the cluster template.
clustertemplate_list:
  type: array
  in: body
  required: true
  description: |
    The list of all cluster templates in Magnum.
coe:
  type: string
  in: body
  required: true
  description: |
    Specify the Container Orchestration Engine to use. Supported COEs
    include ``kubernetes``. If your environment has additional cluster drivers
    installed, refer to the cluster driver documentation for the new COE names.
coe_version:
  type: string
  in: body
  required: true
  description: |
    Version info of chosen COE in cluster for helping client in picking
    the right version of client.
create_timeout:
  type: integer
  in: body
  required: true
  description: |
    The timeout for cluster creation in minutes. The value expected is a
    positive integer and the default is 60 minutes. If the timeout is reached
    during cluster creation process, the operation will be aborted and the
    cluster status will be set to ``CREATE_FAILED``.
created_at:
  description: |
    The date and time when the resource was created.

    The date and time stamp format is `ISO 8601
    <https://en.wikipedia.org/wiki/ISO_8601>`_:

    ::

       CCYY-MM-DDThh:mm:ss±hh:mm

    For example, ``2015-08-27T09:49:58-05:00``.

    The ``±hh:mm`` value, if included, is the time zone as an offset
    from UTC.
  in: body
  required: true
  type: string
csr:
  description: |
    Certificate Signing Request (CSR) for authenticating client key.

    The CSR will be used by Magnum to generate a signed certificate
    that client will use to communicate with the Bay/Cluster.
  in: body
  required: true
  type: string
description:
  description: |
    Descriptive text about the Magnum service.
  in: body
  required: true
  type: string
disabled_reason:
  description: |
    The disable reason of the service, ``null`` if the service is enabled or
    disabled without reason provided.
  in: body
  required: true
  type: string
discovery_url:
  description: |
    The custom discovery url for node discovery. This is used by the COE to
    discover the servers that have been created to host the containers. The
    actual discovery mechanism varies with the COE. In some cases, Magnum fills
    in the server info in the discovery service. In other cases, if the
    ``discovery_url`` is not specified, Magnum will use the public discovery
    service at:

    ::

       https://discovery.etcd.io

    In this case, Magnum will generate a unique url here for each uster and
    store the info for the servers.
  in: body
  format: uri
  required: true
  type: string
dns_nameserver:
  description: |
    The DNS nameserver for the servers and containers in the cluster to
    use. This is configured in the private Neutron network for the cluster.
    The default is ``8.8.8.8``.
  in: body
  required: true
  type: string
docker_storage_driver:
  description: |
    The name of a driver to manage the storage for the images and the
    container's writable layer. The default is ``devicemapper``.
  in: body
  required: true
  type: string
docker_volume_size:
  description: |
    The size in GB for the local storage on each server for the Docker daemon
    to cache the images and host the containers. Cinder volumes provide the
    storage. The default is 25 GB. For the ``devicemapper`` storage driver,
    the minimum value is 3GB. For the ``overlay`` storage driver, the minimum
    value is 1GB.
  in: body
  required: true
  type: integer
external_network_id:
  description: |
    The name or network ID of a Neutron network to provide connectivity to the
    external internet for the cluster. This network must be an external
    network, i.e. its attribute ``router:external`` must be ``True``. The
    servers in the cluster will be connected to a private network and
    Magnum will create a router between this private network and the external
    network. This will allow the servers to download images, access discovery
    service, etc, and the containers to install packages, etc. In the opposite
    direction, floating IPs will be allocated from the external network to
    provide access from the external internet to servers and the container
    services hosted in the cluster.
  in: body
  required: true
  type: string
fixed_network:
  description: |
    The name or network ID of a Neutron network to provide connectivity to
    the internal network for the cluster.
  in: body
  required: false
  type: string
fixed_subnet:
  description: |
    Fixed subnet that are using to allocate network address for nodes in
    cluster.
  in: body
  required: false
  type: string
flavor_id:
  description: |
    The nova flavor ID or name for booting the node servers. The default is
    ``m1.small``.
  in: body
  required: true
  type: string
floating_ip_enabled:
  description: |
    Whether enable or not using the floating IP of cloud provider. Some
    cloud providers used floating IP, some used public IP, thus Magnum
    provide this option for specifying the choice of using floating IP.
  in: body
  required: true
  type: boolean
floating_ip_enabled_cluster:
  description: |
    Whether enable or not using the floating IP of cloud provider. Some
    cloud providers used floating IP, some used public IP, thus Magnum
    provide this option for specifying the choice of using floating IP.
    If it's not set, the value of floating_ip_enabled in template
    will be used.
  in: body
  required: false
  type: boolean
hidden:
  description: |
    Indicates whether the ClusterTemplate is hidden or not, the default
    value is false.
  in: body
  required: false
  type: boolean
host:
  description: |
    The host for the service.
  in: body
  required: true
  type: string
http_proxy:
  description: |
    The IP address for a proxy to use when direct http access from the servers
    to sites on the external internet is blocked. This may happen in certain
    countries or enterprises, and the proxy allows the servers and
    containers to access these sites. The format is a URL including a port
    number. The default is ``None``.
  in: body
  required: false
  type: string
https_proxy:
  description: |
    The IP address for a proxy to use when direct https access from the
    servers to sites on the external internet is blocked. This may happen in
    certain countries or enterprises, and the proxy allows the servers and
    containers to access these sites. The format is a URL including a port
    number. The default is ``None``.
  in: body
  required: false
  type: string
id_s:
  description: |
    The ID of the Magnum service.
  in: body
  required: true
  type: string
image_id:
  description: |
    The name or UUID of the base image in Glance to boot the servers for the
    cluster. The image must have the attribute ``os_distro`` defined as
    appropriate for the cluster driver.
  in: body
  required: true
  type: string
insecure_registry:
  description: |
    The URL pointing to users's own private insecure docker registry to
    deploy and run docker containers.
  in: body
  required: true
  type: string
keypair_id:
  description: |
    The name of the SSH keypair to configure in the cluster servers
    for ssh access. Users will need the key to be able to ssh to the servers in
    the cluster. The login name is specific to the cluster driver, for
    example with fedora-atomic image, default login name is ``fedora``.
  in: body
  required: true
  type: string
labels:
  description: |
    Arbitrary labels in the form of ``key=value`` pairs. The accepted keys and
    valid values are defined in the cluster drivers. They are used as a way
    to pass additional parameters that are specific to a cluster driver.
  in: body
  required: false
  type: array
links:
  description: |
    Links to the resources in question.
  in: body
  required: true
  type: array
master_addresses:
  description: |
    List of floating IP of all master nodes.
  in: body
  required: true
  type: array
master_count:
  description: |
    The number of servers that will serve as master for the cluster. The
    default is 1. Set to more than 1 master to enable High Availability. If
    the option ``master-lb-enabled`` is specified in the cluster
    template, the master servers will be placed in a load balancer pool.
  in: body
  required: true
  type: integer
master_flavor_id:
  description: |
    The flavor of the master node for this cluster template.
  in: body
  required: false
  type: string
master_lb_enabled:
  description: |
    Since multiple masters may exist in a cluster, a Neutron load balancer
    is created to provide the API endpoint for the cluster and to direct
    requests to the masters. In some cases, such as when the LBaaS service is
    not available, this option can be set to ``false`` to create a cluster
    without the load balancer. In this case, one of the masters will serve as
    the API endpoint. The default is ``true``, i.e. to create the load
    balancer for the cluster.
  in: body
  required: true
  type: boolean
master_lb_enabled_cluster:
  description: |
    Since multiple masters may exist in a cluster, a Neutron load balancer
    is created to provide the API endpoint for the cluster and to direct
    requests to the masters. In some cases, such as when the LBaaS service is
    not available, this option can be set to ``false`` to create a cluster
    without the load balancer. In this case, one of the masters will serve as
    the API endpoint. The default is ``true``, i.e. to create the load
    balancer for the cluster.
  in: body
  required: false
  type: boolean
max_batch_size:
  description: |
    The max batch size each time when doing upgrade, default value is 1
  in: body
  required: false
  type: int
mservices:
  description: |
    A list of Magnum services.
  in: body
  required: true
  type: array
name:
  description: |
    Name of the resource.
  in: body
  required: true
  type: string
network_driver:
  description: |
    The name of a network driver for providing the networks for the containers.
    Note that this is different and separate from the Neutron network for the
    cluster. The operation and networking model are specific to the
    particular driver.
  in: body
  required: true
  type: string
no_proxy:
  description: |
    When a proxy server is used, some sites should not go through the proxy
    and should be accessed normally. In this case, users can specify these
    sites as a comma separated list of IPs. The default is ``None``.
  in: body
  required: false
  type: string
node_addresses:
  description: |
    List of floating IP of all servers that serve as node.
  in: body
  required: true
  type: array
node_count:
  description: |
    The number of servers that will serve as node in the cluster. The
    default is 1.
  in: body
  required: true
  type: integer
nodegroup:
  description: |
    The ID of node group. A node group is a subset of node instances within
    a cluster that all have the same configuration.
  in: body
  required: false
  type: string
nodes:
  description: |
    The total number of nodes including master nodes.
  in: body
  required: true
  type: integer
nodes_to_remove:
  description: |
    The server ID list will be removed.
  in: body
  required: false
  type: array
op:
  description: |
    The operation used to modify resource's attributes. Supported operations
    are following: ``add``, ``replace`` and ``remove``. In case of
    ``remove``, users only need to provide ``path`` for deleting attribute.
  in: body
  required: true
  type: string
path:
  description: |
    Resource attribute's name.
  in: body
  required: true
  type: string
pem:
  description: |
    CA certificate for the cluster.
  in: body
  required: true
  type: string
public_type:
  description: |
    Access to a cluster template is normally limited to the admin,
    owner or users within the same tenant as the owners. Setting this flag
    makes the cluster template public and accessible by other users.
    The default is not public.
  in: body
  required: true
  type: boolean
registry_enabled:
  description: |
    Docker images by default are pulled from the public Docker registry,
    but in some cases, users may want to use a private registry. This option
    provides an alternative registry based on the Registry V2: Magnum will
    create a local registry in the cluster backed by swift to host the
    images. The default is to use the public registry.
  in: body
  required: false
  type: boolean
report_count:
  description: |
    The total number of report.
  in: body
  required: true
  type: integer
server_type:
  description: |
    The servers in the cluster can be ``vm`` or ``baremetal``. This
    parameter selects the type of server to create for the cluster.
    The default is ``vm``.
  in: body
  required: true
  type: string
stack_id:
  description: |
    The reference UUID of orchestration stack from Heat orchestration service.
  in: body
  required: true
  type: UUID
state:
  description: |
    The current state of Magnum services.
  in: body
  required: true
  type: string
status:
  description: |
    The current state of the cluster.
  in: body
  required: true
  type: string
status_reason:
  description: |
    The reason of cluster current status.
  in: body
  required: true
  type: string
tags:
  description: |
    Administrator tags for the cluster template.
  in: body
  required: false
  type: array
tls_disabled:
  description: |
    Transport Layer Security (TLS) is normally enabled to secure the
    cluster. In some cases, users may want to disable TLS in the
    cluster, for instance during development or to troubleshoot certain
    problems. Specifying this parameter will disable TLS so that users can
    access the COE endpoints without a certificate. The default is TLS enabled.
  in: body
  required: true
  type: boolean
updated_at:
  description: |
    The date and time when the resource was updated.

    The date and time stamp format is `ISO 8601
    <https://en.wikipedia.org/wiki/ISO_8601>`_:

    ::

       CCYY-MM-DDThh:mm:ss±hh:mm

    For example, ``2015-08-27T09:49:58-05:00``.

    The ``±hh:mm`` value, if included, is the time zone as an offset
    from UTC. In the previous example, the offset value is ``-05:00``.

    If the ``updated_at`` date and time stamp is not set, its value is
    ``null``.
  in: body
  required: true
  type: string
value:
  description: |
    Resource attribute's value.
  in: body
  required: true
  type: string
version:
  description: |
    The version.
  in: body
  required: true
  type: string
version_id:
  type: string
  in: body
  required: true
  description: >
    A common name for the version in question. Informative only, it
    has no real semantic meaning.
version_max:
  type: string
  in: body
  required: true
  description: >
    If this version of the API supports microversions, the maximum
    microversion that is supported. This will be the empty string if
    microversions are not supported.
version_min:
  type: string
  in: body
  required: true
  description: >
    If this version of the API supports microversions, the minimum
    microversion that is supported. This will be the empty string if
    microversions are not supported.
version_status:
  type: string
  in: body
  required: true
  description: |
    The status of this API version. This can be one of:

    - ``CURRENT``: this is the preferred version of the API to use
    - ``SUPPORTED``: this is an older, but still supported version of the API
    - ``DEPRECATED``: a deprecated version of the API that is slated for removal
volume_driver:
  type: string
  in: body
  required: true
  description: >
    The name of a volume driver for managing the persistent storage for
    the containers. The functionality supported are specific to the driver.