Launch a Server that has already been added to a deployment, in a particular cloud, etc.
Table of Contents
Prerequisite: Example assumes you have previously authenticated, and your valid session cookie is in 'mycookie'.
#!/bin/sh -e SERVER="532922001" curl -i -H X_API_VERSION:1.5 -b mycookie -X POST https://my.rightscale.com/api/servers/$SERVER/launch.xml
HTTP/1.1 201 Created Server: nginx/1.0.15 Date: Fri, 19 Oct 2012 22:52:28 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Status: 201 Created Location: /api/clouds/232/instances/3R397M9BPGB5J X-Runtime: 10360 X-Request-Uuid: b41d5bd4a4cd4f338bc6542417806e7a Set-Cookie: _session_id=4af33099ee4f9e2eb0f169ecb928d5b4; path=/; Secure; HttpOnly Cache-Control: no-cache
© 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.