

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

# 研究版 Lightsail API 操作
<a name="api-actions"></a>

您可以使用下列 API 操作（它们是 Lightsail API 的一部分）来管理亚马逊 Lightsail for Research 资源。选择操作的名称以查看有关该操作的更多信息。

**Lightsail 用于研究行动**
+  [AddOnRequest](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_AddOnRequest.html)-描述为亚马逊 Lightsail 或 Lightsail for Research 资源启用、修改或禁用插件的请求。有效值为 `AutoSnapshot | StopInstanceOnIdle`。
+ [CreateGUISessionAccessDetails](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateGUISessionAccessDetails.html)-创建两个用于访问虚拟计算机图形用户界面 (GUI) 会话的 URL。
+ [GetCostEstimate](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetCostEstimate.html)-检索有关指定资源成本估算的信息。
+ [StartGuis](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_StartGUISession.html) ession-启动用于访问虚拟计算机操作系统或应用程序的 Amazon DCV GUI 会话。会话将持续 1 小时。使用此操作可在会话过期后恢复会话。
+ [stopGuis](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_StopGUISession.html) ession-终止用于访问虚拟计算机操作系统或应用程序的基于 Web 的 Amazon DCV GUI 会话。会话将关闭，所有未保存的数据都将丢失。

**虚拟计算机和实例操作**
+ [CreateInstances](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateInstances.html)-创建一台或多台虚拟计算机。
+ [DeleteInstance](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteInstance.html)-删除虚拟计算机。
+ [GetBlueprints](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetBlueprints.html)-返回可用虚拟计算机应用程序或蓝图的列表。
+ [GetBundles](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetBundles.html)-返回在创建虚拟计算机时可以应用于虚拟计算机的硬件包。
+ [GetInstance](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetInstance.html)-返回有关特定虚拟计算机或实例的信息。
+ [GetInstanceMetricData](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetInstanceMetricData.html)-在给定虚拟计算机名称的情况下，返回指定虚拟计算机指标的数据点。
+ [GetInstances](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetInstances.html)-返回有关用户账户中所有 Lightsail 实例和 Lightsail for Research 虚拟计算机的信息。
+ [GetInstanceState](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetInstanceState.html)-返回特定虚拟计算机或实例的状态。
+ [RebootInstance](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_RebootInstance.html)-重新启动特定的虚拟计算机。
+ [StartInstance](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_StartInstance.html)-从停止状态启动特定的虚拟计算机。要重新启动虚拟计算机，请使用`reboot instance`操作。
+ [StopInstance](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_StopInstance.html)-停止当前正在运行的特定虚拟计算机。
+ [UpdateInstanceMetadataOptions](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_UpdateInstanceMetadataOptions.html)-修改正在运行或已停止的虚拟计算机上的虚拟计算机元数据参数。

**磁盘操作**
+ [AttachDisk](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_AttachDisk.html)-将块存储磁盘连接到正在运行或已停止的虚拟计算机，然后将其公开给具有指定磁盘名称的虚拟计算机。
+ [CreateDisk](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateDisk.html)-创建可连接到同一 AWS 区域中的虚拟计算机的块存储磁盘。
+ [DeleteDisk](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteDisk.html)-删除指定的块存储磁盘。
+ [DetachDisk](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DetachDisk.html)-将已停止的块存储磁盘与虚拟计算机分离。
+ [GetDisk](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetDisk.html)-返回有关特定块存储磁盘的信息。
+ [GetDisks](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetDisks.html)-返回有关您的 AWS 账户和区域中所有块存储磁盘的信息。

**密钥对操作**
+ [CreateKeyPair](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateKeyPair.html)-创建自定义 SSH 密钥对，您可以将其与 Lightsail for Research 虚拟计算机一起使用。
+ [DeleteKeyPair](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteKeyPair.html)-通过从 Amazon Lightsail 中移除公钥来删除指定的密钥对。
+ [DownloadDefaultKeyPair](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DownloadDefaultKeyPair.html)-下载区域性 Lightsail 默认密钥对。如果中当前不存在默认密钥对，则此操作还会创建 Lightsail 默认密钥对。 AWS 区域
+ [GetInstanceAccessDetails](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetInstanceAccessDetails.html)-返回可用于连接到特定虚拟计算机的临时 SSH 密钥。
+ [GetKeyPair](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetKeyPair.html)-返回有关特定密钥对的信息。
+ [GetKeyPairs](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetKeyPairs.html)-返回有关用户账户中所有密钥对的信息。
+ [ImportKeyPair](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_ImportKeyPair.html)-从特定密钥 pair 中导入 SSH 公钥。

