Menu
Amazon ElastiCache
API Reference (API Version 2015-02-02)

RebootCacheCluster

Reboots some, or all, of the cache nodes within a provisioned cache cluster. This operation applies any modified cache parameter groups to the cache cluster. The reboot operation takes place as soon as possible, and results in a momentary outage to the cache cluster. During the reboot, the cache cluster status is set to REBOOTING.

The reboot causes the contents of the cache (for each cache node being rebooted) to be lost.

When the reboot is complete, a cache cluster event is created.

Rebooting a cluster is currently supported on Memcached and Redis (cluster mode disabled) clusters. Rebooting is not supported on Redis (cluster mode enabled) clusters.

If you make changes to parameters that require a Redis (cluster mode enabled) cluster reboot for the changes to be applied, see Rebooting a Cluster for an alternate process.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

CacheClusterId

The cache cluster identifier. This parameter is stored as a lowercase string.

Type: String

Required: Yes

CacheNodeIdsToReboot.CacheNodeId.N

A list of cache node IDs to reboot. A node ID is a numeric identifier (0001, 0002, etc.). To reboot an entire cache cluster, specify all of the cache node IDs.

Type: Array of strings

Required: Yes

Response Elements

The following element is returned by the service.

CacheCluster

Contains all of the attributes of a specific cache cluster.

Type: CacheCluster object

Errors

For information about the errors that are common to all actions, see Common Errors.

CacheClusterNotFound

The requested cache cluster ID does not refer to an existing cache cluster.

HTTP Status Code: 404

InvalidCacheClusterState

The requested cache cluster is not in the available state.

HTTP Status Code: 400

Example

Sample Request

Copy
https://elasticache.us-west-2.amazonaws.com/ ?Action=RebootCacheCluster &CacheClusterId=mycache &CacheNodeIdsToReboot.member.1=0001 &CacheNodeIdsToReboot.member.2=0002 &CacheNodeIdsToReboot.member.3=0003 &Version=2015-02-02 &SignatureVersion=4 &SignatureMethod=HmacSHA256 &Timestamp=20150202T192317Z &X-Amz-Credential=<credential>

Sample Response

Copy
<RebootCacheClusterResponse xmlns="http://elasticache.amazonaws.com/doc/2015-02-02/"> <RebootCacheClusterResult> <CacheCluster> <CacheClusterStatus>rebooting cache cluster nodes</CacheClusterStatus> <CacheParameterGroup> <CacheParameterGroupName>default.memcached1.4</CacheParameterGroupName> <ParameterApplyStatus>in-sync</ParameterApplyStatus> <CacheNodeIdsToReboot /> </CacheParameterGroup> <CacheClusterId>mycache</CacheClusterId> <ConfigurationEndpoint> <Port>11211</Port> <Address>mycache.q68zge.cfg.use1devo.elmo-dev.amazonaws.com</Address> </ConfigurationEndpoint> <CacheNodeType>cache.m1.small</CacheNodeType> <Engine>memcached</Engine> <PendingModifiedValues /> <PreferredAvailabilityZone>us-west-2b</PreferredAvailabilityZone> <CacheClusterCreateTime>2015-02-02T19:04:12.812Z</CacheClusterCreateTime> <EngineVersion>1.4.17</EngineVersion> <AutoMinorVersionUpgrade>true</AutoMinorVersionUpgrade> <PreferredMaintenanceWindow>wed:09:00-wed:10:00</PreferredMaintenanceWindow> <ClientDownloadLandingPage>https://console.aws.amazon.com/elasticache/home#client-download:</ClientDownloadLandingPage> <CacheSecurityGroups> <CacheSecurityGroup> <CacheSecurityGroupName>default</CacheSecurityGroupName> <Status>active</Status> </CacheSecurityGroup> </CacheSecurityGroups> <NumCacheNodes>3</NumCacheNodes> </CacheCluster> </RebootCacheClusterResult> <ResponseMetadata> <RequestId>cf7e6fc4-b9d1-11e3-8a16-7978bb24ffdf</RequestId> </ResponseMetadata> </RebootCacheClusterResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: