本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
DescribeHostKey
傳回 HostKeyId
和 指定的主機金鑰詳細資訊ServerId
。
請求語法
{
"HostKeyId": "string
",
"ServerId": "string
"
}
請求參數
如需所有動作的一般參數資訊,請參閱《Common Parameters》。
請求接受下列JSON格式的資料。
回應語法
{
"HostKey": {
"Arn": "string",
"DateImported": number,
"Description": "string",
"HostKeyFingerprint": "string",
"HostKeyId": "string",
"Tags": [
{
"Key": "string",
"Value": "string"
}
],
"Type": "string"
}
}
回應元素
如果動作成功,服務會傳回 HTTP 200 個回應。
服務會以 JSON 格式傳回下列資料。
- HostKey
-
傳回指定主機金鑰的詳細資訊。
類型:DescribedHostKey 物件
錯誤
如需所有動作常見錯誤的資訊,請參閱常見錯誤。
- InternalServiceError
-
當 AWS Transfer Family 服務發生錯誤時,就會擲回此例外狀況。
HTTP 狀態碼:500
- InvalidRequestException
-
當用戶端提交格式不正確的請求時,就會擲回此例外狀況。
HTTP 狀態碼:400
- ResourceNotFoundException
-
當 AWS Transfer Family 服務找不到資源時,就會擲回此例外狀況。
HTTP 狀態碼:400
- ServiceUnavailableException
-
請求失敗,因為 AWS Transfer Family 服務無法使用。
HTTP 狀態碼:500
另請參閱
如需在其中一種語言特定的 API中使用此功能的詳細資訊 AWS SDKs,請參閱下列內容: