ModifySnapshotAttribute#

Description#

Adds or removes permission settings for the specified snapshot.

Request Parameters#

Required parameters#

  • snapshotId — The ID of the snapshot.

    • Type: String

    • Required: Yes

Optional parameters#

  • CreateVolumePermission.Add.n.Group — The specific group that is to be added or removed from a volume’s list of create volume permissions.

    • Type: String

    • Required: No

  • CreateVolumePermission.Add.n.UserId — Creates a permission to the snapshot for the specifiied project.

    • Type: String

    • Required: No

    • Valid values: <project>@<customer>, where project — the ID of the project, for which you need to give permissions and customer — the ID of the company, where this project is located.

  • CreateVolumePermission.Remove.n.Group — The specific group that is to be added or removed from a volume’s list of create volume permissions.

    • Type: String

    • Required: No

  • CreateVolumePermission.Remove.n.UserId — Removes a permission to the snapshot for the specific project.

    • Type: String

    • Required: No

    • Valid values: <project>@<customer>, where project — the ID of the project, for which you need to remove permissions and customer — the ID of the company, where this project is located

  • Description.Value – The volume snapshot description.

    • Type: String

    • Required: No

Response Elements#

  • requestId — The request ID

    • Type: String

  • returnTrue is returned if the request succeeds and an error otherwise.

    • Type: Boolean

Examples#

c2-ec2 ModifySnapshotAttribute SnapshotId <snap_id> Description.Value "Sample description"

c2-ec2 ModifySnapshotAttribute SnapshotId <snap_id>

c2-ec2 ModifySnapshotAttribute SnapshotId <snap_id> CreateVolumePermission.Add.1.UserId user@company