

Die vorliegende Übersetzung wurde maschinell erstellt. Im Falle eines Konflikts oder eines Widerspruchs zwischen dieser übersetzten Fassung und der englischen Fassung (einschließlich infolge von Verzögerungen bei der Übersetzung) ist die englische Fassung maßgeblich.

# ListLocations
<a name="API_ListLocations"></a>

Gibt eine Liste von Quell- und Zielorten zurück.

Wenn Sie mehr Standorte haben, als in einer Antwort zurückgegeben werden (d. h., die Antwort gibt nur eine gekürzte Liste Ihrer Agenten zurück), enthält die Antwort ein Token, das Sie in Ihrer nächsten Anfrage angeben können, um die nächste Seite mit Standorten abzurufen.

## Anforderungssyntax
<a name="API_ListLocations_RequestSyntax"></a>

```
{
   "Filters": [ 
      { 
         "Name": "string",
         "Operator": "string",
         "Values": [ "string" ]
      }
   ],
   "MaxResults": number,
   "NextToken": "string"
}
```

## Anforderungsparameter
<a name="API_ListLocations_RequestParameters"></a>

Informationen zu den Parametern, die alle Aktionen gemeinsam haben, finden Sie unter [Allgemeine Parameter](CommonParameters.md).

Die Anforderung akzeptiert die folgenden Daten im JSON-Format.

 ** [Filters](#API_ListLocations_RequestSyntax) **   <a name="DataSync-ListLocations-request-Filters"></a>
Sie können API-Filter verwenden, um die Liste der von zurückgegebenen Ressourcen einzugrenzen. `ListLocations` Um beispielsweise alle Aufgaben an einem bestimmten Quellspeicherort abzurufen, können Sie `ListLocations` with filter name `LocationType S3` and verwenden`Operator Equals`.  
Typ: Array von [LocationFilter](API_LocationFilter.md)-Objekten  
Erforderlich: Nein

 ** [MaxResults](#API_ListLocations_RequestSyntax) **   <a name="DataSync-ListLocations-request-MaxResults"></a>
Die maximale Anzahl von Standorten, die zurückgegeben werden sollen.  
Typ: Ganzzahl  
Gültiger Bereich: Mindestwert 0. Maximalwert 100.  
Erforderlich: Nein

 ** [NextToken](#API_ListLocations_RequestSyntax) **   <a name="DataSync-ListLocations-request-NextToken"></a>
Eine undurchsichtige Zeichenfolge, die die Position angibt, an der die nächste Liste von Orten beginnen soll.  
Typ: Zeichenfolge  
Längenbeschränkungen: Die maximale Länge beträgt 65535.  
Pattern: `[a-zA-Z0-9=_-]+`   
Erforderlich: Nein

## Antwortsyntax
<a name="API_ListLocations_ResponseSyntax"></a>

```
{
   "Locations": [ 
      { 
         "LocationArn": "string",
         "LocationUri": "string"
      }
   ],
   "NextToken": "string"
}
```

## Antwortelemente
<a name="API_ListLocations_ResponseElements"></a>

Wenn die Aktion erfolgreich ist, sendet der Service eine HTTP 200-Antwort zurück.

Die folgenden Daten werden vom Service im JSON-Format zurückgegeben.

 ** [Locations](#API_ListLocations_ResponseSyntax) **   <a name="DataSync-ListLocations-response-Locations"></a>
Ein Array, das eine Liste von Orten enthält.  
Typ: Array von [LocationListEntry](API_LocationListEntry.md)-Objekten

 ** [NextToken](#API_ListLocations_ResponseSyntax) **   <a name="DataSync-ListLocations-response-NextToken"></a>
Eine undurchsichtige Zeichenfolge, die die Position angibt, an der mit der Rückgabe der nächsten Ortsliste begonnen werden soll.  
Typ: Zeichenfolge  
Längenbeschränkungen: Die maximale Länge beträgt 65535.  
Pattern: `[a-zA-Z0-9=_-]+` 

## Fehler
<a name="API_ListLocations_Errors"></a>

Weitere Informationen zu den allgemeinen Fehlern, die bei allen Aktionen zurückgegeben werden, finden Sie unter [Häufige Fehler](CommonErrors.md).

 ** InternalException **   
Diese Ausnahme wird ausgelöst, wenn im Dienst ein Fehler auftritt. AWS DataSync   
HTTP Status Code: 500

 ** InvalidRequestException **   
Diese Ausnahme wird ausgelöst, wenn der Client eine falsch formatierte Anfrage sendet.  
HTTP-Statuscode: 400

## Weitere Informationen finden Sie unter:
<a name="API_ListLocations_SeeAlso"></a>

Weitere Informationen zur Verwendung dieser API in einer der sprachspezifischen Sprachen finden Sie im Folgenden AWS SDKs:
+  [AWS Befehlszeilenschnittstelle V2](https://docs.aws.amazon.com/goto/cli2/datasync-2018-11-09/ListLocations) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/datasync-2018-11-09/ListLocations) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/datasync-2018-11-09/ListLocations) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/datasync-2018-11-09/ListLocations) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/datasync-2018-11-09/ListLocations) 
+  [AWS SDK für JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/datasync-2018-11-09/ListLocations) 
+  [AWS SDK für Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/datasync-2018-11-09/ListLocations) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/datasync-2018-11-09/ListLocations) 
+  [AWS SDK für Python](https://docs.aws.amazon.com/goto/boto3/datasync-2018-11-09/ListLocations) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/datasync-2018-11-09/ListLocations) 