summaryrefslogtreecommitdiff
path: root/api-ref/source/v2/metadefs-parameters.yaml
blob: 9a58aa8391d208c301a6c56648056c010dd6cca4 (plain)
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
# variables in header
Content-Type-json:
  description: |
    The media type descriptor for the request body.  Use
    ``application/json``.
  in: header
  required: true
  type: string
Location:
  description: |
    The newly-created URI for the namespace.
  in: header
  required: true
  type: string

# variables in path
name:
  description: |
    Name of the resource type. A Name is limited to 80 chars in length.
  in: path
  required: true
  type: string
namespace_name:
  description: |
    The name of the namespace whose details you want to see.  (The name is the
    value of a namespace's ``namespace`` field.)
  in: path
  required: true
  type: string
object_name:
  description: |
    The name of the object.
  in: path
  required: true
  type: string
property_name:
  description: |
    The name of the property.
  in: path
  required: true
  type: string
resource_type_name:
  description: |
    The name of the resource type.
  in: path
  required: true
  type: string
tag_name:
  description: |
    The name of the tag. A Name is limited to 80 chars in length.
  in: path
  required: true
  type: string

# variables in query
limit:
  description: |
    Requests a page size of items. Returns a number of items up to a limit
    value. Use the ``limit`` parameter to make an initial limited request and
    use the ID of the last-seen item from the response as the ``marker``
    parameter value in a subsequent limited request.
  in: query
  required: false
  type: integer
limit-tags:
  description: |
    Requests a page size of tags. Returns a number of tags up to a limit
    value. Use the ``limit`` parameter to make an initial limited request and
    use the name of the last-seen tag from the response as the ``marker``
    parameter value in a subsequent limited request.
  in: query
  required: false
  type: integer
marker:
  description: |
    Allows specification of a *namespace identifier*.  When present, only
    namespaces occurring after that namespace will be listed, that is,
    those namespaces having a ``sort_key`` later than that of the marker
    in the ``sort_dir`` direction.
  in: query
  required: false
  type: string
marker-tags:
  description: |
    Allows specification of a tag name.  When present, only tags occurring
    *after* the named tag will be listed, that is, those namespaces having a
    ``sort_key`` later than that of the marker in the ``sort_dir`` direction.
  in: query
  required: false
  type: string
resource_type-in-query:
  description: |
    Filters the response by property names that start with a prefix from an
    associated resource type.  The API removes the prefix of the resource type
    from the property name in the response.
  in: query
  required: false
  type: string
resource_type-in-query-namespace-detail:
  description: |
    Apply the prefix for the specified resource type to the names of the
    properties listed in the response.  If the resource type specified does not
    have an association with this namespace, or if the resource type is
    associated but does not have a prefix defined in this namespace, this
    parameter is ignored.
  in: query
  required: false
  type: string
resource_types-in-query:
  description: |
    Filters the response to include only those namespaces that contain the
    specified resource type or types as resource type associations.  Use the
    comma (``,``) character to separate multiple values. For example,
    ``OS::Glance::Image,OS::Nova::Flavor`` shows only namespaces associated
    with these resource types.
  in: query
  required: false
  type: integer
sort_dir:
  description: |
    Sorts the response.  Use ``asc`` for ascending or ``desc`` for descending
    order.  The default is ``desc``.
  in: query
  required: false
  type: string
sort_key:
  description: |
    Sorts the response by an attribute.  Accepted values are ``namespace``,
    ``created_at``, and ``updated_at``. Default is ``created_at``.
  in: query
  required: false
  type: string
sort_key-tags:
  description: |
    Sorts the response by an attribute.  Accepted values are ``name``,
    ``created_at``, and ``updated_at``. Default is ``created_at``.
  in: query
  required: false
  type: string
visibility-in-query:
  description: |
    Filters the response by a namespace visibility value.  A valid value is
    ``public`` or ``private``. If you omit this parameter, the response shows
    both ``public`` and ``private`` namespaces.
  in: query
  required: false
  type: string

# variables in body
additionalItems:
  description: |
    Describes extra items, if you use tuple typing.  If the value of ``items``
    is an array (tuple typing) and the instance is longer than the list of
    schemas in ``items``, the additional items are described by the schema in
    this property.  If this value is ``false``, the instance cannot be longer
    than the list of schemas in ``items``.  If this value is ``true``, that is
    equivalent to the empty schema (anything goes).
  in: body
  required: false
  type: string
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>`_.
  in: body
  required: true
  type: string
default:
  description: |
    Default property description.
  in: body
  required: false
  type: string
description:
  description: |
    The description of the namespace.
  in: body
  required: false
  type: string
display_name:
  description: |
    User-friendly name to use in a UI to display the namespace name.
  in: body
  required: false
  type: string
enum:
  description: |
    Enumerated list of property values.
  in: body
  required: true
  type: array
enum-in-request:
  description: |
    Enumerated list of property values.
  in: body
  required: false
  type: array
first:
  description: |
    The URI for the first page of response.
  in: body
  required: true
  type: string
hypervisor_type:
  description: |
    Hypervisor type of property values.
  in: body
  required: true
  type: object
items:
  description: |
    Schema for the items in an array.
  in: body
  required: false
  type: string
maximum:
  description: |
    Maximum allowed numerical value.
  in: body
  required: false
  type: string
maxItems:
  description: |
    Maximum length of an array.
  in: body
  required: false
  type: string
maxLength:
  description: |
    Maximum allowed string length.
  in: body
  required: false
  type: string
minimum:
  description: |
    Minimum allowed numerical value.
  in: body
  required: false
  type: string
minItems:
  description: |
    Minimum length of an array.
  in: body
  required: false
  type: string
minLength:
  description: |
    Minimum allowed string length.
  in: body
  required: false
  type: string
name-property:
  description: |
    The name of the property. A Name is limited to 80 chars in length.
  in: body
  required: true
  type: string
name-resource-type:
  description: |
    Name of the resource type.
  in: body
  required: true
  type: string
name-tag:
  description: |
    The name of the tag. A Name is limited to 80 chars in length.
  in: body
  required: true
  type: string
namespace:
  description: |
    An identifier (a name) for the namespace.  The value must be unique across
    all users.
  in: body
  required: true
  type: string
namespaces:
  description: |
    A list of ``namespace`` objects.
  in: body
  required: true
  type: array
next:
  description: |
    The URI for the next page of response.  Will not be present on the last
    page of the response.
  in: body
  required: true
  type: string
object-description:
  description: |
    Detailed description of the object.
  in: body
  required: true
  type: string
object-description-in-request:
  description: |
    Detailed description of the object.
  in: body
  required: false
  type: string
object-name:
  description: |
    The name of the object, suitable for use as an identifier. A Name is
    limited to 80 chars in length.
  in: body
  required: true
  type: string
object-properties:
  description: |
    A set of key:value pairs, where each value is a *property* entity.
  in: body
  required: true
  type: object
object-properties-in-request:
  description: |
    A set of key:value pairs, where each value is a *property* entity.
  in: body
  required: false
  type: object
object-required:
  description: |
    A list of the names of properties that are required on this object.
  in: body
  required: true
  type: array
object-required-in-request:
  description: |
    A list of the names of properties that are required on this object.
  in: body
  required: false
  type: array
object-schema:
  description: |
    The URI of the JSON schema describing an *object*.
  in: body
  required: true
  type: string
objects:
  description: |
    One or more object definitions of the namespace.
  in: body
  required: true
  type: string
objects-namespace:
  description: |
    Namespace object definitions, if any.
  in: body
  required: false
  type: object
operators:
  description: |
    Operators property description.
  in: body
  required: false
  type: string
owner:
  description: |
    An identifier for the owner of this resource, usually the tenant ID.
  in: body
  required: true
  type: string
pattern:
  description: |
    A regular expression ( `ECMA 262
    <http://www.ecma-international.org/publications/standards/Ecma-262.htm>`_ )
    that a string value must match.
  in: body
  required: false
  type: string
prefix:
  description: |
    Prefix for any properties in the namespace that you want to apply to the
    resource type. If you specify a prefix, you must append a prefix separator,
    such as the colon (``:``) character.
  in: body
  required: false
  type: string
properties-dict:
  description: |
    A dictionary of key:value pairs, where each value is a *property* object as
    defined by the :ref:`Metadefs Property Schema <md-schema-property>`.
  in: body
  required: true
  type: object
properties-nonempty:
  description: |
    One or more property definitions for the
    namespace.
  in: body
  required: true
  type: object
properties-nullable:
  description: |
    Namespace property definitions, if any.
  in: body
  required: false
  type: object
properties_target:
  description: |
    Some resource types allow more than one key and value pair for each
    instance. For example, the Image service allows both user and image
    metadata on volumes. The ``properties_target`` parameter enables a
    namespace target to remove the ambiguity.
  in: body
  required: false
  type: string
property-description:
  description: |
    Detailed description of the property.
  in: body
  required: true
  type: string
property-description-in-request:
  description: |
    Detailed description of the property.
  in: body
  required: false
  type: string
protected:
  description: |
    Namespace protection for deletion, either ``true`` or ``false``.
  in: body
  required: true
  type: boolean
protected-in-request:
  description: |
    Namespace protection for deletion. A valid value is ``true`` or
    ``false``. Default is ``false``.
  in: body
  required: false
  type: boolean
readonly:
  description: |
    Indicates whether this is a read-only property.
  in: body
  required: false
  type: boolean
resource_type_associations:
  description: |
    A list, each element of which is described by the :ref:`Metadefs Resource
    Type Association Schema <md-schema-rt-assoc>`.
  in: body
  required: true
  type: array
resource_types-list:
  description: |
    A list of abbreviated *resource type* JSON objects, where each object
    contains the ``name`` of the resource type and its ``created_at``
    and ``updated_at`` timestamps in `ISO 8601 Format
    <https://en.wikipedia.org/wiki/ISO_8601>`_.
  in: body
  required: true
  type: array
schema-namespace:
  description: |
    The URI of the JSON schema describing a *namespace*.
  in: body
  required: true
  type: string
schema-namespaces:
  description: |
    The URI of the JSON schema describing a *namespaces* entity, that is, an
    entity consisting of a list of abbreviated namespace objects.
  in: body
  required: true
  type: string
self:
  description: |
    The URI for this resource.
  in: body
  required: true
  type: string
tag-name:
  description: |
    The name of the tag.
  in: body
  required: true
  type: string
tags:
  description: |
    A list of *tag* objects, where each object is defined by the
    :ref:`Metadefs Tag Schema <md-schema-tag>`.
  in: body
  required: true
  type: array
title:
  description: |
    The title of the property.
  in: body
  required: true
  type: string
type:
  description: |
    The property type.
  in: body
  required: true
  type: string
uniqueItems:
  description: |
    Indicates whether all values in the array must be distinct.
  in: body
  required: false
  type: string
updated_at:
  description: |
    The date and time when the resource was last updated.

    The date and time stamp format is `ISO 8601
    <https://en.wikipedia.org/wiki/ISO_8601>`_.
  in: body
  required: true
  type: string
visibility:
  description: |
    The namespace visibility, either ``public`` or ``private``.
  in: body
  required: true
  type: enum
visibility-in-request:
  description: |
    The namespace visibility. A valid value is ``public`` or ``private``.
    Default is ``private``.
  in: body
  required: false
  type: enum