Returns a full description of each Auto Scaling group in the given list. This includes all Amazon EC2 instances that are members of the group. If a list of names is not provided, the service returns the full details of all Auto Scaling groups.
This action supports pagination by returning a token if there are more pages to retrieve. To
get the next page, call this action again with the returned token as the NextToken
parameter.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Describe all auto scaling groups.
// Instantiate the class $as = new AmazonAS(); $response = $as->describe_auto_scaling_groups(); // Success? var_dump($response->isOK());Result:
bool(true)
Describe specific scaling groups.
// Instantiate the class $as = new AmazonAS(); // Fetch list of all LaunchConfigurationName that contain the word "Test". $response = $as->describe_auto_scaling_groups(); $list_of_group_names = $response->body->query('//AutoScalingGroupName[contains(., "Test")]')->map_string(); // Pass the list (array) into a new request. $response = $as->describe_auto_scaling_groups(array( 'AutoScalingGroupNames' => $list_of_group_names )); // Success? var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/as.class.php | Toggle source view (15 lines) | View on GitHub