**联网操作**
+ [GetInstancePortStates](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetInstancePortStates.html)-返回特定虚拟计算机的防火墙端口状态、允许通过端口连接到虚拟计算机的 IP 地址以及协议。
+ [IsVpcPeered](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_IsVpcPeered.html)-返回一个布尔值，表示您的 Lightsail VPC 是否处于对等状态。
+ [OpenInstancePublicPorts](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_OpenInstancePublicPorts.html)-打开特定虚拟计算机的端口，并指定允许通过端口和协议连接到虚拟计算机的 IP 地址。
+ [PutInstancePublicPorts](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_PutInstancePublicPorts.html)-打开特定虚拟计算机的端口，并指定允许通过端口和协议连接到虚拟计算机的 IP 地址。
+ [PeerVpc](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_PeerVpc.html)-将 Lightsail VPC 与用户的默认 VPC 进行对等。
+ [SetIpAddressType](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_SetIpAddressType.html)-设置虚拟计算机的 IP 地址类型。
+ [UnpeerVpc](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_UnpeerVpc.html)-解除 Lightsail VPC 与用户的默认 VPC 的对等关系。

**快照操作**
+ [CopySnapshot](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CopySnapshot.html)-将虚拟计算机或磁盘的手动快照复制为另一个手动快照，或者将虚拟计算机或磁盘的自动快照复制为手动快照。
+ [CreateDiskFromSnapshot](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateDiskFromSnapshot.html)-根据磁盘的手动或自动快照创建块存储磁盘。
+ [CreateDiskSnapshot](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateDiskSnapshot.html)-创建块存储磁盘的快照。
+ [CreateInstancesFromSnapshot](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateInstancesFromSnapshot.html)-根据虚拟计算机的手动或自动快照创建一台或多台新的虚拟计算机。
+ [CreateInstanceSnapshot](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateInstanceSnapshot.html)-创建特定虚拟计算机的快照。
+ [DeleteAutoSnapshot](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteAutoSnapshot.html)-删除虚拟计算机或磁盘的自动快照。
+ [DeleteDiskSnapshot](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteDiskSnapshot.html)-删除磁盘的特定快照。
+ [DeleteInstanceSnapshot](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_DeleteInstanceSnapshot.html)-删除虚拟计算机的特定快照。
+ [ExportSnapshot](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_ExportSnapshot.html)-将虚拟计算机或块存储磁盘快照导出到亚马逊弹性计算云 (Amazon EC2)。

  
+ [GetDiskSnapshot](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetDiskSnapshot.html)-返回有关特定块存储磁盘快照的信息。
+ [GetDiskSnapshots](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetDiskSnapshots.html)-返回有关您的 AWS 账户和区域中所有块存储磁盘快照的信息。
+ [GetExportSnapshotRecords](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetExportSnapshotRecords.html)-返回由于导出快照操作而创建的所有导出快照记录。
+ [GetInstanceSnapshot](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetInstanceSnapshot.html)-返回有关特定虚拟计算机快照的信息。
+ [GetInstanceSnapshots](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetInstanceSnapshots.html)-返回用户帐户的所有虚拟计算机快照。

**标记动作**
+ [TagResource](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_TagResource.html)-向指定资源添加一个或多个标签。
+ [UntagResource](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_UntagResource.html)-从指定资源中删除指定的一组标签键及其值。

**其他资源操作**
+ [GetActiveNames](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetActiveNames.html)-返回所有活动（未删除）资源的名称。
+ [GetOperation](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetOperation.html)-返回有关特定操作的信息。操作包括创建虚拟计算机、连接磁盘等事件。
+ [GetOperations](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetOperations.html)-返回有关所有操作的信息。结果按从最旧到最新顺序返回，最多 200。每次后续调用都要`GetOperations`使用上一个请求中的最大（最后一个）`statusChangedAt`值，即可对结果进行分页。
+ [GetOperationsForResource](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetOperationsForResource.html)-获取特定资源（例如虚拟计算机或磁盘）的操作。
+ [GetRegions](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetRegions.html)-返回 Lightsail 的所有有效 AWS 区域的列表。使用`include availability zones`参数还可返回某个区域中的可用区。