Console API
  1. S3
Console API
  • User
    • User Info
      GET
  • Tenant / Regions
    • Get Regions & Tenant info
      GET
    • Get Tenant Info
      GET
  • VPC
    • Get VPC List
      GET
    • Rename VPC
      PUT
  • Images
    • Get images
      GET
  • Flavors
    • Get flavors
      GET
  • Storage Policy
    • List
      GET
  • Instances
    • List
      GET
    • Detail
      GET
    • Security Group
      GET
    • Create instance
      POST
    • Power off
      POST
    • Reboot
      POST
    • Power on
      POST
    • Terminate
      POST
    • Resize
      POST
    • Lock Termination
      POST
    • Rename
      POST
    • Manage tag
      POST
  • Subnet
    • List
    • Create
    • Rename
    • Delete
    • Manage tags
  • Security group
    • Security Group List
    • Security Group Detail
    • Rule Types
    • Create Security Group
    • Create Rule
    • Apply to private ip
    • Delete Rule
    • Delete security group
    • Manage tag
  • Floating IP
    • List
    • Allocate
    • Connect to instance
    • Disconnect
    • Release
    • Manage tag
  • Activity Logs
    • List
  • Tags
    • Lists
  • Iam
    • Add user to user group
    • Get all user groups
    • Create user group
    • Update user group
    • Get roles
    • Get user vpcs
  • Billing
    • Bill
      • Get bills by date
      • Get Bills by paging
      • Bill Info
      • Bill service types
  • Project
    • Get projects
  • S3
    • Get bucket policy
      GET
    • List buckets
      GET
    • Get s3 service enabled
      GET
  1. S3

Get bucket policy

Developing
GET
/api/v1/vmware/vpc/00e2ef8c-913f-44f8-abff-6f48ad22ec4f/s3/d8c82109-3d17-4ac2-8b21-5fedb2d81c54/bucket/aaa/get-policy

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
authorization
string 
required
Example:
Bearer xxxxx
orgid
string 
required
Example:
b849aab5-a971-4c0f-b547-baa72070337a
priority
string 
required
Example:
u=1, i
sentry-trace
string 
required
Example:
34585baead2a4ed19c040bc98f124d10-82a802c43f707802-1

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v1/vmware/vpc/00e2ef8c-913f-44f8-abff-6f48ad22ec4f/s3/d8c82109-3d17-4ac2-8b21-5fedb2d81c54/bucket/aaa/get-policy' \
--header 'authorization: Bearer xxxxx' \
--header 'orgid: b849aab5-a971-4c0f-b547-baa72070337a' \
--header 'priority: u=1, i' \
--header 'sentry-trace: 34585baead2a4ed19c040bc98f124d10-82a802c43f707802-1'

Responses

🟢200Success
application/json
Body
status
boolean 
required
policy
string 
required
string 
optional
Example
{
    "status": true,
    "policy": "{\"Version\": \"2012-10-17\", \"Id\": \"demo\", \"Statement\": [{\"Sid\": \"Stmt7738437740335\", \"Effect\": \"Allow\", \"Principal\": \"*\", \"Action\": \"s3:*\", \"Resource\": [\"arn:aws:s3:::all-migrate-jobs-han\", \"arn:aws:s3:::all-migrate-jobs-han/*\"], \"Condition\": {}}]}"
}
Modified at 2025-06-06 08:36:49
Previous
Get projects
Next
List buckets
Built with