API actions for Lightsail objects
Use the following API actions for Amazon Simple Storage Service (Amazon S3) to manage buckets and objects in the Amazon Lightsail object storage service. Choose the name of an API action to view the documentation for it in the Amazon S3 API reference. For more information about buckets in Lightsail, see Store and manage data with Lightsail object storage buckets.
Uploading files to buckets
-
PutObject - Adds a file to a bucket. For more information, see Uploading files to a bucket in Amazon Lightsail.
Uploading objects to buckets using multipart upload
-
CreateMultipartUpload - Initiates a multipart upload and returns an upload ID. For more information, see Uploading files to a bucket using multipart upload in Amazon Lightsail.
-
UploadPart - Uploads a part in a specific multipart upload. For more information, see Uploading files to a bucket using multipart upload in Amazon Lightsail.
-
ListParts - Lists the parts that have been uploaded for a specific multipart upload. For more information, see Uploading files to a bucket using multipart upload in Amazon Lightsail.
-
CompleteMultipartUpload - Completes a multipart upload by assembling previously uploaded parts. For more information, see Uploading files to a bucket using multipart upload in Amazon Lightsail.
-
ListMultipartUploads - Lists all in-progress multipart uploads for a bucket. For more information, see Uploading files to a bucket using multipart upload in Amazon Lightsail.
-
AbortMultipartUpload - Stops a multipart upload. For more information, see Uploading files to a bucket using multipart upload in Amazon Lightsail.
Listing objects and object details
-
ListObjectsV2 - Returns a list of the objects (up to 1,000 in each request) in a bucket. For more information, see Viewing objects in a bucket in Amazon Lightsail.
-
HeadObject - Returns metadata from an object without returning the object itself. This action is useful if you're only interested in an object's metadata. For more information, see Viewing objects in a bucket in Amazon Lightsail.
-
GetObject - Downloads an object from a bucket. For more information, see Downloading objects from a bucket in Amazon Lightsail.
-
GetObjectTagging - Returns the tags of an object. For more information, see Tagging objects in a bucket in Amazon Lightsail.
-
ListObjectVersions - Returns metadata about all versions of objects in a bucket. For more information, see Enabling and suspending object versioning in a bucket in Amazon Lightsail.
Copying and moving objects
-
CopyObject - Creates a copy of an object. For more information, see Copying or moving objects in a bucket in Amazon Lightsail.
Editing individual object permissions
-
PutObjectAcl - Sets the access control list (ACL) permissions for an object, which is how you can control the access permissions for an individual object. For more information, see Configuring access permissions for individual objects in a bucket in Amazon Lightsail.
-
GetObjectAcl - Returns the access control list (ACL) set for an object, which controls the access permissions for the individual object. For more information, see Configuring access permissions for individual objects in a bucket in Amazon Lightsail.
Editing object tags
-
PutObjectTagging - Sets the supplied tag to an object. For more information, see Tagging objects in a bucket in Amazon Lightsail.
Listing and restoring object versions
-
ListObjectVersions - Returns metadata about all versions of objects in a bucket. For more information, see Enabling and suspending object versioning in a bucket in Amazon Lightsail and Restoring previous versions of objects in a bucket in Amazon Lightsail.
-
CopyObject - Creates a copy of an object in a bucket, including previous versions of an object. To restore an object version, use the
CopyObjectaction to copy a previous version of an object and make it the latest version. For more information, see Restoring previous versions of objects in a bucket in Amazon Lightsail. -
DeleteObject - Deletes an object from a bucket, including previous versions of an object. For more information, see Deleting objects in a bucket in Amazon Lightsail.
Deleting objects
-
DeleteObject - Deletes an object from a bucket. For more information, see Deleting objects in a bucket in Amazon Lightsail.
-
DeleteObjects - Deletes multiple objects from a bucket using a single request. For more information, see Deleting objects in a bucket in Amazon Lightsail.