

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

# ListJournalKinesisStreamsForLedger
<a name="API_ListJournalKinesisStreamsForLedger"></a>

傳回指定總帳的所有 Amazon QLDB 日誌串流。

此動作不會傳回任何過期的日誌串流。如需詳細資訊，請參閱《*Amazon QLDB 開發人員指南*》中的[終端機串流過期](https://docs.aws.amazon.com/qldb/latest/developerguide/streams.create.html#streams.create.states.expiration)。

此動作會傳回最多 個`MaxResults`項目。它會進行分頁，以便您可以透過`ListJournalKinesisStreamsForLedger`多次呼叫 來擷取所有項目。

## 請求語法
<a name="API_ListJournalKinesisStreamsForLedger_RequestSyntax"></a>

```
GET /ledgers/name/journal-kinesis-streams?max_results=MaxResults&next_token=NextToken HTTP/1.1
```

## URI 請求參數
<a name="API_ListJournalKinesisStreamsForLedger_RequestParameters"></a>

請求會使用下列 URI 參數。

 ** [name](#API_ListJournalKinesisStreamsForLedger_RequestSyntax) **   <a name="qldb-ListJournalKinesisStreamsForLedger-request-uri-LedgerName"></a>
分類帳的名稱。  
長度限制：長度下限為 1。長度上限為 32。  
模式：`(?!^.*--)(?!^[0-9]+$)(?!^-)(?!.*-$)^[A-Za-z0-9-]+$`  
必要：是

 ** [MaxResults](#API_ListJournalKinesisStreamsForLedger_RequestSyntax) **   <a name="qldb-ListJournalKinesisStreamsForLedger-request-uri-MaxResults"></a>
在單一`ListJournalKinesisStreamsForLedger`請求中傳回的結果數目上限。（傳回的實際結果數量可能較少。)  
有效範圍：最小值為 1。最大值為 100。

 ** [NextToken](#API_ListJournalKinesisStreamsForLedger_RequestSyntax) **   <a name="qldb-ListJournalKinesisStreamsForLedger-request-uri-NextToken"></a>
分頁字符，表示您想要擷取結果的下一頁。如果您在上一次`ListJournalKinesisStreamsForLedger`呼叫的回應`NextToken`中收到 的值，您應該使用此值作為此處的輸入。  
長度限制：長度下限為 4。長度上限為 1024。  
模式：`^[A-Za-z-0-9+/=]+$`

## 請求主體
<a name="API_ListJournalKinesisStreamsForLedger_RequestBody"></a>

請求沒有請求主體。

## 回應語法
<a name="API_ListJournalKinesisStreamsForLedger_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "NextToken": "string",
   "Streams": [ 
      { 
         "Arn": "string",
         "CreationTime": number,
         "ErrorCause": "string",
         "ExclusiveEndTime": number,
         "InclusiveStartTime": number,
         "KinesisConfiguration": { 
            "AggregationEnabled": boolean,
            "StreamArn": "string"
         },
         "LedgerName": "string",
         "RoleArn": "string",
         "Status": "string",
         "StreamId": "string",
         "StreamName": "string"
      }
   ]
}
```

## 回應元素
<a name="API_ListJournalKinesisStreamsForLedger_ResponseElements"></a>

如果動作成功，則服務傳回 HTTP 200 回應。

服務會傳回下列 JSON 格式的資料。

 ** [NextToken](#API_ListJournalKinesisStreamsForLedger_ResponseSyntax) **   <a name="qldb-ListJournalKinesisStreamsForLedger-response-NextToken"></a>
+ 如果 `NextToken`是空的，則已處理結果的最後一頁，而且不再擷取任何結果。
+ 如果 `NextToken` *不是*空的，則有更多結果可用。若要擷取下一頁的結果，請在後續`ListJournalKinesisStreamsForLedger`呼叫`NextToken`中使用 的值。
類型：字串  
長度限制：長度下限為 4。長度上限為 1024。  
模式：`^[A-Za-z-0-9+/=]+$`

 ** [Streams](#API_ListJournalKinesisStreamsForLedger_ResponseSyntax) **   <a name="qldb-ListJournalKinesisStreamsForLedger-response-Streams"></a>
目前與指定總帳相關聯的 QLDB 日誌串流。  
類型：[JournalKinesisStreamDescription](API_JournalKinesisStreamDescription.md) 物件陣列

## 錯誤
<a name="API_ListJournalKinesisStreamsForLedger_Errors"></a>

如需所有動作常見錯誤的資訊，請參閱[常見錯誤](CommonErrors.md)。

 ** InvalidParameterException **   
請求中的一或多個參數無效。  
HTTP 狀態碼：400

 ** ResourceNotFoundException **   
指定的資源不存在。  
HTTP 狀態碼：404

 ** ResourcePreconditionNotMetException **   
操作失敗，因為未事先滿足條件。  
HTTP 狀態碼：412

## 另請參閱
<a name="API_ListJournalKinesisStreamsForLedger_SeeAlso"></a>

如需在其中一種語言特定 AWS SDKs中使用此 API 的詳細資訊，請參閱下列內容：
+  [AWS 命令列介面](https://docs.aws.amazon.com/goto/aws-cli/qldb-2019-01-02/ListJournalKinesisStreamsForLedger) 
+  [AWS 適用於 .NET 的 SDK](https://docs.aws.amazon.com/goto/DotNetSDKV3/qldb-2019-01-02/ListJournalKinesisStreamsForLedger) 
+  [AWS 適用於 C\$1\$1 的 SDK](https://docs.aws.amazon.com/goto/SdkForCpp/qldb-2019-01-02/ListJournalKinesisStreamsForLedger) 
+  [AWS 適用於 Go 的 SDK v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qldb-2019-01-02/ListJournalKinesisStreamsForLedger) 
+  [AWS 適用於 Java V2 的開發套件](https://docs.aws.amazon.com/goto/SdkForJavaV2/qldb-2019-01-02/ListJournalKinesisStreamsForLedger) 
+  [AWS 適用於 JavaScript V3 的 SDK](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qldb-2019-01-02/ListJournalKinesisStreamsForLedger) 
+  [AWS 適用於 Kotlin 的 SDK](https://docs.aws.amazon.com/goto/SdkForKotlin/qldb-2019-01-02/ListJournalKinesisStreamsForLedger) 
+  [AWS 適用於 PHP V3 的 SDK](https://docs.aws.amazon.com/goto/SdkForPHPV3/qldb-2019-01-02/ListJournalKinesisStreamsForLedger) 
+  [AWS 適用於 Python 的 SDK](https://docs.aws.amazon.com/goto/boto3/qldb-2019-01-02/ListJournalKinesisStreamsForLedger) 
+  [AWS 適用於 Ruby V3 的 SDK](https://docs.aws.amazon.com/goto/SdkForRubyV3/qldb-2019-01-02/ListJournalKinesisStreamsForLedger) 