

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# Lightsail 对象的 API 操作
<a name="object-storage-s3-actions"></a>

使用亚马逊简单存储服务 (Amazon S3) 的以下 API 操作来管理 Amazon Lightsail 对象存储服务中的存储桶和对象。选择 API 操作的名称，即可在 *Amazon S3 API 参考*中查看相关文档。有关 Lightsail 中存储桶的更多信息，请参阅。[使用 Lightsail 对象存储桶存储和管理数据](buckets-in-amazon-lightsail.md)

**将文件上传到存储桶**
+ [PutObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html)-向存储桶添加文件。有关更多信息，请参阅[在 Amazon Lightsail 中将文件上传到存储桶](amazon-lightsail-uploading-files-to-a-bucket.md)。

**使用分段上传将对象上传到存储桶**
+ [CreateMultipartUpload](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html)-启动分段上传并返回上传 ID。有关更多信息，请参阅 [Amazon Lightsail 中的使用分段上传将文件上传到存储桶](amazon-lightsail-uploading-files-to-a-bucket-using-multipart-upload.md)。
+ [UploadPart](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html)-上传特定分段上传中的一部分。有关更多信息，请参阅 [Amazon Lightsail 中的使用分段上传将文件上传到存储桶](amazon-lightsail-uploading-files-to-a-bucket-using-multipart-upload.md)。
+ [ListParts](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html)-列出为特定分段上传而上传的分段。有关更多信息，请参阅 [Amazon Lightsail 中的使用分段上传将文件上传到存储桶](amazon-lightsail-uploading-files-to-a-bucket-using-multipart-upload.md)。
+ [CompleteMultipartUpload](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CompleteMultipartUpload.html)-通过组合之前上传的段来完成分段上传。有关更多信息，请参阅 [Amazon Lightsail 中的使用分段上传将文件上传到存储桶](amazon-lightsail-uploading-files-to-a-bucket-using-multipart-upload.md)。
+ [ListMultipartUploads](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html)-列出存储桶中所有正在进行的分段上传。有关更多信息，请参阅 [Amazon Lightsail 中的使用分段上传将文件上传到存储桶](amazon-lightsail-uploading-files-to-a-bucket-using-multipart-upload.md)。
+ [AbortMultipartUpload](https://docs.aws.amazon.com/AmazonS3/latest/API/API_AbortMultipartUpload.html)-停止分段上传。有关更多信息，请参阅 [Amazon Lightsail 中的使用分段上传将文件上传到存储桶](amazon-lightsail-uploading-files-to-a-bucket-using-multipart-upload.md)。

**列出对象和对象详细信息**
+ [ListObjectsV2](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html)-返回存储桶中对象的列表（每个请求中最多 1,000 个）。有关更多信息，请参阅[在 Amazon Lightsail 中查看存储桶中的对象](amazon-lightsail-viewing-objects-in-a-bucket.md)。
+ [HeadObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadObject.html)-从对象返回元数据，而不返回对象本身。如果您只对对象的元数据感兴趣，则此操作很有用。有关更多信息，请参阅[在 Amazon Lightsail 中查看存储桶中的对象](amazon-lightsail-viewing-objects-in-a-bucket.md)。
+ [GetObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html)-从存储桶下载对象。有关更多信息，请参阅 [Amazon Lightsail 中的存储桶下载对象](amazon-lightsail-downloading-bucket-objects.md)。
+ [GetObjectTagging](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectTagging.html)-返回对象的标签。有关更多信息，请参阅在 [Amazon Lightsail 中为存储桶中的对象添加标签](amazon-lightsail-tagging-bucket-objects.md)。
+ [ListObjectVersions](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectVersions.html)-返回有关存储桶中所有对象版本的元数据。有关更多信息，请参阅 Amazon Lightsai [l 中的存储桶中启用和暂停对象版本控制](amazon-lightsail-managing-bucket-object-versioning.md)。

**复制和移动对象**
+ [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html)-创建对象的副本。有关更多信息，请参阅在 [Amazon Lightsail 中复制或移动存储桶中的对象](amazon-lightsail-copying-moving-bucket-objects.md)。

**编辑单个对象权限**
+ [PutObjectAcl](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObjectAcl.html)-设置对象的访问控制列表 (ACL) 权限，您可以通过这种方式控制单个对象的访问权限。有关更多信息，请参阅[在 Amazon Lightsail 中为存储段中的单个对象配置访问权限](amazon-lightsail-configuring-individual-object-access.md)。
+ [GetObjectAcl](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAcl.html)-返回为对象设置的访问控制列表 (ACL)，该列表控制单个对象的访问权限。有关更多信息，请参阅[在 Amazon Lightsail 中为存储段中的单个对象配置访问权限](amazon-lightsail-configuring-individual-object-access.md)。

**编辑对象标签**
+ [PutObjectTagging](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObjectTagging.html)-将提供的标签设置为对象。有关更多信息，请参阅在 [Amazon Lightsail 中为存储桶中的对象添加标签](amazon-lightsail-tagging-bucket-objects.md)。

**列出和恢复对象版本**
+ [ListObjectVersions](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectVersions.html)-返回有关存储桶中所有对象版本的元数据。有关更多信息，请参阅在 Amazon Lights [ail 的存储桶中启用和暂停对象版本控制和在 Amazon](amazon-lightsail-managing-bucket-object-versioning.md) [Lightsail 中恢复存储桶中对象的先前版本](amazon-lightsail-restoring-bucket-object-versions.md)。
+ [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html)-在存储桶中创建对象的副本，包括对象的先前版本。要恢复对象版本，请使用`CopyObject`操作复制对象的先前版本并将其设为最新版本。有关更多信息，请参阅在 [Amazon Lightsail 中恢复存储桶中对象的先前版本](amazon-lightsail-restoring-bucket-object-versions.md)。
+ [DeleteObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html)-从存储桶中删除对象，包括对象的先前版本。有关更多信息，请参阅[在 Amazon Lightsail 中删除存储桶中的对象](amazon-lightsail-deleting-bucket-objects.md)。

**删除对象**
+ [DeleteObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html)-从存储桶中删除对象。有关更多信息，请参阅[在 Amazon Lightsail 中删除存储桶中的对象](amazon-lightsail-deleting-bucket-objects.md)。
+ [DeleteObjects](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjects.html)-使用单个请求从存储桶中删除多个对象。有关更多信息，请参阅[在 Amazon Lightsail 中删除存储桶中的对象](amazon-lightsail-deleting-bucket-objects.md)。