

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# ListPickupLocations
<a name="API_ListPickupLocations"></a>

**catatan**  
 AWS Snowball Edge tidak lagi tersedia untuk pelanggan baru. Pelanggan baru harus [AWS DataSync](https://aws.amazon.com/datasync/)mencari transfer online, [Terminal Transfer AWS Data untuk transfer](https://aws.amazon.com/data-transfer-terminal/) fisik yang aman, atau solusi AWS Mitra. Untuk komputasi tepi, jelajahi [AWS Outposts](https://aws.amazon.com/outposts/).

Daftar lokasi dari mana pelanggan dapat memilih untuk mengambil perangkat.

## Sintaksis Permintaan
<a name="API_ListPickupLocations_RequestSyntax"></a>

```
{
   "MaxResults": number,
   "NextToken": "string"
}
```

## Parameter Permintaan
<a name="API_ListPickupLocations_RequestParameters"></a>

Untuk informasi tentang parameter yang umum untuk semua tindakan, lihat [Parameter Umum](CommonParameters.md).

Permintaan menerima data berikut dalam format JSON.

 ** [MaxResults](#API_ListPickupLocations_RequestSyntax) **   <a name="Snowball-ListPickupLocations-request-MaxResults"></a>
Jumlah maksimum lokasi untuk daftar per halaman.  
Jenis: Integer  
Rentang Valid: Nilai minimum 0. Nilai maksimum 100.  
Wajib: Tidak

 ** [NextToken](#API_ListPickupLocations_RequestSyntax) **   <a name="Snowball-ListPickupLocations-request-NextToken"></a>
Permintaan HTTP adalah stateless. Untuk mengidentifikasi apa objek "berikutnya" dalam daftar objek `ListPickupLocationsRequest`, Anda memiliki opsi untuk menentukan `NextToken` sebagai titik mulai untuk daftar yang Anda hasilkan.  
Tipe: String  
Batasan Panjang: Panjang minimum 1. Panjang maksimum 1024.  
Pola: `.*`   
Diperlukan: Tidak

## Sintaksis Respons
<a name="API_ListPickupLocations_ResponseSyntax"></a>

```
{
   "Addresses": [ 
      { 
         "AddressId": "string",
         "City": "string",
         "Company": "string",
         "Country": "string",
         "IsRestricted": boolean,
         "Landmark": "string",
         "Name": "string",
         "PhoneNumber": "string",
         "PostalCode": "string",
         "PrefectureOrDistrict": "string",
         "StateOrProvince": "string",
         "Street1": "string",
         "Street2": "string",
         "Street3": "string",
         "Type": "string"
      }
   ],
   "NextToken": "string"
}
```

## Elemen Respons
<a name="API_ListPickupLocations_ResponseElements"></a>

Jika tindakan berhasil, layanan mengirimkan kembali respons HTTP 200.

Layanan mengembalikan data berikut dalam format JSON.

 ** [Addresses](#API_ListPickupLocations_ResponseSyntax) **   <a name="Snowball-ListPickupLocations-response-Addresses"></a>
Informasi tentang alamat lokasi penjemputan.  
Tipe: Array objek [Address](API_Address.md)

 ** [NextToken](#API_ListPickupLocations_ResponseSyntax) **   <a name="Snowball-ListPickupLocations-response-NextToken"></a>
Permintaan HTTP adalah stateless. Untuk mengidentifikasi apa objek "berikutnya" dalam daftar objek `ListPickupLocationsResult`, Anda memiliki opsi untuk menentukan `NextToken` sebagai titik mulai untuk daftar yang Anda hasilkan.  
Tipe: String  
Batasan Panjang: Panjang minimum 1. Panjang maksimum 1024.  
Pola: `.*` 

## Kesalahan
<a name="API_ListPickupLocations_Errors"></a>

Untuk informasi tentang kesalahan yang umum untuk semua tindakan, lihat [Jenis Kesalahan Umum](CommonErrors.md).

 ** InvalidResourceException **   
Sumber daya yang ditentukan tidak dapat ditemukan. Periksa informasi yang Anda berikan dalam permintaan terakhir Anda, dan coba lagi.    
 ** ResourceType **   
Nilai sumber daya yang disediakan tidak valid.
Kode Status HTTP: 400

## Contoh
<a name="API_ListPickupLocations_Examples"></a>

### Contoh
<a name="API_ListPickupLocations_Example_1"></a>

Contoh ini menggambarkan salah satu penggunaan. ListPickupLocations

```
{
    "id": "to-get-a-list-of-locations-from-which-the-customer-can-choose-to-pickup-a-device-1482542167627",
    "title": "To get a list of locations from which the customer can choose to pickup a device.",
    "description": "Returns a specified number of Address objects. Each Address is a pickup location address for Snowball Edge devices.",
    "input": {},
    "output": {
       "Addresses": [
        {
          "City": "Seattle",
          "Name": "My Name",
          "AddressId": "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b",
          "Street1": "123 Main Street",
          "Company": "My Company",
          "PhoneNumber": "425-555-5555",
          "Country": "US",
          "PostalCode": "98101",
          "StateOrProvince": "WA"
        }
      ]
    },
    "comments": {}
}
```

## Lihat Juga
<a name="API_ListPickupLocations_SeeAlso"></a>

Untuk informasi selengkapnya tentang penggunaan API ini di salah satu bahasa khusus AWS SDKs, lihat berikut ini:
+  [AWS Antarmuka Baris Perintah V2](https://docs.aws.amazon.com/goto/cli2/snowball-2016-06-30/ListPickupLocations) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/snowball-2016-06-30/ListPickupLocations) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/snowball-2016-06-30/ListPickupLocations) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/snowball-2016-06-30/ListPickupLocations) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/snowball-2016-06-30/ListPickupLocations) 
+  [AWS SDK untuk V3 JavaScript ](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/snowball-2016-06-30/ListPickupLocations) 
+  [AWS SDK para Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/snowball-2016-06-30/ListPickupLocations) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/snowball-2016-06-30/ListPickupLocations) 
+  [AWS SDK untuk Python](https://docs.aws.amazon.com/goto/boto3/snowball-2016-06-30/ListPickupLocations) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/snowball-2016-06-30/ListPickupLocations) 