Updated on 2024-10-24 GMT+08:00
Configuring an Object Policy
Object policies are applied to the objects in a bucket. With an object policy, you can configure conditions and actions for objects in a bucket.
Procedure
- In the navigation pane of OBS Console, choose Object Storage.
- In the bucket list, click the bucket you want to operate. The Objects page is displayed.
- In the row containing the object for which you want to configure a policy, choose More > Configure Object Policy in the Operation column. The Configure Object Policy page is displayed.
You can customize a policy or use a preset template to configure one as needed.
- Using a preset template: The system has object policy templates preset for four typical scenarios. You can use these templates to quickly configure object policies. For details about each template, see Bucket Policy Parameters.
- Customizing a policy: You can also customize an object policy based on your needs. A custom object policy consists of five basic elements: effects, principals, resources, actions, and conditions, similar to a bucket policy. For details, see Bucket Policy Parameters. The resource is the selected object and is automatically configured by the system. For details about how to customize an object policy, see Creating a Custom Bucket Policy (Visual Editor). Different from customizing a bucket policy, to customize an object policy, you:
- Do not need to specify the resource.
- Can configure only object-related actions.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot