Mega S4 icon

Mega S4

Interact with Mega.nz S4 object storage (S3-compatible)

Bucket → Get Policy

AI-generated

Summary

Retrieve the policy of a specified Mega S4 bucket by providing its name.

Inputs

  • Bucket Name (required) — The name of the Mega S4 bucket to retrieve the policy for.

Output shape

a single record containing the bucket policy details

The returned data includes the policy associated with the specified bucket. If the policy does not exist or an error occurs, appropriate error handling or empty responses may be returned based on the Mega S4 API behavior.

Examples

Example 1: Getting the policy of the bucket named 'my-bucket'

Set 'Bucket Name' to 'my-bucket' to fetch its access policy.

Discussion