All Products
Search
Document Center

Object Storage Service:0003-00000401

Last Updated:Apr 10, 2024

Problem description

The request is denied by the Virtual Private Cloud (VPC) policy.

Causes

A policy is added to the VPC where the client that initiates the request resides. As a result, unauthorized buckets cannot be accessed within the VPC.

Examples

The following VPC policy is configured to allow access to resources in the examplebucket bucket. Access to other unauthorized buckets is denied.

{
  "Version": "1",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "oss:*",
      "Principal": "*",
      "Resource": [
                    "acs:oss:*:*:examplebucket",
                    "acs:oss:*:*:examplebucket/*"
            ]
    }
  ]
}

Solutions

Modify the VPC policy based on access requirements. For more information, see Tutorial: Use VPC policies and bucket policies to control data access.