

# InstanceState
<a name="API_InstanceState"></a>

Describes the virtual private server (or *instance*) status.

## Contents
<a name="API_InstanceState_Contents"></a>

 ** code **   <a name="Lightsail-Type-InstanceState-code"></a>
The status code for the instance.  
Type: Integer  
Required: No

 ** name **   <a name="Lightsail-Type-InstanceState-name"></a>
The state of the instance (`running` or `pending`).  
Type: String  
Required: No

## See Also
<a name="API_InstanceState_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/lightsail-2016-11-28/InstanceState) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/lightsail-2016-11-28/InstanceState) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/lightsail-2016-11-28/InstanceState) 