dashboard.rst 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. Dashboard Mapping
  2. =================
  3. Cross-Platform Concepts
  4. -----------------------
  5. Given cloudbridge's goal to work uniformly across cloud providers, some
  6. compromises were necessary in order to bridge the many differences between
  7. providers' resources and features. Notably, in order to create a robust and
  8. conceptually consistent cross-cloud library, resources were given three main
  9. properties: ID, name, and label.
  10. The `ID` corresponds to a unique identifier that can be reliably used to
  11. reference a resource. Users can safely use an ID knowing that it will always
  12. point to the same resource.
  13. The `name` property corresponds to an unchangeable and unique designation for
  14. a particular resource. This property is meant to be, in some ways, a more
  15. human-readable identifier. However, when no conceptually comparable property
  16. exists for a given resource in a particular provider, the ID is returned
  17. instead, as is the case for OpenStack resources. When the name can be
  18. determined by a user at resource creation, either the name parameter will be
  19. used for resources that support it, or the label will be used, when provided
  20. as a prefix, with an appended uuid to ensure that the name remains unique.
  21. The `label` property, conversely, is a changeable value that does not need
  22. to be unique. Unlike the name property, it is not used to identify a
  23. particular resource, but rather label a resource for easier distinction. It
  24. is however important to note that not all resources support labels. When
  25. supported, labels given at creation will also be used as a prefix to the name.
  26. Properties per Resource per Provider
  27. ------------------------------------
  28. The sections below will present a summary table detailing the cloudbridge
  29. properties implemented for each resource, and their corresponding value in
  30. the provider's dashboard.
  31. Azure
  32. -----
  33. +-----------------------------------+-------+---------------+---------------+
  34. | CloudServiceType | CB_ID | CB_Name | CB_Label |
  35. +===================================+=======+===============+===============+
  36. | Instance | ID | Name | Tags:Label |
  37. +-----------------------------------+-------+---------------+---------------+
  38. | MachineImage (Private) | ID | Name | Tags:Label |
  39. | MachineImage (Gallery Reference) | URN | URN | URN |
  40. +-----------------------------------+-------+---------------+---------------+
  41. | Network | ID | Name | Tags:Label |
  42. +-----------------------------------+-------+---------------+---------------+
  43. | Subnet | ID | Name | Tags:Label |
  44. +-----------------------------------+-------+---------------+---------------+
  45. | FloatingIP | ID | Name | Tags:Label |
  46. +-----------------------------------+-------+---------------+---------------+
  47. | Router | ID | Name | Tags:Label |
  48. +-----------------------------------+-------+---------------+---------------+
  49. | InternetGateway | None | None | - |
  50. +-----------------------------------+-------+---------------+---------------+
  51. | Volume | ID | Name | Tags:Label |
  52. +-----------------------------------+-------+---------------+---------------+
  53. | Snapshot | ID | Name | Tags:Label |
  54. +-----------------------------------+-------+---------------+---------------+
  55. | KeyPair | Name | Name | - |
  56. +-----------------------------------+-------+---------------+---------------+
  57. | VMFirewall | ID | Name | Tags:Label |
  58. +-----------------------------------+-------+---------------+---------------+
  59. | VMFirewallRule | ID | Name | - |
  60. +-----------------------------------+-------+---------------+---------------+
  61. | Bucket | Name | Name | - |
  62. +-----------------------------------+-------+---------------+---------------+
  63. | BucketObject | Name | Name | - |
  64. +-----------------------------------+-------+---------------+---------------+
  65. One of the major discrepancies in Azure is the non-existence of an Internet
  66. Gateway. In fact, Azure resources are automatically exposed to the internet,
  67. and thus an internet gateway object is not necessary for this purpose. Thus,
  68. a gateway object created through cloudbridge in Azure will not appear on the
  69. dashboard, as a cloudbridge-level wrapper object is returned when trying to
  70. create or get a gateway, but no object corresponds to that concept in Azure.
  71. For a succinct comparison between AWS Gateways and Azure, see:
  72. https://social.msdn.microsoft.com/Forums/en-US/
  73. 814ccee0-9fbb-4c04-8135-49d0aaea5f38/
  74. equivalent-of-aws-internet-gateways-in-azure?
  75. forum=WAVirtualMachinesVirtualNetwork
  76. .. figure:: captures/az-label-dash.png
  77. :scale: 50 %
  78. :alt: name and label properties in Azure portal
  79. The cloudbridge `name` property always maps to the unchangeable resource
  80. name in Azure. The `label` property maps to the tag with key 'Label' in
  81. Azure. By default, this label will appear in the tags column, but can also
  82. be made into its own column, following the button indicated in the
  83. screenshot above.
  84. .. figure:: captures/az-net-id.png
  85. :scale: 50 %
  86. :alt: network id in Azure portal
  87. The cloudbridge `ID` property most often maps to the Resource ID in Azure,
  88. which can be found under the properties tab within a resource. The above
  89. screenshot shows where to find a resource's label in Azure's web portal
  90. .. figure:: captures/az-net-label.png
  91. :scale: 50 %
  92. :alt: network label in Azure portal
  93. The cloudbridge `label` property most often maps to the tag with key
  94. 'Label' in Azure, which can be found under the tags tab within a resource.
  95. The above screenshot shows where to find a resource's label in Azure's
  96. web portal.
  97. .. figure:: captures/az-storacc.png
  98. :scale: 50 %
  99. :alt: storage account in Azure portal
  100. Bucket and Key Pair objects are different than other resources in Azure,
  101. as they are not resources residing in a resource group, but rather reside
  102. in a storage account. As a result of this difference, these resources do
  103. not support labels, and cannot be seen on the default dashboard. In order
  104. to find these resources in the Azure web portal, one must head to the
  105. storage account containing them, and look in the `Blobs` and `Tables`
  106. services respectively for `Buckets` and `KeyPairs`.