You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2014/02/18 10:05:34 UTC

svn commit: r1569232 - /libcloud/site/trunk/source/_drafts/gce.md

Author: tomaz
Date: Tue Feb 18 09:05:33 2014
New Revision: 1569232

URL: http://svn.apache.org/r1569232
Log:
Update draft.

Modified:
    libcloud/site/trunk/source/_drafts/gce.md

Modified: libcloud/site/trunk/source/_drafts/gce.md
URL: http://svn.apache.org/viewvc/libcloud/site/trunk/source/_drafts/gce.md?rev=1569232&r1=1569231&r2=1569232&view=diff
==============================================================================
--- libcloud/site/trunk/source/_drafts/gce.md (original)
+++ libcloud/site/trunk/source/_drafts/gce.md Tue Feb 18 09:05:33 2014
@@ -35,7 +35,7 @@ instances in under a minute.
 
 ## Getting Started
 
-If you haven’t yet signed up for Google Compute Engine, more information can
+If you haven't yet signed up for Google Compute Engine, more information can
 be found on the [Google Cloud Platform][1] site. We hope that you will look at
 the Google Cloud Platform and consider Compute Engine for workloads of any
 size.
@@ -48,13 +48,13 @@ Compute and Load Balancing are supported
 
 Google Compute Engine uses OAuth2 for authentication and Libcloud supports two
 different authentication methods for Compute Engine: Service Accounts and
-Installed Applications.  More information can be found about these options in
+Installed Applications. More information can be found about these options in
 the [driver documentation][2], but here is a simple walk-through for getting
 your Service Account credentials (note that the Service Account authentication
 requires the PyCrypto library):
 
-From the Console (https://cloud.google.com/console), select your project. When
-your project is open, select "APIs & auth" and then "Credential"” as shown
+From the Console (<https://cloud.google.com/console>), select your project. When
+your project is open, select "APIs & auth" and then "Credentials" as shown
 below:
 
 <div class="imginline">
@@ -67,7 +67,7 @@ To create a new Service Account ID, clic
   <img src="/images/posts/gce/image04.png" class="img-responsive inline" />
 </div>
 
-Select “Service account” and click “Create Client ID”
+Select "Service account" and click "Create Client ID"
 
 <div class="imginline">
   <img src="/images/posts/gce/image00.png" class="img-responsive inline" />
@@ -107,7 +107,12 @@ images = gce.list_images()
 </pre>
 
 and then filter them to find the correct size/image object to create your
-node.
+node. For example:
+
+<pre>
+size_obj = [s for s in sizes if s.id == 'n1-standard-1'][0]
+image_obj = [i for i in images if i.name == 'debian-7'][0]
+</pre>
 
 Finally, you would create the node using the create_node() method:
 
@@ -125,14 +130,14 @@ new_node = gce.create_node(name='my_node
                            image='debian-7')
 </pre>
 
-In this case a new node will be created using the ‘n1-standard-1’ machine
-type and will use the latest ‘debian-7’ image that is available.
+In this case a new node will be created using the "n1-standard-1" machine
+type and will use the latest "debian-7" image that is available.
 
 ## Creating Multiple Instances
 
 We have added an extra method to the Compute Engine driver to help in the
 creation of multiple instances/nodes in parallel.  This is the
-ex_create_multiple_nodes() method, and it can be used like this:
+"ex_create_multiple_nodes()" method, and it can be used like this:
 
 <pre>
 base_name = 'multiple-nodes'