

# ListVersionsByFunction
<a name="API_ListVersionsByFunction"></a>

各バージョン固有の設定とともに、[バージョン](https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html)のリストを返します。Lambda は、呼び出しごとに最大 50 のバージョンを返します。

## リクエストの構文
<a name="API_ListVersionsByFunction_RequestSyntax"></a>

```
GET /2015-03-31/functions/FunctionName/versions?Marker=Marker&MaxItems=MaxItems HTTP/1.1
```

## URI リクエストパラメータ
<a name="API_ListVersionsByFunction_RequestParameters"></a>

リクエストでは、次の URI パラメータを使用します。

 ** [FunctionName](#API_ListVersionsByFunction_RequestSyntax) **   <a name="lambda-ListVersionsByFunction-request-FunctionName"></a>
Lambda 関数の名前  

**名前の形式**
+  **関数名** - `MyFunction`。
+  **関数 ARN** - `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`。
+  **一部の ARN** - `123456789012:function:MyFunction`。
完全な ARN にのみ適用される長さの制限。関数名のみを指定する場合、64 文字の長さに制限されます。  
長さの制限: 最小長は 1 です。最大長は 170 です。  
パターン: `(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_\.]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`   
必須: はい

 ** [Marker](#API_ListVersionsByFunction_RequestSyntax) **   <a name="lambda-ListVersionsByFunction-request-Marker"></a>
次のページの結果を取得する以前のリクエストによって返される、ページ割りトークンを指定します。

 ** [MaxItems](#API_ListVersionsByFunction_RequestSyntax) **   <a name="lambda-ListVersionsByFunction-request-MaxItems"></a>
返されるバージョンの最大数。数値を大きく設定しても、`ListVersionsByFunction` が各レスポンスで返す項目は最大 50 であることに注意してください。  
値の範囲: 最小値 は 1 です。最大値は 10,000 です。

## リクエストボディ
<a name="API_ListVersionsByFunction_RequestBody"></a>

リクエストにリクエスト本文がありません。

## レスポンスの構文
<a name="API_ListVersionsByFunction_ResponseSyntax"></a>

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

{
   "NextMarker": "string",
   "Versions": [ 
      { 
         "Architectures": [ "string" ],
         "CodeSha256": "string",
         "CodeSize": number,
         "DeadLetterConfig": { 
            "TargetArn": "string"
         },
         "Description": "string",
         "Environment": { 
            "Error": { 
               "ErrorCode": "string",
               "Message": "string"
            },
            "Variables": { 
               "string" : "string" 
            }
         },
         "EphemeralStorage": { 
            "Size": number
         },
         "FileSystemConfigs": [ 
            { 
               "Arn": "string",
               "LocalMountPath": "string"
            }
         ],
         "FunctionArn": "string",
         "FunctionName": "string",
         "Handler": "string",
         "ImageConfigResponse": { 
            "Error": { 
               "ErrorCode": "string",
               "Message": "string"
            },
            "ImageConfig": { 
               "Command": [ "string" ],
               "EntryPoint": [ "string" ],
               "WorkingDirectory": "string"
            }
         },
         "KMSKeyArn": "string",
         "LastModified": "string",
         "LastUpdateStatus": "string",
         "LastUpdateStatusReason": "string",
         "LastUpdateStatusReasonCode": "string",
         "Layers": [ 
            { 
               "Arn": "string",
               "CodeSize": number,
               "SigningJobArn": "string",
               "SigningProfileVersionArn": "string"
            }
         ],
         "LoggingConfig": { 
            "ApplicationLogLevel": "string",
            "LogFormat": "string",
            "LogGroup": "string",
            "SystemLogLevel": "string"
         },
         "MasterArn": "string",
         "MemorySize": number,
         "PackageType": "string",
         "RevisionId": "string",
         "Role": "string",
         "Runtime": "string",
         "RuntimeVersionConfig": { 
            "Error": { 
               "ErrorCode": "string",
               "Message": "string"
            },
            "RuntimeVersionArn": "string"
         },
         "SigningJobArn": "string",
         "SigningProfileVersionArn": "string",
         "SnapStart": { 
            "ApplyOn": "string",
            "OptimizationStatus": "string"
         },
         "State": "string",
         "StateReason": "string",
         "StateReasonCode": "string",
         "Timeout": number,
         "TracingConfig": { 
            "Mode": "string"
         },
         "Version": "string",
         "VpcConfig": { 
            "Ipv6AllowedForDualStack": boolean,
            "SecurityGroupIds": [ "string" ],
            "SubnetIds": [ "string" ],
            "VpcId": "string"
         }
      }
   ]
}
```

## レスポンス要素
<a name="API_ListVersionsByFunction_ResponseElements"></a>

アクションが成功すると、サービスは HTTP 200 レスポンスを返します。

サービスから以下のデータが JSON 形式で返されます。

 ** [NextMarker](#API_ListVersionsByFunction_ResponseSyntax) **   <a name="lambda-ListVersionsByFunction-response-NextMarker"></a>
さらに結果が利用可能な場合に含まれるページ割りトークン。  
型: 文字列

 ** [Versions](#API_ListVersionsByFunction_ResponseSyntax) **   <a name="lambda-ListVersionsByFunction-response-Versions"></a>
Lambda 関数バージョンのリスト。  
型: [FunctionConfiguration](API_FunctionConfiguration.md) オブジェクトの配列

## エラー
<a name="API_ListVersionsByFunction_Errors"></a>

すべてのアクションに共通のエラーについては、「[共通エラー](CommonErrors.md)」を参照してください。

 ** InvalidParameterValueException **   
リクエストに含まれているパラメータの 1 つが無効です。  
HTTP ステータスコード：400

 ** ResourceNotFoundException **   
リクエストで指定されたリソースは存在しません。  
HTTP ステータスコード: 404

 ** ServiceException **   
AWS Lambda サービスで内部エラーが発生しました。  
HTTP ステータスコード: 500

 ** TooManyRequestsException **   
リクエストスループット制限を超えました。詳細については、「[Lambda クォータ](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests)」を参照してください。  
HTTP ステータスコード: 429

## 以下の資料も参照してください。
<a name="API_ListVersionsByFunction_SeeAlso"></a>

言語固有の AWS SDK のいずれかでこの API を使用する方法の詳細については、以下を参照してください。
+  「[AWS コマンドラインインターフェイス](https://docs.aws.amazon.com/goto/aws-cli/lambda-2015-03-31/ListVersionsByFunction)」 
+  「[AWS SDK for .NET](https://docs.aws.amazon.com/goto/DotNetSDKV3/lambda-2015-03-31/ListVersionsByFunction)」 
+  「[AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/lambda-2015-03-31/ListVersionsByFunction)」 
+  「[AWS SDK for Go](https://docs.aws.amazon.com/goto/SdkForGoV1/lambda-2015-03-31/ListVersionsByFunction)」 
+  「[AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/lambda-2015-03-31/ListVersionsByFunction)」 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/lambda-2015-03-31/ListVersionsByFunction) 
+  「[AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/lambda-2015-03-31/ListVersionsByFunction)」 
+  「[AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/lambda-2015-03-31/ListVersionsByFunction)」 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/lambda-2015-03-31/ListVersionsByFunction) 