

# ListTrustStores


Lists trust stores.

## Request Syntax


```
POST /2020-05-31/trust-stores HTTP/1.1
<?xml version="1.0" encoding="UTF-8"?>
<ListTrustStoresRequest xmlns="http://cloudfront.amazonaws.com/doc/2020-05-31/">
   <Marker>string</Marker>
   <MaxItems>integer</MaxItems>
</ListTrustStoresRequest>
```

## URI Request Parameters


The request does not use any URI parameters.

## Request Body


The request accepts the following data in XML format.

 ** [ListTrustStoresRequest](#API_ListTrustStores_RequestSyntax) **   <a name="cloudfront-ListTrustStores-request-ListTrustStoresRequest"></a>
Root level tag for the ListTrustStoresRequest parameters.  
Required: Yes

 ** [Marker](#API_ListTrustStores_RequestSyntax) **   <a name="cloudfront-ListTrustStores-request-Marker"></a>
Use this field when paginating results to indicate where to begin in your list. The response includes items in the list that occur after the marker. To get the next page of the list, set this field's value to the value of `NextMarker` from the current page's response.  
Type: String  
Required: No

 ** [MaxItems](#API_ListTrustStores_RequestSyntax) **   <a name="cloudfront-ListTrustStores-request-MaxItems"></a>
The maximum number of trust stores that you want returned in the response.  
Type: Integer  
Required: No

## Response Syntax


```
HTTP/1.1 200
<?xml version="1.0" encoding="UTF-8"?>
<ListTrustStoresResult>
   <NextMarker>string</NextMarker>
   <TrustStoreList>
      <TrustStoreSummary>
         <Arn>string</Arn>
         <ETag>string</ETag>
         <Id>string</Id>
         <LastModifiedTime>timestamp</LastModifiedTime>
         <Name>string</Name>
         <NumberOfCaCertificates>integer</NumberOfCaCertificates>
         <Reason>string</Reason>
         <Status>string</Status>
      </TrustStoreSummary>
   </TrustStoreList>
</ListTrustStoresResult>
```

## Response Elements


If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in XML format by the service.

 ** [ListTrustStoresResult](#API_ListTrustStores_ResponseSyntax) **   <a name="cloudfront-ListTrustStores-response-ListTrustStoresResult"></a>
Root level tag for the ListTrustStoresResult parameters.  
Required: Yes

 ** [NextMarker](#API_ListTrustStores_ResponseSyntax) **   <a name="cloudfront-ListTrustStores-response-NextMarker"></a>
Indicates the next page of trust stores. To get the next page of the list, use this value in the `Marker` field of your request.  
Type: String

 ** [TrustStoreList](#API_ListTrustStores_ResponseSyntax) **   <a name="cloudfront-ListTrustStores-response-TrustStoreList"></a>
The trust store list.  
Type: Array of [TrustStoreSummary](API_TrustStoreSummary.md) objects

## Errors


For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDenied **   
Access denied.  
HTTP Status Code: 403

 ** EntityNotFound **   
The entity was not found.  
HTTP Status Code: 404

 ** InvalidArgument **   
An argument is invalid.  
HTTP Status Code: 400

## See Also


For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon Command Line Interface V2](https://docs.amazonaws.cn/goto/cli2/cloudfront-2020-05-31/ListTrustStores) 
+  [Amazon SDK for .NET V4](https://docs.amazonaws.cn/goto/DotNetSDKV4/cloudfront-2020-05-31/ListTrustStores) 
+  [Amazon SDK for C\$1\$1](https://docs.amazonaws.cn/goto/SdkForCpp/cloudfront-2020-05-31/ListTrustStores) 
+  [Amazon SDK for Go v2](https://docs.amazonaws.cn/goto/SdkForGoV2/cloudfront-2020-05-31/ListTrustStores) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/cloudfront-2020-05-31/ListTrustStores) 
+  [Amazon SDK for JavaScript V3](https://docs.amazonaws.cn/goto/SdkForJavaScriptV3/cloudfront-2020-05-31/ListTrustStores) 
+  [Amazon SDK for Kotlin](https://docs.amazonaws.cn/goto/SdkForKotlin/cloudfront-2020-05-31/ListTrustStores) 
+  [Amazon SDK for PHP V3](https://docs.amazonaws.cn/goto/SdkForPHPV3/cloudfront-2020-05-31/ListTrustStores) 
+  [Amazon SDK for Python](https://docs.amazonaws.cn/goto/boto3/cloudfront-2020-05-31/ListTrustStores) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/cloudfront-2020-05-31/ListTrustStores) 