

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# Lightsail for Research API 動作
<a name="api-actions"></a>

您可以使用屬於 API 一部分的下列 Lightsail API 動作來管理 Amazon Lightsail for Research 資源。選擇動作的名稱，以檢視該動作的詳細資訊。

**Lightsail for Research 動作**
+  [AddOnRequest](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_AddOnRequest.html) - 描述啟用、修改或停用 Amazon Lightsail或 Lightsail for Research 資源附加元件的請求。有效值為 `AutoSnapshot | StopInstanceOnIdle`。
+ [CreateGUISessionAccessDetails](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateGUISessionAccessDetails.html) - 建立兩個 URLs，用於存取虛擬電腦的圖形使用者介面 (GUI) 工作階段。
+ [GetCostEstimate](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetCostEstimate.html) - 擷取指定資源成本預估的相關資訊。
+ [StartGUISession](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_StartGUISession.html) - Amazon DCV 啟動用於存取虛擬電腦作業系統或應用程式的 GUI 工作階段。工作階段將處於作用中狀態 1 小時。使用此動作可在工作階段過期後繼續工作階段。
+ [StopGUISession](https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_StopGUISession.html) - 終止用於存取虛擬電腦作業系統或應用程式的 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) - 建立可搭配 Lightsail for Research 虛擬電腦使用的自訂 SSH 金鑰對。
+ [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) - 從特定金鑰對匯入公有 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 Elastic Compute Cloud (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) - 傳回 所有有效 AWS 區域的清單Lightsail。使用 `include availability zones` 參數也會傳回區域中的可用區域。