doc-exports/docs/cci/api-ref/cci_02_0083.html
Dong, Qiu Jian 21dca87c32 CCI API initial upload
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com>
Co-authored-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
Co-committed-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
2024-10-14 11:16:04 +00:00

32 KiB

Category of CCI Actions

Table 1 Namespace management actions

Permissions

API

Action

IAM Project

Enterprise Project

Creating a Namespace

POST /apis/cci/v2/namespaces

CCI:namespace:create

Reading a Namespace

GET /apis/cci/v2/namespaces/{name}

CCI:namespace:get

Listing Namespaces

GET /apis/cci/v2/namespaces

CCI:namespace:list

Deleting a Namespace

DELETE /apis/cci/v2/namespaces/{name}

CCI:namespace:delete

Table 2 Pod management actions

Permissions

API

Action

IAM Project

Enterprise Project

Creating a Pod

POST /apis/cci/v2/namespaces/{namespace}/pods

CCI:namespaceSubResource:Create

Reading a Pod

GET /apis/cci/v2/namespaces/{namespace}/pods/{name}

CCI:namespaceSubResource:Get

Reading All Pods Under a Specified Namespace

GET /apis/cci/v2/namespaces/{namespace}/pods

CCI:namespaceSubResource:List

Reading Pod Logs

GET /apis/cci/v2/namespaces/{namespace}/pods/{name}/log

CCI:namespaceSubResource:Get

Listing All Pods of a User

GET /apis/cci/v2/pods

cci:namespaceSubResource:List

Replacing a Pod

PUT /apis/cci/v2/namespaces/{namespace}/pods/{name}

CCI:namespaceSubResource:Update

Updating a Pod

PATCH /apis/cci/v2/namespaces/{namespace}/pods/{name}

CCI:namespaceSubResource:Update

Deleting a Pod

DELETE /apis/cci/v2/namespaces/{namespace}/pods/{name}

CCI:namespaceSubResource:Delete

Table 3 Network management actions

Permissions

API

Action

IAM Project

Enterprise Project

Creating a Network

POST /apis/yangtse/v2/namespaces/{namespace}/networks

  • CCI:network:Create
  • vpc:vpcs:create
  • vpc:ports:create
  • vpc:vpcs:get
  • vpc:subnets:get
  • vpc:publicIps:get
  • vpc:bandwidths:get
  • vpc:ports:get
  • vpc:peerings:get
  • vpc:quotas:list
  • vpc:privateIps:get
  • vpc:securityGroups:get
  • vpc:securityGroupRules:get
  • vpc:networks:get
  • vpc:routers:get
  • vpc:floatingIps:get
  • vpc:firewallRules:get

Reading a Network

GET /apis/yangtse/v2/namespaces/{namespace}/networks/{name}

CCI:network:Get

Listing Networks

GET /apis/yangtse/v2/namespaces/{namespace}/networks

CCI:network:List

Deleting a Network

DELETE /apis/yangtse/v2/namespaces/{namespace}/networks/{name}

  • CCI:network:Delete
  • vpc:vpcs:delete
  • vpc:ports:delete

Replacing a network

PUT

/apis/yangtse/v2/namespaces/{namespace}/network

  • CCI:network:Update
  • vpc:vpcs:update
  • vpc:ports:update

Table 4 ConfigMap management actions

Permissions

API

Action

IAM Project

Enterprise Project

Creating a ConfigMap

POST /apis/cci/v2/namespaces/{namespace}/configmaps

CCI:namespaceSubResource:Create

Reading a ConfigMap

GET /apis/cci/v2/namespaces/{namespace}/configmaps/{name}

CCI:namespaceSubResource:Get

Listing ConfigMaps

GET /apis/cci/v2/namespaces/{namespace}/configmaps

CCI:namespaceSubResource:List

Replacing a ConfigMap

PUT /apis/cci/v2/namespaces/{namespace}/configmaps/{name}

CCI:namespaceSubResource:Update

Updating a ConfigMap

PATCH /apis/cci/v2/namespaces/{namespace}/configmaps/{name}

CCI:namespaceSubResource:Update

Deleting a ConfigMap

DELETE /apis/cci/v2/namespaces/{namespace}/configmaps/{name}

CCI:namespaceSubResource:Delete

Table 5 Secret management actions

Permissions

API

Action

IAM Project

Enterprise Project

Creating a Secret

POST /apis/cci/v2/namespaces/{namespace}/secrets

CCI:namespaceSubResource:Create

Querying a secret

GET /apis/cci/v2/namespaces/{namespace}/secrets/{name}

CCI:namespaceSubResource:Get

Listing all secrets

GET /apis/cci/v2/namespaces/{namespace}/secrets/{name}

CCI:namespaceSubResource:List

Replacing a Secret

PUT /apis/cci/v2/namespaces/{namespace}/secrets/{name}

CCI:namespaceSubResource:Update

Updating a Secret

PATCH /apis/cci/v2/namespaces/{namespace}/secrets/{name}

CCI:namespaceSubResource:Update

Deleting a Secret

DELETE /apis/cci/v2/namespaces/{namespace}/secrets/{name}

CCI:namespaceSubResource:Delete