Terminate the multiple running instance of a server array.
Table of Contents
Prerequisite: Example assumes you have previously authenticated, and your valid session cookie is in 'mycookie'.
#!/bin/sh -e SERVER_ARRAY="214837001" curl -i -H X_API_VERSION:1.5 -b mycookie -X POST https://my.rightscale.com/api/server_arrays/$SERVER_ARRAY/multi_terminate
Note:
HTTP/1.1 202 Accepted Server: nginx/1.0.15 Date: Thu, 15 Nov 2012 22:10:28 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Status: 202 Accepted Location: /api/clouds/232/instances/8NHV15LGBQEAV/live/tasks/ae-94103945001 X-Runtime: 952 X-Request-Uuid: bcce68a1d92141609d0d6b8f190c61cf Set-Cookie: 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.