Resets an attribute of an instance to its default value.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The ID of the Amazon EC2 instance whose attribute is being reset. |
|
|
Required |
The name of the attribute being reset. Available attribute names: |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Reset the attributes of a stopped instance to default settings.
$ec2 = new AmazonEC2(); $response = $ec2->reset_instance_attribute('i-1f549375', 'kernel'); var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/ec2.class.php | Toggle source view (8 lines) | View on GitHub