tencent cloud

Cloud Infinite

Release Notes and Announcements
Release Notes
Announcements
Product Introduction
Product Overview
Product Strengths
Use Cases
Feature Overview
Regions and Domains
Specifications and Limits
Billing
Billing Overview
Billing Mode
Billable Items
Free Tier
Payment Overdue
Viewing Bill Details
FAQs
Getting Started
Registering and Logging In
Bind Bucket
Uploading and Processing File
Downloading and Deleting Images
Unbinding Buckets
Using CI via COS
Features
Image Processing
Media Processing
Content Moderation
AI Content Recognition
File Processing
Smart Voice
File processing
User Guide
Overview
Bucket Management
Smart Toolbox
Job and Workflow
Data Monitoring
Usage statistics
Use Cases
Copyright Protection Solutions
Image Processing Practices
Working with API Authorization Policies
Workflow Practices
API Documentation
API Overview
Structure
Common Request Headers
Common Response Headers
Activate Vast Service
Image Processing
AI-Based Content Recognition
Smart Audio
Media Processing
Content Moderation
Document Processing
File Processing
Job and Workflow
Cloud Virus Detection
Error Codes
Request Signature
SDK Documentation
SDK Overview
Android SDK
iOS SDK
COS Android SDK
C SDK
C++ SDK
.NET(C#) SDK
Go SDK
COS iOS SDK
Java SDK
JavaScript SDK
Node.js SDK
PHP SDK
Python SDK
Mini Program SDK
Personal Information Protection Policy for SDK
Security and Compliance
Permission ‍Management
FAQs
Basic Settings
Document Processing
Media Processing
Content Recognition
Smart Audio
Agreements
Service Level Agreement
Contact Us
Glossary
DocumentationCloud InfiniteSecurity and CompliancePermission ‍ManagementAuthorizing a Sub-Account to Filter Buckets by Tag

Authorizing a Sub-Account to Filter Buckets by Tag

Focus Mode
Font Size
Last updated: 2024-01-31 16:44:15
CI allows you to filter buckets by tag in the console or via the API, which is implemented based on authorization by tag.


Authorization steps

1. Log in to the CAM console ‍with the root account Owner and enter the policy configuration page.
2. Grant sub-account SubUser access to buckets with the specified tag through the policy generator or policy syntax as follows:
Policy generator
Policy syntax
1. Go to the CAM ‍policy ‍configuration ‍page.
2. Click Create Custom Policy > Create by Policy Generator.
3. On the permission configuration page, configure the following:
Effect: Use the default option Allow.
Service: Select CI.
Operation: Select Read > DescribeCIBuckets ‍(querying the CI ‍bucket ‍list).
Resource: Select All resources.
Condition: Click Add other conditions. On the panel, configure the following:
Condition Key: Select qcs:resource_tag.
Operator: Select string_equal.
Condition Value: Enter a tag in the format of key&val. Here, replace key and val with the ‍specified ‍tag key and value respectively.
4. Click Next and enter the policy name.
5. Click Complete.
1. Go to the CAM ‍policy ‍configuration ‍page.
2. Click Create Custom Policy > Create by Policy Syntax.
3. Select Blank Template and click Next.
4. Enter a policy in the following format. Here, replace key and val with the specified tag key and value ‍respectively.
{
"statement": [
{
"action": [
"ci:DescribeCIBuckets"
],
"condition": {
"string_equal":{
"qcs:resource_tag": "key&val"
}
},
"effect": "allow",
"resource": [
"*"
]
}
],
"version": "2.0"
}
5. Click Complete.
3. Associate the policy with the sub-account SubUser by locating the policy created in step 2 on the Policies page and clicking Associate User/User Group/Role on the right.
4. In the pop-up window, select the sub-account SubUser and click OK.


Viewing in the console

1. Log in to the CI console with the sub-account SubUser.
2. The Bucket List page automatically displays the list of buckets to which the sub-account has access.
At this point, you have granted the sub-account access to buckets with the specified tag (key and val).

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback