ModifyImageAttribute#

Description#

Changes image parameters

Request Parameters#

Required parameters#

  • imageId — The image ID.

    • Requred: Yes

    • Type: String

Optional parameters#

  • Description.Value — Change the image description.

    • Required: No

    • Type: String

  • LaunchPermission.Add.n.Group — Permit the specified group to use the image.

    • Required: No

    • Type: String

    • Valid values: all

  • LaunchPermission.Add.n.UserId — Permit the specified user to use the image.

    • Required: No

    • Type: String

  • LaunchPermission.Remove.n.Group — Cancel the permission to use the image for the specified group.

    • Required: No

    • Type: String

    • Valid values: all

  • LaunchPermission.Remove.n.UserId — Cancel the permission to use the image for the specified user.

    • Required: No

    • Type: String

Response Elements#

  • requestId — The request ID

    • Type: String

  • returnTrue, if the request succeeds.

    • Type: Boolean

Examples#

c2-ec2 ModifyImageAttribute ImageId <image_id> Description.Value "New template description"

c2-ec2 ModifyImageAttribute ImageId <image_id> LaunchPermission.Add.1.UserId <user_id>