Facebook
From Colorant Bison, 1 Year ago, written in Bash.
Embed
Download Paste or View Raw
Hits: 83
  1. md-namespace-create
  2.  
  3. example)
  4. $ glance md-namespace-create test-namespace
  5. +----------------+-----------------------------------------------------+
  6. | Property      | Value                                                       |
  7. +----------------+-----------------------------------------------------+
  8. | created_at   | 2022-06-23T01:30:45Z                          |
  9. | namespace | test-namespace                                      |
  10. | visibility       | private                                                     |
  11. +----------------+-----------------------------------------------------+
  12.  
  13.  
  14.  
  15. md-property-create
  16.  
  17. example)
  18. $ glance md-property-create FredCo::SomeCategory::Example --name property-create --title property-title --schema '
  19. {
  20.    "description": "test property",
  21.    "enum": [
  22.        "xen",
  23.        "qemu",
  24.        "kvm",
  25.        "lxc",
  26.        "uml",
  27.        "vmware",
  28.        "hyperv"
  29.    ],          
  30.    "type": "string"
  31. }'
  32. +----------------+-------------------------------------------------------------------------+
  33. | Property      | Value                                                                               |
  34. +----------------+-------------------------------------------------------------------------+
  35. | description  | test property                                                                     |
  36. | enum           | ["xen", "qemu", "kvm", "lxc", "uml", "vmware", "hyperv"] |
  37. | name           | property-create                                                               |
  38. | title              | property-title                                                                    |
  39. | type             | string                                                                               |
  40. +----------------+-------------------------------------------------------------------------+
  41.