libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Wall (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LIBCLOUD-654) Add size slug to the NodeSizes returned by DigitalOceanDriver.list_sizes
Date Fri, 16 Jan 2015 12:16:34 GMT

     [ https://issues.apache.org/jira/browse/LIBCLOUD-654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Richard Wall updated LIBCLOUD-654:
----------------------------------
    Description: 
The DigitalOcean v1 (and v2) API returns a "slug" for each size.

This is a short, human readable, code for each size which is stable and suitable for use in
eg configuration files.

It'd be useful if ``list_sizes`` made this information available.

{code}
{u'sizes': [{u'cost_per_hour': 0.00744,
   u'cost_per_month': u'5.0',
   u'cpu': 1,
   u'disk': 20,
   u'id': 66,
   u'memory': 512,
   u'name': u'512MB',
   u'slug': u'512mb'},
...
  {u'cost_per_hour': 0.95238,
   u'cost_per_month': u'640.0',
   u'cpu': 20,
   u'disk': 640,
   u'id': 69,
   u'memory': 65536,
   u'name': u'64GB',
   u'slug': u'64gb'}],
 u'status': u'OK'}

{code}

See https://github.com/ClusterHQ/flocker/commit/b1d2bcfa7bb42c663baef75efa14e9a56ab92352 for
an example of how this might be used.

  was:
The DigitalOcean v1 (and v2) API returns a "slug" for each location.

This is a short, human readable, code for each location which is stable and suitable for use
in eg configuration files.

It'd be useful if ``list_locations`` made this information available.

{code}
{u'regions': [{u'id': 3, u'name': u'San Francisco 1', u'slug': u'sfo1'},
  {u'id': 4, u'name': u'New York 2', u'slug': u'nyc2'},
  {u'id': 5, u'name': u'Amsterdam 2', u'slug': u'ams2'},
  {u'id': 6, u'name': u'Singapore 1', u'slug': u'sgp1'},
  {u'id': 7, u'name': u'London 1', u'slug': u'lon1'},
  {u'id': 8, u'name': u'New York 3', u'slug': u'nyc3'},
  {u'id': 9, u'name': u'Amsterdam 3', u'slug': u'ams3'}],
 u'status': u'OK'}
{code}

See https://github.com/ClusterHQ/flocker/commit/1d25c290e770451026cd7b72a2c1838f18e2ecf0 for
an example of how this might be used.


> Add size slug to the NodeSizes returned by DigitalOceanDriver.list_sizes
> ------------------------------------------------------------------------
>
>                 Key: LIBCLOUD-654
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-654
>             Project: Libcloud
>          Issue Type: Improvement
>          Components: Compute
>            Reporter: Richard Wall
>              Labels: digitalocean
>
> The DigitalOcean v1 (and v2) API returns a "slug" for each size.
> This is a short, human readable, code for each size which is stable and suitable for
use in eg configuration files.
> It'd be useful if ``list_sizes`` made this information available.
> {code}
> {u'sizes': [{u'cost_per_hour': 0.00744,
>    u'cost_per_month': u'5.0',
>    u'cpu': 1,
>    u'disk': 20,
>    u'id': 66,
>    u'memory': 512,
>    u'name': u'512MB',
>    u'slug': u'512mb'},
> ...
>   {u'cost_per_hour': 0.95238,
>    u'cost_per_month': u'640.0',
>    u'cpu': 20,
>    u'disk': 640,
>    u'id': 69,
>    u'memory': 65536,
>    u'name': u'64GB',
>    u'slug': u'64gb'}],
>  u'status': u'OK'}
> {code}
> See https://github.com/ClusterHQ/flocker/commit/b1d2bcfa7bb42c663baef75efa14e9a56ab92352
for an example of how this might be used.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message