list-parts

Prev Next

Available in Classic and VPC

Get the list of parts uploaded through a specific multipart upload.

Commands

The command statement is as follows:

aws s3api list-parts --bucket <value> --key <value> --upload-id <value> [--options]

Parameter

The following describes the parameters.

Parameter Type Required Description Restrictions
--bucket <value> string Y Target bucket for querying the multipart upload list -
--key <value> string Y Name (key value) of the uploaded object -
--upload-id <value> string Y ID that identifies multipart uploads -
--endpoint-url <value> string Y Specify the default URL for command calls. It is only available for the KR Region. See Ncloud Storage overview for call domain information.
--starting-token <value> string N Specify the location to start the call from. -
--page-size <value> integer N -
--max-items <value> integer N Specify the number of listings for each response. Up to 1000 supported
--cli-input-json | --cli-input-yaml string N Enter arguments from the provided json or yaml string. You can't specify json and yaml together.
--generate-cli-skeleton <value> integer N Create a parameter template that can be used as input later without executing the API command. -
--debug boolean N Use debug logging. -
--no-verify-ssl boolean N Redefine the default behavior for validating SSL certificates. -
--no-paginate boolean N Disable automatic pagination, call only the first page for results. -
--output <value> string N Specify the format of response results. Available options
  • json
  • text
  • table
  • yaml
  • yaml-stream
--query <value> string N JMESPath query to use for filtering response data -
--profile <value> string N Use a specific profile in the credentials file. -
--region <value> string N Specify the Region. Only KR is supported.
--color <value> string N Set output color. Available options
  • on
  • off
  • auto
--no-sign-request boolean N Disable credential loading. -
--ca-bundle <value> string N Specify the CA certificate to use when verifying SSL certificates. -
--cli-read-timeout <value> int N Maximum read time; entering 0 changes it to a blocked status instead of a timeout. It is set to 60 seconds by default.
--cli-connect-timeout <value> int N Maximum connection time; entering 0 changes it to a blocked status instead of a timeout. It is set to 60 seconds by default.
--no-cli-pager boolean N Disable the CLI pager for response values. -
--cli-auto-prompt boolean N Enable automatic prompting for CLI input parameters. -
--no-cli-auto-prompt boolean N Disable automatic prompting for CLI input parameters. -

Permission

If a sub account user wants to use this command, they need the View/ListMultipartUploadParts action permission.

Examples

This section describes an example of calling and responding to the list-parts command.

Get list of ongoing multipart uploads

Call examples

You can query the list of parts that have already been uploaded by specifying the upload ID of the part to be queried and calling the command. The following is a call example.

aws s3api list-parts --bucket bucket-a --key 'multipart/01' \
--upload-id 123cccc3-0898-11f0-b2fb-d4f5ef94c600 \
--endpoint-url=http://kr.ncloudstorage.com 

Response example

The response example is as follows:

{
    "Owner": {
        "DisplayName": "1234567",
        "ID": "1234567"
    },
    "Parts": [
        {
            "LastModified": "2024-11-21T16:27:16+00:00",
            "PartNumber": 1,
            "ETag": "\"12345678a25bc72de9fg3094h1f30ij6\"",
            "Size": 5242880
        },
        {
            "LastModified": "2024-11-21T16:35:16+00:00",
            "PartNumber": 2,
            "ETag": "\"19900927a55bc72de9fg3094h1f30ek6\"",
            "Size": 5242880
        },
        {
            "LastModified": "2024-11-21T16:39:16+00:00",
            "PartNumber": 3,
            "ETag": "\"f7c9381e841abvc9c9ec83406f0159c8\"",
            "Size": 5242880
        }
    ],
    "StorageClass": "STANDARD"
}

Related commands

Related commands are as follows: