

Les traductions sont fournies par des outils de traduction automatique. En cas de conflit entre le contenu d'une traduction et celui de la version originale en anglais, la version anglaise prévaudra.

# ListLayers
<a name="API_ListLayers"></a>

Répertorie les [couches AWS Lambda](https://docs.aws.amazon.com/lambda/latest/dg/invocation-layers.html) et affiche des informations sur la dernière version de chacune d’elles. Spécifiez un [identifiant d’environnement d’exécution](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) pour répertorier uniquement les couches indiquant qu’elles sont compatibles avec ce runtime. Spécifiez une architecture compatible afin de n’inclure que les couches compatibles avec cette [architecture de l’ensemble des instructions](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html).

## Syntaxe de la demande
<a name="API_ListLayers_RequestSyntax"></a>

```
GET /2018-10-31/layers?CompatibleArchitecture=CompatibleArchitecture&CompatibleRuntime=CompatibleRuntime&Marker=Marker&MaxItems=MaxItems HTTP/1.1
```

## Paramètres de demande URI
<a name="API_ListLayers_RequestParameters"></a>

La demande utilise les paramètres URI suivants.

 ** [CompatibleArchitecture](#API_ListLayers_RequestSyntax) **   <a name="lambda-ListLayers-request-CompatibleArchitecture"></a>
[Architecture de l’ensemble des instructions](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html) compatible.  
Valeurs valides : `x86_64 | arm64` 

 ** [CompatibleRuntime](#API_ListLayers_RequestSyntax) **   <a name="lambda-ListLayers-request-CompatibleRuntime"></a>
Identifiant d’environnement d’exécution. Par exemple, `java21`.  
La liste suivante contient les exécutions obsolètes. Pour plus d’informations, consultez la [Politique d’obsolescence de l’exécution](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy).  
Valeurs valides : `nodejs | nodejs4.3 | nodejs6.10 | nodejs8.10 | nodejs10.x | nodejs12.x | nodejs14.x | nodejs16.x | java8 | java8.al2 | java11 | python2.7 | python3.6 | python3.7 | python3.8 | python3.9 | dotnetcore1.0 | dotnetcore2.0 | dotnetcore2.1 | dotnetcore3.1 | dotnet6 | nodejs4.3-edge | go1.x | ruby2.5 | ruby2.7 | provided | provided.al2 | nodejs18.x | python3.10 | java17 | ruby3.2 | python3.11 | nodejs20.x | provided.al2023 | python3.12 | java21` 

 ** [Marker](#API_ListLayers_RequestSyntax) **   <a name="lambda-ListLayers-request-Marker"></a>
Jeton de pagination renvoyé par un appel précédent.

 ** [MaxItems](#API_ListLayers_RequestSyntax) **   <a name="lambda-ListLayers-request-MaxItems"></a>
Nombre maximum de résultats à renvoyer.  
Plage valide : Valeur minimum de 1. Valeur maximum de 50.

## Corps de la demande
<a name="API_ListLayers_RequestBody"></a>

La demande n’a pas de corps de requête.

## Syntaxe de la réponse
<a name="API_ListLayers_ResponseSyntax"></a>

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

{
   "Layers": [ 
      { 
         "LatestMatchingVersion": { 
            "CompatibleArchitectures": [ "string" ],
            "CompatibleRuntimes": [ "string" ],
            "CreatedDate": "string",
            "Description": "string",
            "LayerVersionArn": "string",
            "LicenseInfo": "string",
            "Version": number
         },
         "LayerArn": "string",
         "LayerName": "string"
      }
   ],
   "NextMarker": "string"
}
```

## Eléments de réponse
<a name="API_ListLayers_ResponseElements"></a>

Si l’action aboutit, le service renvoie une réponse HTTP 200.

Les données suivantes sont renvoyées au format JSON par le service.

 ** [Layers](#API_ListLayers_ResponseSyntax) **   <a name="lambda-ListLayers-response-Layers"></a>
Liste de couches de fonction.  
Type : tableau d’objets [LayersListItem](API_LayersListItem.md)

 ** [NextMarker](#API_ListLayers_ResponseSyntax) **   <a name="lambda-ListLayers-response-NextMarker"></a>
Un jeton de pagination renvoyé lorsque la réponse ne contient pas toutes les couches.  
Type : chaîne

## Erreurs
<a name="API_ListLayers_Errors"></a>

Pour plus d'informations sur les erreurs courantes pour toutes les actions, consultez [Erreurs courantes](CommonErrors.md).

 ** InvalidParameterValueException **   
L’un des paramètres dans la demande n’est pas valide.  
Code d’état HTTP : 400

 ** ServiceException **   
Le service AWS Lambda a rencontré une erreur interne.  
Code d’état HTTP : 500

 ** TooManyRequestsException **   
La limite de débit de demande a été dépassée. Pour plus d’informations, consultez [Quotas Lambda](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).  
Code d’état HTTP : 429

## consultez aussi
<a name="API_ListLayers_SeeAlso"></a>

Pour plus d’informations sur l’utilisation de cette API dans l’un des kits SDK AWS spécifiques au langage, consultez les ressources suivantes :
+  [Interface de ligne de commande AWS](https://docs.aws.amazon.com/goto/aws-cli/lambda-2015-03-31/ListLayers) 
+  [AWS SDK pour .NET](https://docs.aws.amazon.com/goto/DotNetSDKV3/lambda-2015-03-31/ListLayers) 
+  [Kit AWS SDK pour C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/lambda-2015-03-31/ListLayers) 
+  [Kit AWS SDK pour Go](https://docs.aws.amazon.com/goto/SdkForGoV1/lambda-2015-03-31/ListLayers) 
+  [Kit SDK AWS pour Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/lambda-2015-03-31/ListLayers) 
+  [AWSSDK pour V3 JavaScript ](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/lambda-2015-03-31/ListLayers) 
+  [Kit AWS SDK pour PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/lambda-2015-03-31/ListLayers) 
+  [Kit AWS SDK pour Python](https://docs.aws.amazon.com/goto/boto3/lambda-2015-03-31/ListLayers) 
+  [Kit SDK AWS pour Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/lambda-2015-03-31/ListLayers) 