API Overview
APIs provided by Cloud Container Instance (CCI) are classified into two types: proprietary APIs and Kubernetes-native APIs. With these APIs, you can use all functions provided by CCI, including creating Deployments and StatefulSets.
|
Type |
Subtype |
Description |
|---|---|---|
|
CCI proprietary APIs |
Manage networks, including creating, querying, modifying, and deleting networks. Network is a new object in CCI that defines the mapping relationship between a network of a namespace in Kubernetes and HUAWEI CLOUD VPC and subnet. |
|
|
Manage extended PersistentVolumeClaims (PVCs), including importing storage devices, querying imported PVCs, and unbinding storage devices. |
||
|
Kubernetes-native APIs |
Manage namespaces, including creating, querying, modifying, and deleting namespaces. A namespace provides a method of allocating resources among multiple users. When you have a large number of projects and personnel, you can define namespaces by project attributes, such as production, test, and development. |
|
|
Manage pods, including querying pods. A pod is the smallest and simplest unit in the Kubernetes object model that you create or deploy. A pod encapsulates one or more containers, storage resources, an independent network IP address, and a policy for managing container running. |
||
|
Manage Deployments, including creating, querying, modifying, and deleting Deployments. Deployment is a type of pod controller. A Deployment can contain one or more pod replicas. Each pod replica has the same role. Therefore, the system automatically distributes requests to multiple pod replicas of a Deployment. All pod replicas in a Deployment share storage volumes. |
||
|
Manage StatefulSets, including creating, querying, modifying, and deleting StatefulSets. StatefulSet is also a type of pod controller. A StatefulSet can contain one or more pod replicas. Different pod replicas have different roles and each of them has an independent access domain name. Therefore, you need to manually specify request distribution paths for these pod replicas. Different pod replicas in a StatefulSet do not share data. Therefore, each pod replica is allocated with an independent storage volume. |
||
|
Manage jobs, including creating, querying, modifying, and deleting jobs. A job is a resource object that Kubernetes uses to control batch tasks. Jobs are different from long-term servo tasks (such as Deployments and StatefulSets). The former are started and terminated at specific times, while the latter run unceasingly unless being terminated. The pods managed by a job automatically exit after successfully completing the job based on user configurations. |
||
|
Manage Services, including creating, querying, modifying, and deleting Services. A Service (sometimes referred to as a microservice) defines a logical set of pods and a policy to access them. |
||
|
Manage ingresses, such as creating, querying, modifying, and deleting ingresses. An ingress is a set of rules that allow access from outside a cluster to Services within the cluster. You can configure externally-accessible URLs, load balancers, SSL, and name-based virtual hosts for an ingress. |
||
|
Manage ConfigMaps, including creating, querying, modifying, and deleting ConfigMaps. |
||
|
Manage secrets, such as creating, querying, modifying, and deleting secrets. |
||
|
Manage PVCs, including creating, querying, modifying, and deleting PVCs. A PVC is a request for and claim to a PersistentVolume (PV). Similar to a pod that requests CPU and memory resources, a PVC requests storage resources. |
||
|
Manage events, such as querying events. |
||
|
Query API resources in each group. |
||
|
Manage endpoints, including querying endpoints. |
||
|
Manage ReplicaSets, including querying ReplicaSets. |
||
|
Manage Volcano jobs, including creating, querying, modifying, and deleting Volcano jobs. |
||
|
TensorFlow Training (TFJob) is a TensorFlow-based Kubernetes custom resource that you can use to run standalone or distributed TensorFlow training jobs. |
||
|
MXNet job (MXJob) is an MXNet-based Kubernetes custom resource that you can use to run MXNet training jobs. |
||
|
PyTorch job (PyTorchJob) is a PyTorch-based Kubernetes custom resource that you can use to run PyTorch training jobs. |
||
|
Authorize users or user groups to perform operations on different Kubernetes resources. |
Network
|
API |
Description |
|---|---|
|
Create a network. Network is a new object in CCI that defines the mapping relationship between a network of a namespace in Kubernetes and HUAWEI CLOUD VPC and subnet. |
|
|
Query a network. |
|
|
List all networks under a specified namespace. |
|
|
Read the status of a specified network. |
|
|
Delete a specified network. |
|
|
Delete all networks under a specified namespace. |
Extended PersistentVolumeClaim
|
API |
Description |
|---|---|
|
Import the existing storage to a specified namespace. |
|
|
Query PVCs under a specified namespace. |
|
|
Unbind a storage device from a specified namespace. This API is an extension of the native API for deleting the storage. It has been added with two parameters that specify the storage class and whether to delete the volume, respectively. |
Namespace
|
API |
Description |
|---|---|
|
Create a namespace. |
|
|
Read the details about a specified namespace. |
|
|
List all namespaces of a user. |
|
|
Delete a namespace. |
Pod
|
API |
Description |
|---|---|
|
Create a pod. |
|
|
Read the details about a specified pod. |
|
|
Read the details about all pods under a specified namespace. |
|
|
Read the status of a specified pod. |
|
|
Read the logs of a specified pod. |
|
|
List all pods of a user. |
|
|
Replace a specified pod. |
|
|
Update a specified pod. |
|
|
Delete a specified pod. |
|
|
Delete all pods under a specified namespace. |
Deployment
|
API |
Description |
|---|---|
|
Create a deployment. |
|
|
Read the details about a specified deployment. |
|
|
Read the details about all Deployments under a specified namespace. |
|
|
Read the status of a specified Deployment. |
|
|
Read the scaling operation of a specified Deployment. |
|
|
List all Deployments of a user. |
|
|
Replace a specified Deployment. |
|
|
Replace the scaling operation of a specified Deployment. |
|
|
Update a specified Deployment. |
|
|
Update the scaling operation of a specified Deployment. |
|
|
Delete a specified Deployment. |
|
|
Delete all Deployments under a specified namespace. |
StatefulSet
|
API |
Description |
|---|---|
|
Create a StatefulSet. |
|
|
Read the details about a specified StatefulSet. |
|
|
Read the details about all StatefulSets under a specified namespace. |
|
|
Read the status of a specified StatefulSet. |
|
|
List all StatefulSets of a user. |
|
|
Replace a specified StatefulSet. |
|
|
Update a specified StatefulSet. |
|
|
Delete a specified StatefulSet. |
|
|
Delete all StatefulSets under a specified namespace. |
Job
|
API |
Description |
|---|---|
|
Create a job. |
|
|
Read the details about a specified job. |
|
|
Read the details about all jobs under a specified namespace. |
|
|
Read the status of a specified job. |
|
|
List all jobs of a user. |
|
|
Replace a specified job. |
|
|
Update a specified job. |
|
|
Delete a specified job. |
|
|
Delete all jobs under a specified namespace. |
Service
|
API |
Description |
|---|---|
|
Create a Service. |
|
|
Read the details about a specified Service. |
|
|
Read the details about all Services under a specified namespace. |
|
|
Read the status of a specified Service. |
|
|
Delete a specified Service. |
Ingress
|
API |
Description |
|---|---|
|
Create an ingress. |
|
|
Read the details about a specified ingress. |
|
|
Read the details about all ingresses under a specified namespace. |
|
|
Read the status of a specified ingress. |
|
|
Replace a specified ingress. |
|
|
Update a specified ingress. |
|
|
Delete a specified ingress. |
|
|
Delete all ingresses under a specified namespace. |
ConfigMap
|
API |
Description |
|---|---|
|
This API is used to create a ConfigMap. |
|
|
Read the details about a specified ConfigMap. |
|
|
Read the details about all ConfigMaps under a specified namespace. |
|
|
Replace a specified ConfigMap. |
|
|
Update a specified ConfigMap. |
|
|
Delete a specified ConfigMap. |
|
|
Delete all ConfigMaps under a specified namespace. |
Secret
|
API |
Description |
|---|---|
|
Create a secret. |
|
|
Replace a specified secret. |
|
|
Update some information about a specified secret. |
|
|
Delete a specified secret. |
|
|
Delete all secrets under a specified namespace. |
PersistentVolumeClaim
|
API |
Description |
|---|---|
|
Create a PersistentVolumeClaim. |
|
|
Read a specified PersistentVolumeClaim. |
|
|
List all PersistentVolumeClaims under a specified namespace. |
|
|
Delete a Persistent Volume Claim. |
Event
|
API |
Description |
|---|---|
|
Read the details about a specified event. |
|
|
Read the details about all events under a specified namespace. |
|
|
Delete a specified event. |
API Groups
|
API |
Description |
|---|---|
|
List all API versions. |
|
|
List all API groups. |
|
|
List all APIs of the extensions/v1beata1 version. |
|
|
List all APIs of the apps/v1 version. |
|
|
List all APIs of the apps/v1beata1 version. |
|
|
List all APIs of the batch/v1 version. |
|
|
Listing APIResources of GroupVersion networking.cci.io/v1beta1 |
List all APIs of the networwking.cci.io/v1beata1 version. |
|
List all APIs of the v1 version. |
VolcanoJob
|
API |
Description |
|---|---|
|
Read all Volcano jobs under a specified namespace. |
|
|
Create a Volcano job. |
|
|
Delete all Volcano jobs under a specified namespace. |
|
|
Read the details about a specified Volcano job. |
|
|
Replace a specified Volcano job. |
|
|
Delete a specified Volcano job. |
|
|
Update a specified Volcano job. |
TFJob
|
API |
Description |
|---|---|
|
Create a TFJob. |
|
|
Read the details about a specified TFJob. |
|
|
Read the details about all TFJobs under a specified namespace. |
|
|
Delete all TFJobs under a specified namespace. |
|
|
Delete a specified TFJob. |
|
|
Update a specified TFJob. |
|
|
Replace a specified TFJob. |
MXJob
|
API |
Description |
|---|---|
|
Create an MXJob. |
|
|
Read the details about a specified MXJob. |
|
|
Read the details about all MXJobs under a specified namespace. |
|
|
Delete all MXJobs under a specified namespace. |
|
|
Delete a specified MXJob. |
|
|
Update a specified MXJob. |
|
|
Replace a specified MXJob file. |
PyTorchJob
|
API |
Description |
|---|---|
|
Create a PyTorchJob. |
|
|
Read the details about a specified PyTorchJob. |
|
|
Read the details about all PyTorchJobs under a specified namespace. |
|
|
Delete all PyTorchJobs under a specified namespace. |
|
|
Delete a specified PyTorchJob. |
|
|
Update a specified PyTorchJob. |
|
|
Replace a specified PyTorchJob. |
RBAC
|
API |
Description |
|---|---|
|
Read a specified ClusterRole. |
|
|
Obtain the ClusterRole list. |
|
|
Create a RoleBinding. |
|
|
Partially update a specified RoleBinding. |
|
|
Replace a specified RoleBinding. |
|
|
Delete a specified RoleBinding. |
|
|
Read a specified RoleBinding. |
|
|
Obtain the list of RoleBindings in a specified namespace. |
|
|
Obtain the RoleBinding list. |
Last Article: Selecting an API Type
Next Article: Calling APIs
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.