head-bucket

Determines if a bucket exists and if you have permission to access it.

  • If it exists, and you have permission to access it, the operation returns a 200 OK.

  • Otherwise, the operation might return 404 Not Found or 403 Forbidden.

Usage

head-bucket --bucket <value>

Supported Options

--bucket: Existing bucket name

Example

aws s3api head-bucket --endpoint http://<hostname>:<port_number> --profile testuser1 --bucket example_bucket

Loading...