Note: Please go to docs.rightscale.com to access the current RightScale documentation set. Also, feel free to Chat with us!
Home > Guides > RightScale API 1.5 > Examples > CloudAccounts > Create

Create


icon_right_api_client_v1.png

Table of Contents

 

right_api_client

Example Call

Using the table below, find the appropriate cloud_href for your cloud and include the values for the required parameters.

require 'rubygems'
require 'pp'                          # Require pretty print Ruby gem
require 'right_api_client'            # RightScale API client gem

user = 'greg.doe@example.com'         # Set user email address for using the Dashboard
acct = '1234'                         # Set the account ID
pass = 'SomePassword'                 # Set the password for the user.  Create client object so you can use the API.
@client.cloud_accounts.create( :cloud_account => { :cloud_href => "/api/clouds/1869", :creds => { :api_key => "123456789", :username => "example_user" } } )

 

Cloud Parameters

 

Cloud cloud_href value Required Parameters Optional Parameters
AWS US-East /api/clouds/1 aws_account_number, aws_access_key_id, aws_secret_access_key

ec2_key, ec2_cert

AWS EU /api/clouds/2 aws_account_number, aws_access_key_id, aws_secret_access_key ec2_key, ec2_cert
AWS US-West /api/clouds/3 aws_account_number, aws_access_key_id, aws_secret_access_key ec2_key, ec2_cert
AWS AP-Singapore /api/clouds/4 aws_account_number, aws_access_key_id, aws_secret_access_key ec2_key, ec2_cert
AWS AP-Tokyo /api/clouds/5 aws_account_number, aws_access_key_id, aws_secret_access_key ec2_key, ec2_cert
AWS US-Oregon /api/clouds/6 aws_account_number, aws_access_key_id, aws_secret_access_key ec2_key, ec2_cert
AWS SA-Sao Paulo /api/clouds/7 aws_account_number, aws_access_key_id, aws_secret_access_key ec2_key, ec2_cert
AWS AP-Sydney /api/clouds/8 aws_account_number, aws_access_key_id, aws_secret_access_key ec2_key, ec2_cert
AWS EU-Frankfurt/api/clouds/9aws_account_number, aws_access_key_id, aws_secret_access_keyec2_key, ec2_cert
AWS China/api/clouds/10aws_account_number, aws_access_key_id, aws_secret_access_keyec2_key, ec2_cert
SoftLayer /api/clouds/1869 api_key, username  
/api/clouds/1874 auth_key, access_key, cloud_owner  
/api/clouds/1875 auth_key, access_key, cloud_owner  
/api/clouds/1998 access_key, auth_key, cloud_owner  
/api/clouds/1999 access_key, auth_key, cloud_owner  
/api/clouds/2327 tenant_uid, nova_password, cloud_owner  
Rackspace Open Cloud - London /api/clouds/2373 tenant_uid, nova_password, cloud_owner  
Rackspace Open Cloud - Dallas /api/clouds/2374 tenant_uid, nova_password, cloud_owner  
Rackspace Open Cloud - Chicago /api/clouds/2324 tenant_uid, nova_password, cloud_owner  
Rackspace Open Cloud - Sydney /api/cloud/2534 tenant_uid, nova_password, cloud_owner  

Note: The AWS China region is not yet supported as a public cloud. Customers who wish to use AWS resources in China are required to create an AWS (China) Account which includes a set of credentials that are distinct and separate from other global AWS Accounts. Only customers with an AWS (China) Account will be able to use resources operated in the AWS China (Beijing) region.

You must to post a comment.
Last modified
08:01, 5 May 2014

Tags

This page has no custom tags.

Classifications

This page has no classifications.

Announcements

None


© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.