Home > Guides > RightScale API 1.0 > RightScale API 1.0 Examples > Deployments > Create a Deployment

Copyright (c) 2006-2014 MindTouch Inc.

This file and accompanying files are licensed under the MindTouch Master Subscription Agreement (MSA).

At any time, you shall not, directly or indirectly: (i) sublicense, resell, rent, lease, distribute, market, commercialize or otherwise transfer rights or usage to: (a) the Software, (b) any modified version or derivative work of the Software created by you or for you, or (c) MindTouch Open Source (which includes all non-supported versions of MindTouch-developed software), for any purpose including timesharing or service bureau purposes; (ii) remove or alter any copyright, trademark or proprietary notice in the Software; (iii) transfer, use or export the Software in violation of any applicable laws or regulations of any government or governmental agency; (iv) use or run on any of your hardware, or have deployed for use, any production version of MindTouch Open Source; (v) use any of the Support Services, Error corrections, Updates or Upgrades, for the MindTouch Open Source software or for any Server for which Support Services are not then purchased as provided hereunder; or (vi) reverse engineer, decompile or modify any encrypted or encoded portion of the Software.

A complete copy of the MSA is available at http://www.mindtouch.com/msa

Create a Deployment


The following example creates a new Deployment using a previously saved cookie for authentication.

Curl Example

# Set variables
nickname="test_deployment"        # Set the Deployment's nickname
description="test_description"    # Set the Deployment's description
account=MyAccountNumber           # Set your account number.  Obtain via your browser in the Dashboard. Tail end of the URL:  Settings > Account.

# Create the new Deployment via a curl command sent to the RightScale API
curl  -H 'X-API-VERSION:1.0' -b <./mySavedCookies> -d "deployment[description]=$description" -d "deployment[nickname]=$nickname" https://my.rightscale.com/api/acct/$account/deployments

Ruby Wrapper Example

params = { 'deployment[nickname]' => 'My New Deployment', 'deployment[description]' => '1st test Deployment created with the Ruby Wrapper API' }

Sample Output

HTTP/1.1 201 Created
Date: Tue, 02 Jun 2009 17:45:19 GMT
Server: Mongrel 1.1.4
Status: 201 Created
Location: https://my.rightscale.com/api/acct/1234/deployments/21520 X-Runtime: 0.06091
Cache-Control: no-cache
Content-Type: application/xml; charset=utf-8
Content-Length: 1
Cache-control: private

The Deployment ID (21520) is returned in the location field of the response.  You may need to use the Deployment ID in additional API commands, such as Updating a Deployment.

You must to post a comment.
Last Modified
21:57, 16 May 2013



This page has no classifications.



Glossary | 用語용어 Site Map | Site Help Community Corporate Site Get Support Dashboard Login
Doc Feedback Product Feedback Resources MultiCloud Marketplace Forums

Dashboard Status

© 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.