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 > Server Array > Multi-Terminate Server Array

Multi-Terminate Server Array

Table of Contents

Terminate the multiple running instance of a server array.

Table of Contents

Curl

Prerequisite:  Example assumes you have previously authenticated, and your valid session cookie is in 'mycookie'.

Example Call

#!/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

Sample Output

Note:

  • There is no XML/JSON content from a Multi-Terminate Server Array (or instance).
  • This call only terminates a single running Server Array.
  • If you are terminating a Server Array that is enabled, servers will spin up again. Set the status to disabled if you do not want this to happen.
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
 

You must to post a comment.
Last modified
23:18, 16 May 2013

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.