Adds or remove permission settings for the specified snapshot.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
|
Required |
The ID of the EBS snapshot whose attributes are being modified. |
|
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
|---|---|
|
A |
Examples
Modify an attribute for a snapshot.
// Instantiate the class
$ec2 = new AmazonEC2();
$response = $ec2->modify_snapshot_attribute($snapshot_id, array(
'CreateVolumePermission' => array(
'Add' => array(array('UserId' => '960747153117'))
)
));
// Success?
var_dump($response->isOK());
Result:
bool(true)
Changelog
Version |
Description |
|---|---|
|
1.4.7 |
The ModifySnapshotAttribute operation introduced backwards-incompatible changes in the |
Related Methods
Source
Method defined in services/ec2.class.php | Toggle source view (34 lines) | View on GitHub

