Supported Actions in RBAC
This section describes the actions supported by CCI in role-based access control (RBAC).
Supported Actions
CCI provides system-defined policies that can be directly used in IAM. You can also create custom policies and use them to supplement system-defined policies, implementing more refined access control. Operations supported by policies are specific to APIs. The following are common concepts related to policies:
- Permissions: statements that allow or deny certain operations in a policy
- APIs: REST APIs that can be called by a user who has been granted specific permissions
- Actions: specific operations that are allowed or denied
- 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 or 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.
CCI supports the following actions in custom policies:
- Lifecycle management actions, such as the actions supported by the APIs for querying CCI namespace list, for querying the CCI pod list, for querying a CCI pod, for creating CCI pod, and for querying CCI pod logs
- ConfigMap management actions, such as the actions supported by the APIs for creating, deleting, modifying, creating, and deleting a ConfigMap or secret
Lifecycle Management Actions
|
Permission |
API |
Action |
IAM Project |
Enterprise Project |
|---|---|---|---|---|
|
Listing namespaces |
cci:namespace:list |
√ |
√ |
|
|
Creating a namespace |
cci:namespace:create |
√ |
√ |
|
|
Querying a namespace |
cci:namespace:get |
√ |
√ |
|
|
Deleting a namespace |
cci:namespace:delete |
√ |
√ |
|
|
Listing ConfigMaps in a namespace |
cci:configmap:list |
√ |
√ |
|
|
Creating a ConfigMap |
cci:configmap:create |
√ |
√ |
|
|
Replacing a ConfigMap |
cci:configmap:update |
√ |
√ |
|
|
Deleting a ConfigMap |
DELETE /apis/cci/v2/namespaces/{namespace}/configmaps/{name} |
cci:configmap:delete |
√ |
√ |
|
Listing pods in a namespace |
cci:pod:list |
√ |
√ |
|
|
Creating a pod |
cci:pod:create |
√ |
√ |
|
|
Querying a pod |
cci:pod:get |
√ |
√ |
|
|
Deleting a pod |
cci:pod:delete |
√ |
√ |
|
|
Listing secrets in a namespace |
cci:secret:list |
√ |
√ |
|
|
Creating a secret |
cci:secret:create |
√ |
√ |
|
|
Querying a secret |
cci:secret:get |
√ |
√ |
|
|
Replacing a secret |
cci:secret:update |
√ |
√ |
|
|
Deleting a secret |
cci:secret:delete |
√ |
√ |
|
|
Listing networks in a namespace |
cci:network:list |
√ |
√ |
|
|
Creating a network |
cci:network:create |
√ |
√ |
|
|
Replacing a network |
cci:network:update |
√ |
√ |
|
|
Running commands in a container |
cci:pod:exec |
√ |
√ |
|
|
Deleting a PersistentVolumeClaim |
DELETE /apis/cci/v2/namespaces/{namespace}/persistentvolumeclaims/{name} |
cci:persistentvolumeclaim:delete |
√ |
√ |
|
Creating a Service |
cci:service:create |
√ |
√ |
|
|
Replacing a Service |
cci:service:update |
√ |
√ |
|
|
Deleting a Service |
cci:service:delete |
√ |
√ |
|
|
Listing Deployments in a namespace |
cci:deployment:list |
√ |
√ |
|
|
Creating a Deployment |
cci:deployment:create |
√ |
√ |
|
|
Querying a Deployment |
cci:deployment:get |
√ |
√ |
|
|
Replacing a Deployment |
cci:deployment:update |
√ |
√ |
|
|
Deleting a Deployment |
DELETE /apis/cci/v2/namespaces/{namespace}/deployments/{name} |
cci:deployment:delete |
√ |
√ |
|
Updating a Deployment |
PATCH /apis/cci/v2/namespaces/{namespace}/deployments/{name} |
cci:deployment:update |
√ |
√ |
|
Listing HorizontalPodAutoscalers in a namespace |
GET /apis/cci/v2/namespaces/{namespace}/horizontalpodautoscalers |
cci:horizontalpodautoscaler:list |
√ |
√ |
|
Creating a HorizontalPodAutoscaler |
POST /apis/cci/v2/namespaces/{namespace}/horizontalpodautoscalers |
cci:horizontalpodautoscaler:create |
√ |
√ |
|
Querying a HorizontalPodAutoscaler |
GET /apis/cci/v2/namespaces/{namespace}/horizontalpodautoscalers/{name} |
cci:horizontalpodautoscaler:get |
√ |
√ |
|
Replacing a HorizontalPodAutoscaler |
PUT /apis/cci/v2/namespaces/{namespace}/horizontalpodautoscalers/{name} |
cci:horizontalpodautoscaler:update |
√ |
√ |
|
Deleting a HorizontalPodAutoscaler |
DELETE /apis/cci/v2/namespaces/{namespace}/horizontalpodautoscalers/{name} |
cci:horizontalpodautoscaler:delete |
√ |
√ |
|
Updating a HorizontalPodAutoscaler |
PATCH /apis/cci/v2/namespaces/{namespace}/horizontalpodautoscalers/{name} |
cci:horizontalpodautoscaler:update |
√ |
√ |
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.
For any further questions, feel free to contact us through the chatbot.
Chatbot