dcloud s3 bucket-objects count

How many objects, older versions and delete markers a folder or the bucket holds

IAM s3:ListBucketVersionsRead

Answers { prefix, objects, objectBytes, olderVersions, deleteMarkers, totalBytes, complete }. Reads at most 10,000 entries; complete: false means the numbers are a floor.

Synopsis

dcloud s3 bucket-objects count name [flags]

Arguments

  • <name>Required

    string

    Also accepted as --name. Constraints: 3-63 chars, /^[a-z0-9][a-z0-9-]*[a-z0-9]$/

Flags

  • --prefixOptional

    string

    A folder ending in /; absent: the whole bucket

    Constraints: max 1024 chars

Example

dcloud s3 bucket-objects count name

Generated from the API description, the same one the API checks requests against and the CLI is built from.