Actions Supported by Policy-based Authorization
This section describes the actions supported by CTS in policy-based authorization.
Supported Actions
CTS provides system-defined policies that can be directly used in IAM. You can also create custom policies to supplement system-defined policies for more refined access control. Operations supported by policies are specific to APIs. The following are common concepts related to policies:
- Permissions: statements in a policy that allow or deny certain operations on specific resources under specific conditions.
- APIs: REST APIs that can be called by a user who has been granted specific permissions.
- Actions: specific operations that are allowed or denied in a custom policy.
- Dependencies: actions which a specific action depends on. When allowing an action for a user, you also need to allow any existing action dependencies for that user.
- IAM projects/Enterprise projects: the authorization scope of a custom policy. A custom policy can be applied to IAM projects or enterprise projects or both. Policies that contain actions for both IAM and enterprise projects can be used and applied for both IAM and Enterprise Management. Policies that contain actions only for IAM projects can be used and applied to IAM only. Administrators can check whether an action supports IAM projects or enterprise projects in the action list. For details about the differences between IAM and enterprise management, see Differences Between IAM and Enterprise Management.
| Permission | API | Action | Dependencies | IAM Project | Enterprise Project |
|---|---|---|---|---|---|
| Querying traces | GET /v3/{project_id}/traces | cts:trace:list | - | √ | x |
| Querying traces | GET /v2.0/{project_id}/{tracker_name}/trace | cts:trace:list | - | √ | x |
| Querying traces | GET /v1.0/{project_id}/{tracker_name}/trace | cts:trace:list | - | √ | x |
| Querying trackers | GET /v3/{project_id}/trackers | cts:tracker:list | obs:bucket:GetBucketAcl obs:bucket:ListAllMyBuckets | √ | √ |
| Querying trackers | GET /v1.0/{project_id}/tracker | cts:tracker:list | obs:bucket:GetBucketAcl obs:bucket:ListAllMyBuckets | √ | x |
| Creating a tracker | POST /v3/{project_id}/tracker | cts:tracker:create | lts:topics:list lts:topics:create lts:groups:list lts:groups:create obs:bucket:CreateBucket obs:bucket:HeadBucket obs:bucket:GetLifecycleConfiguration obs:bucket:PutLifecycleConfiguration obs:bucket:GetBucketAcl obs:bucket:PutBucketAcl kms:cmk:list | √ | √ |
| Creating a tracker | POST /v1.0/{project_id}/tracker | cts:tracker:create | lts:topics:list lts:topics:create lts:groups:list lts:groups:create obs:bucket:CreateBucket obs:bucket:HeadBucket obs:bucket:GetLifecycleConfiguration obs:bucket:PutLifecycleConfiguration obs:bucket:GetBucketAcl obs:bucket:PutBucketAcl kms:cmk:list | √ | x |
| Modifying a tracker | PUT /v3/{project_id}/tracker | cts:tracker:update | lts:topics:list lts:topics:create lts:groups:list lts:groups:create obs:bucket:CreateBucket obs:bucket:HeadBucket obs:bucket:GetLifecycleConfiguration obs:bucket:PutLifecycleConfiguration obs:bucket:GetBucketAcl obs:bucket:PutBucketAcl kms:cmk:list | √ | √ |
| Modifying a tracker | PUT /v1.0/{project_id}/tracker/{tracker_name} | cts:tracker:update | lts:topics:list lts:topics:create lts:groups:list lts:groups:create obs:bucket:CreateBucket obs:bucket:HeadBucket obs:bucket:GetLifecycleConfiguration obs:bucket:PutLifecycleConfiguration obs:bucket:GetBucketAcl obs:bucket:PutBucketAcl kms:cmk:list | √ | x |
| Deleting a tracker | DELETE /v3/{project_id}/trackers | cts:tracker:delete | - | √ | √ |
| Deleting a tracker | DELETE /v1.0/{project_id}/tracker | cts:tracker:delete | - | √ | x |
| Creating a key event notification | POST /v3/{project_id}/notifications | cts:notification:create | smn:topic:listTopic iam:users:listUsers iam:groups:listGroups | √ | x |
| Modifying a key event notification | PUT /v3/{project_id}/notifications | cts:notification:update | smn:topic:listTopic iam:users:listUsers iam:groups:listGroups | √ | x |
| Deleting a key event notification | DELETE /v3/{project_id}/notifications | cts:notification:delete | - | √ | x |
| Querying key event notifications | GET /v3/{project_id}/notifications/{notification_type} | cts:notification:list | - | √ | x |
| Querying the tracker quota of a tenant | GET /v3/{project_id}/quotas | cts:quota:get | - | √ | x |
| Querying all operations on a cloud service | GET /v3/{project_id}/operations | cts:notification:listOperation | - | √ | x |
| Querying audit log operators | GET /v3/{project_id}/user-resources | cts:trace:listTraceUser | - | √ | x |
| Checking whether data can be transferred to the configured OBS bucket | POST /v3/{domain_id}/checkbucket | cts:tracker:list | obs:bucket:ListAllMyBuckets | √ | x |
| Querying the resources involved in the traces | GET /v3/{domain_id}/resources | cts:trace:listResource | - | √ | x |
| Adding CTS resource tags in batches | POST /v3/{project_id}/{resource_type}/{resource_id}/tags/create | cts:tag:create | - | √ | x |
| Deleting CTS resource tags in batches | DELETE /v3/{project_id}/{resource_type}/{resource_id}/tags/delete | cts:tag:delete | - | √ | x |
| Querying resources by tag | POST /v3/{project_id}/{resource_type}/resource-instances/filter | cts:resource:filter | - | √ | x |
| Querying resource statistics | POST /v3/{project_id}/{resource_type}/resource-instances/count | cts:resource:count | - | √ | x |
| Querying resource tags | GET /v3/{project_id}/{resource_type}/{resource_id}/tags | cts:tag:listForResource | - | √ | x |
| Querying project tags | GET /v3/{project_id}/{resource_type}/tags | cts:tag:listForProject | - | √ | x |
| Adding a resource tag | POST /v3/{project_id}/{resource_type}/{resource_id}/tags | cts:resourceTag:create | - | √ | x |
| Deleting a resource tag | DELETE /v3/{project_id}/{resource_type}/{resource_id}/tags/{key} | cts:resourceTag:delete | - | √ | x |
| Modifying CTS configurations | PUT /v3/{project_id}/configuration | cts:system:updateConfig | - | √ | x |
| Querying CTS configurations | GET /v3/{project_id}/configuration | cts:system:getConfig | - | √ | x |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot