euca-modify-image-attribute

Modifies an attribute of an Eucalyptus Machine Image (EMI).

Syntax

euca-modify-image-attribute image_id [ -l ][-p product_code ][-a
  entity][-r entity ]

Options

Option Description Required
image_id Unique identifier for the image that you want to modify the attributes of Yes
-l, --launch-permission Used with the --add or --remove option to grant or revoke launch permissions Yes
-a, --add entity Adds a launch permission for the specified account or for all accounts.

Valid Values: account identifier | all

Yes
-r, --remove entity Removes a launch permission for the specified account or for all users.

Valid Values: account identifier | all

Yes
-p, --product-code code Product code to add to the specified EMI. Once you add a product code to an EMI, it can't be removed Yes

Common Options

Option Description
--show-empty-fields Show empty fields as "(nil)".
--region user@region Region and/or user name to search when looking up config file data. Only valid for EC2 endpoints.
-U,--url url URL of the cloud service to connect to. For administrative commands, this should be <ip_address>:8773/services/Empyrean.
-I,--access-key-id key_id User's access key ID.
-S,--secret-key secret_key User's secret key.
--security-token token User's security token.
--debug Prints what the command sends to the server and what it receives from the server. Use when you're trying to debug Euca2ools.
--debugger Enable interactive debugger on error.
-h,--help Display the manual page for the command.
--version Display the version of this tool.

Output

Example

The following example makes the EMI public, so that all accounts can launch it.

euca-modify-image-attribute -l -a all emi-15A1386E
IMAGE   emi-15A1386E

The following example denies launch permission for a specific account.

euca-modify-image-attribute -l -r 790547641019 emi-15A1386E
IMAGE   emi-15A1386E
x