El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Show all

Creating a Bucket Policy with a Template

Updated on 2024-04-16 GMT+08:00

OBS Console provides bucket policy templates for eight typical scenarios. You can use these templates to quickly configure bucket policies.

Procedure

  1. In the bucket list, click the bucket you want to operate to go to the Objects page.
  2. In the navigation pane, choose Permissions > Bucket Policies.
  3. Click Create.
  4. Choose a policy template. For details about the parameters, see Bucket Policies and Object Policies.

    Table 1 Bucket policy templates

    Principal

    Resource

    Template

    Actions Allowed

    Advanced Settings

    All accounts

    Entire bucket (including the objects in it)

    Public Read

    Allows anonymous users to perform the following actions on a bucket and the objects in it:

    GetBucketLocation (to get the bucket location)

    GetObject (to obtain object content and metadata)

    GetObjectVersion (to obtain the content and metadata of a specified object version)

    Excluding the specified actions is not allowed.

    Public Read/Write

    Allows anonymous users to perform the following actions on a bucket and the objects in it:

    ListBucket (to list objects in the bucket and obtain the bucket metadata)

    ListBucketVersions (to list object versions in the bucket)

    GetBucketLocation (to get the bucket location)

    PutObject (to upload objects using PUT and POST, upload parts, initiate multipart uploads, and assemble parts)

    GetObject (to obtain object content and metadata)

    ModifyObjectMetaData (to modify object metadata)

    ListBucketMultipartUploads (to list multipart uploads)

    ListMultipartUploadParts (to list uploaded parts)

    AbortMultipartUpload (to abort multipart uploads)

    GetObjectVersion (to obtain the content and metadata of a specified object version)

    PutObjectAcl (to configure the object ACL)

    GetObjectVersionAcl (to obtain the ACL of a specified object version)

    GetObjectAcl (to obtain the object ACL)

    Excluding the specified actions is not allowed.

    Current account/Other accounts/Delegated accounts

    Entire bucket (including the objects in it)

    Bucket Read-Only

    Allows specified accounts to perform the following actions on a bucket and the objects in it:

    Get* (all GET actions)

    List* (all LIST actions)

    Excluding the specified actions is not allowed.

    Bucket Read/Write

    Allows specified accounts to perform all actions excluding the following ones on a bucket and the objects in it:

    DeleteBucket (to delete the bucket)

    PutBucketPolicy (to configure a bucket policy)

    PutBucketAcl (to configure the bucket ACL)

    The specified actions are excluded.

    All accounts/Current account/Other accounts/Delegated accounts

    Current bucket + Specified objects

    Directory Read-Only

    Allows all accounts or specified accounts to perform the following actions on the current bucket and the specified resources in it:

    GetObject (to obtain object content and metadata)

    GetObjectVersion (to obtain the content and metadata of a specified object version)

    GetObjectVersionAcl (to obtain the ACL of a specified object version)

    GetObjectAcl (to obtain the object ACL)

    ListBucket (to list objects in the bucket and obtain the bucket metadata)

    ListBucketVersions (to list object versions in the bucket)

    GetBucketLocation (to get the bucket location)

    NOTE:

    If you apply the policy to All accounts, ListBucket and ListBucketVersions are not included in the template.

    Excluding the specified actions is not allowed.

    Directory Read/Write

    Allows all accounts or specified accounts to perform the following actions on the current bucket and the specified resources in it:

    PutObject (to upload objects using PUT and POST, upload parts, initiate multipart uploads, and assemble parts)

    GetObject (to obtain object content and metadata)

    GetObjectVersion (to obtain the content and metadata of a specified object version)

    ModifyObjectMetaData (to modify object metadata)

    ListBucketMultipartUploads (to list multipart uploads)

    ListMultipartUploadParts (to list uploaded parts)

    AbortMultipartUpload (to abort multipart uploads)

    GetObjectVersionAcl (to obtain the ACL of a specified object version)

    GetObjectAcl (to obtain the object ACL)

    PutObjectAcl (to configure the object ACL)

    ListBucket (to list objects in the bucket and obtain the bucket metadata)

    ListBucketVersions (to list object versions in the bucket)

    GetBucketLocation (to get the bucket location)

    Excluding the specified actions is not allowed.

    All accounts/Current account/Other accounts/Delegated accounts

    Specified objects

    Object Read-Only

    Allows all accounts or specified accounts to perform the following actions on specified resources in the bucket:

    GetObject (to obtain object content and metadata)

    GetObjectVersion (to obtain the content and metadata of a specified object version)

    GetObjectVersionAcl (to obtain the ACL of a specified object version)

    GetObjectAcl (to obtain the object ACL)

    Excluding the specified actions is not allowed.

    Object Read/Write

    Allows all accounts or specified accounts to perform the following actions on specified resources in the bucket:

    PutObject (to upload objects using PUT and POST, upload parts, initiate multipart uploads, and assemble parts)

    GetObject (to obtain object content and metadata)

    GetObjectVersion (to obtain the content and metadata of a specified object version)

    ModifyObjectMetaData (to modify object metadata)

    ListMultipartUploadParts (to list uploaded parts)

    AbortMultipartUpload (to abort multipart uploads)

    GetObjectVersionAcl (to obtain the ACL of an object version)

    GetObjectAcl (to obtain the object ACL)

    PutObjectAcl (to configure the object ACL)

    Excluding the specified actions is not allowed.

  5. Complete the bucket policy configuration.

    Some bucket policy templates require a configuration of principals or resources. You can also change the existing settings of a template, including the policy name, principals, resources, actions, and conditions. For details, see Bucket Policy Parameters.

  6. Click Create in the lower right corner.

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback