Changes to cce_api-ref from docs/doc-exports#318 (CCE API for v1.23
CCE API for Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: proposalbot <proposalbot@otc-service.com> Co-committed-by: proposalbot <proposalbot@otc-service.com>
BIN
api-ref/source/_static/images/en-us_image_0000001121602072.png
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
api-ref/source/_static/images/en-us_image_0203982368.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
api-ref/source/_static/images/en-us_image_0203982464.png
Normal file
After Width: | Height: | Size: 74 KiB |
BIN
api-ref/source/_static/images/en-us_image_0203982493.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
api-ref/source/_static/images/en-us_image_0227096557.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
api-ref/source/_static/images/en-us_image_0233731004.png
Normal file
After Width: | Height: | Size: 59 KiB |
BIN
api-ref/source/_static/images/en-us_image_0233731209.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
api-ref/source/_static/images/en-us_image_0233732535.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
api-ref/source/_static/images/en-us_image_0233732613.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
api-ref/source/_static/images/en-us_image_0279177365.png
Normal file
After Width: | Height: | Size: 7.9 KiB |
41
api-ref/source/api_usage_guidelines.rst
Normal file
@ -0,0 +1,41 @@
|
||||
:original_name: cce_02_0344.html
|
||||
|
||||
.. _cce_02_0344:
|
||||
|
||||
API Usage Guidelines
|
||||
====================
|
||||
|
||||
Cloud APIs comply with the RESTful API design principles. REST-based web services are organized into resources. Each resource is identified by one or more Uniform Resource Identifiers (URIs). An application accesses a resource based on the resource's Unified Resource Locator (URL). A URL is usually in the following format: *https://Endpoint/uri*. In the URL, *uri* indicates the resource path, that is, the API access path.
|
||||
|
||||
Cloud APIs use HTTPS as the transmission protocol. Requests/Responses are transmitted by using JSON messages, with media type represented by **Application/json**.
|
||||
|
||||
- The URL of APIs described in :ref:`Cluster Management <cce_02_0092>` is in the format of *https://Endpoint/uri*. In the URL, uri indicates the resource path, that is, the API access path. Use X-Auth-Token as a header.
|
||||
|
||||
- The URL of Kubernetes-native APIs described in :ref:`Add-on Management <cce_02_0320>` and :ref:`Kubernetes APIs <cce_02_0340>` is in the format of **https://{clusterid}.Endpoint/uri**. In the URL, {clusterid} indicates a cluster ID, and uri indicates the resource path, that is, the API access path. Use X-Auth-Token as a header.
|
||||
|
||||
- The URL of Kubernetes-native APIs is in the format of **https://{publicip}:5443/uri**. In the URL, **{publicip}** indicates EIP of the cluster, and **uri** indicates the resource path, that is, the API access path. Use X-Remote-User or Authorization as a header.
|
||||
|
||||
Before using X-Remote-User as a header, obtain the required certificate in advance. Two types of certificates are supported:
|
||||
|
||||
- Self-owned certificate uploaded during cluster creation. For details, see `Creating a Cluster <https://docs.otc.t-systems.com/en-us/usermanual2/cce/cce_01_0028.html>`__.
|
||||
|
||||
|image1|
|
||||
|
||||
- Cluster certificate generated and downloaded after cluster creation. For details, see `Obtaining a Cluster Certificate <https://docs.otc.t-systems.com/en-us/usermanual2/cce/cce_01_0175.html>`__.
|
||||
|
||||
|image2|
|
||||
|
||||
For details about how to use APIs, see `API Usage Guidelines <https://docs.otc.t-systems.com/en-us/api/apiug/apig-en-api-180328001.html?tag=API%20Documents>`__.
|
||||
|
||||
CCE provides two methods to authenticate requests for calling an API: token and AK/SK. Select an authentication method based on actual requirements. If token-based authentication is used, you can call service APIs by using either of the following methods after obtaining a token:
|
||||
|
||||
- Method 1: Add **X-Auth-Token** to the request header and set **X-Auth-Token: ${token}** with the obtained IAM token.
|
||||
- Method 2: Add **Authorization** to the request header and set **Authorization: Bearer ${token}** with the obtained IAM token or token from Kubernetes service account.
|
||||
- Method 3: Add **X-Remote-User** to the request header and set **X-Remote-User**: **user** with a valid certificate.
|
||||
|
||||
.. note::
|
||||
|
||||
Method 3 requires that the CA root certificate must has been uploaded before you create a cluster on the CCE console. For details, see `Cluster Management Permission Control <https://docs.otc.t-systems.com/en-us/usermanual2/cce/cce_01_0085.html>`__.
|
||||
|
||||
.. |image1| image:: /_static/images/en-us_image_0000001121602072.png
|
||||
.. |image2| image:: /_static/images/en-us_image_0227096557.png
|
@ -0,0 +1,85 @@
|
||||
:original_name: cce_02_0324.html
|
||||
|
||||
.. _cce_02_0324:
|
||||
|
||||
Deleting an Add-on Instance
|
||||
===========================
|
||||
|
||||
Function
|
||||
--------
|
||||
|
||||
This API is used to delete an add-on instance.
|
||||
|
||||
.. note::
|
||||
|
||||
The URL for add-on management is in the format of **https://{clusterid}.Endpoint/uri.** In the URL, *{clusterid}* indicates the cluster ID, and *uri* indicates the resource path, that is, the path for API access.
|
||||
|
||||
URI
|
||||
---
|
||||
|
||||
DELETE /api/v3/addons/{id}?cluster_id={cluster_id}
|
||||
|
||||
:ref:`Table 1 <cce_02_0324__table493910491373>` describes the parameters of this API.
|
||||
|
||||
.. _cce_02_0324__table493910491373:
|
||||
|
||||
.. table:: **Table 1** Parameter description
|
||||
|
||||
+------------+-----------+--------+-------------------------------------------------------------------------------------------------------------------------------+
|
||||
| Parameter | Mandatory | Type | Description |
|
||||
+============+===========+========+===============================================================================================================================+
|
||||
| cluster_id | Yes | String | Cluster ID. For details about how to obtain the cluster ID, see :ref:`How to Obtain Parameters in the API URI <cce_02_0271>`. |
|
||||
+------------+-----------+--------+-------------------------------------------------------------------------------------------------------------------------------+
|
||||
| id | Yes | String | Add-on instance ID. For details about how to obtain the ID, see :ref:`Table 4 <cce_02_0323__table12181142512286>`. |
|
||||
+------------+-----------+--------+-------------------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
Request
|
||||
-------
|
||||
|
||||
**Request parameters:**
|
||||
|
||||
:ref:`Table 2 <cce_02_0324__table061744914219>` list the request parameters.
|
||||
|
||||
.. _cce_02_0324__table061744914219:
|
||||
|
||||
.. table:: **Table 2** Parameters in the request header
|
||||
|
||||
+-----------------------+-----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| Parameter | Mandatory | Description |
|
||||
+=======================+=======================+===============================================================================================================================================================================================================================================================================+
|
||||
| Content-Type | Yes | Message body type (format). |
|
||||
| | | |
|
||||
| | | Default: **application/json** |
|
||||
+-----------------------+-----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| X-Auth-Token | Yes | Requests for calling an API can be authenticated using either a token or AK/SK. If token-based authentication is used, this parameter is mandatory and must be set to a user token. For details on how to obtain a user token, see :ref:`API Usage Guidelines <cce_02_0344>`. |
|
||||
+-----------------------+-----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
**Example request:**
|
||||
|
||||
N/A
|
||||
|
||||
Response
|
||||
--------
|
||||
|
||||
**Response parameters:**
|
||||
|
||||
N/A
|
||||
|
||||
**Example response:**
|
||||
|
||||
.. code-block::
|
||||
|
||||
success
|
||||
|
||||
Status Codes
|
||||
------------
|
||||
|
||||
.. table:: **Table 3** Status codes
|
||||
|
||||
=========== ===========
|
||||
Status Code Description
|
||||
=========== ===========
|
||||
200 OK
|
||||
=========== ===========
|
||||
|
||||
For the description about error status codes, see :ref:`Status Code <cce_02_0084>`.
|
24
api-ref/source/apis/add-on_management/index.rst
Normal file
@ -0,0 +1,24 @@
|
||||
:original_name: cce_02_0320.html
|
||||
|
||||
.. _cce_02_0320:
|
||||
|
||||
Add-on Management
|
||||
=================
|
||||
|
||||
- :ref:`Installing an Add-on Instance <cce_02_0322>`
|
||||
- :ref:`Reading Add-on Templates <cce_02_0321>`
|
||||
- :ref:`Updating an Add-on Instance <cce_02_0323>`
|
||||
- :ref:`Deleting an Add-on Instance <cce_02_0324>`
|
||||
- :ref:`Reading an Add-on Instance <cce_02_0325>`
|
||||
- :ref:`Listing Add-on Instances <cce_02_0326>`
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
:hidden:
|
||||
|
||||
installing_an_add-on_instance
|
||||
reading_add-on_templates
|
||||
updating_an_add-on_instance
|
||||
deleting_an_add-on_instance
|
||||
reading_an_add-on_instance
|
||||
listing_add-on_instances
|
16
api-ref/source/apis/api_version_query/index.rst
Normal file
@ -0,0 +1,16 @@
|
||||
:original_name: cce_02_0348.html
|
||||
|
||||
.. _cce_02_0348:
|
||||
|
||||
API Version Query
|
||||
=================
|
||||
|
||||
- :ref:`Querying All API Versions <cce_02_0349>`
|
||||
- :ref:`Querying Information About API v3 <cce_02_0350>`
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
:hidden:
|
||||
|
||||
querying_all_api_versions
|
||||
querying_information_about_api_v3
|
@ -0,0 +1,77 @@
|
||||
:original_name: cce_02_0350.html
|
||||
|
||||
.. _cce_02_0350:
|
||||
|
||||
Querying Information About API v3
|
||||
=================================
|
||||
|
||||
Function
|
||||
--------
|
||||
|
||||
This API is used to query information about API v3.
|
||||
|
||||
URI
|
||||
---
|
||||
|
||||
GET /v3
|
||||
|
||||
Request
|
||||
-------
|
||||
|
||||
N/A
|
||||
|
||||
Response
|
||||
--------
|
||||
|
||||
**Response parameters:**
|
||||
|
||||
:ref:`Table 1 <cce_02_0350__table986610460219>` describes the response parameters.
|
||||
|
||||
.. _cce_02_0350__table986610460219:
|
||||
|
||||
.. table:: **Table 1** Response parameters
|
||||
|
||||
========= ===== =================
|
||||
Parameter Type Description
|
||||
========= ===== =================
|
||||
versions Array API version list.
|
||||
========= ===== =================
|
||||
|
||||
**Example response:**
|
||||
|
||||
.. code-block::
|
||||
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"id": "v3",
|
||||
"links": [
|
||||
{
|
||||
"href": "https://container.eu-de.***.t-systems.com/v3",
|
||||
"rel": "self"
|
||||
}
|
||||
],
|
||||
"min_version": "",
|
||||
"status": "CURRENT",
|
||||
"updated": "2018-09-15T00:00:00Z",
|
||||
"version": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Status Code
|
||||
-----------
|
||||
|
||||
:ref:`Table 2 <cce_02_0350__t8935d48c19714740abd2e888a39be462>` describes the status code of the API.
|
||||
|
||||
.. _cce_02_0350__t8935d48c19714740abd2e888a39be462:
|
||||
|
||||
.. table:: **Table 2** Status code
|
||||
|
||||
=========== ==================================
|
||||
Status Code Description
|
||||
=========== ==================================
|
||||
200 The query operation is successful.
|
||||
=========== ==================================
|
||||
|
||||
For details about error status codes, see :ref:`Status Code <cce_02_0084>`.
|
791
api-ref/source/apis/cluster_management/creating_a_cluster.rst
Normal file
1002
api-ref/source/apis/cluster_management/creating_a_node.rst
Normal file
882
api-ref/source/apis/cluster_management/creating_a_node_pool.rst
Normal file
199
api-ref/source/apis/cluster_management/deleting_a_node.rst
Normal file
737
api-ref/source/apis/cluster_management/deleting_a_node_pool.rst
Normal file
@ -0,0 +1,77 @@
|
||||
:original_name: cce_02_0374.html
|
||||
|
||||
.. _cce_02_0374:
|
||||
|
||||
Hibernating a Cluster
|
||||
=====================
|
||||
|
||||
Function
|
||||
--------
|
||||
|
||||
This API is used to hibernate a running cluster.
|
||||
|
||||
Constraints
|
||||
-----------
|
||||
|
||||
#. After a cluster is hibernated, resources such as workloads cannot be created or managed in the cluster.
|
||||
|
||||
URI
|
||||
---
|
||||
|
||||
POST /api/v3/projects/{project_id}/clusters/{cluster_id}/operation/hibernate
|
||||
|
||||
.. table:: **Table 1** Path parameters
|
||||
|
||||
+------------+-----------+--------+-------------------------------------------------------------------------------------------------------------------------------+
|
||||
| Parameter | Mandatory | Type | Description |
|
||||
+============+===========+========+===============================================================================================================================+
|
||||
| project_id | Yes | String | Project ID. For details about how to obtain the project ID, see :ref:`How to Obtain Parameters in the API URI <cce_02_0271>`. |
|
||||
+------------+-----------+--------+-------------------------------------------------------------------------------------------------------------------------------+
|
||||
| cluster_id | Yes | String | Cluster ID. For details about how to obtain the cluster ID, see :ref:`How to Obtain Parameters in the API URI <cce_02_0271>`. |
|
||||
+------------+-----------+--------+-------------------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
Request Parameters
|
||||
------------------
|
||||
|
||||
.. table:: **Table 2** Request header parameters
|
||||
|
||||
+-----------------+-----------------+-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| Parameter | Mandatory | Type | Description |
|
||||
+=================+=================+=================+=========================================================================================================================================================================================================================================================================+
|
||||
| Content-Type | Yes | String | Message body type (format). |
|
||||
| | | | |
|
||||
| | | | Default: **application/json** |
|
||||
+-----------------+-----------------+-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| X-Auth-Token | Yes | String | Requests for calling an API can be authenticated using either a token or AK/SK. If token-based authentication is used, this field is mandatory and must be set to a user token. For details about how to obtain a token, see :ref:`API Usage Guidelines <cce_02_0344>`. |
|
||||
| | | | |
|
||||
| | | | Maximum: **16384** |
|
||||
+-----------------+-----------------+-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
Response Parameters
|
||||
-------------------
|
||||
|
||||
None
|
||||
|
||||
Example Requests
|
||||
----------------
|
||||
|
||||
None
|
||||
|
||||
Example Responses
|
||||
-----------------
|
||||
|
||||
None
|
||||
|
||||
Status Codes
|
||||
------------
|
||||
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| Status Code | Description |
|
||||
+=============+=========================================================================================================================================================================+
|
||||
| 200 | The cluster hibernation job is successfully delivered. Keep querying the cluster status. When the cluster status changes to **Hibernation**, the cluster is hibernated. |
|
||||
+-------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
Error Codes
|
||||
-----------
|
||||
|
||||
See :ref:`Error Codes <cce_02_0250>`.
|
56
api-ref/source/apis/cluster_management/index.rst
Normal file
@ -0,0 +1,56 @@
|
||||
:original_name: cce_02_0092.html
|
||||
|
||||
.. _cce_02_0092:
|
||||
|
||||
Cluster Management
|
||||
==================
|
||||
|
||||
- :ref:`Creating a Cluster <cce_02_0236>`
|
||||
- :ref:`Reading a Specified Cluster <cce_02_0238>`
|
||||
- :ref:`Listing Clusters in a Specified Project <cce_02_0239>`
|
||||
- :ref:`Updating a Specified Cluster <cce_02_0240>`
|
||||
- :ref:`Deleting a Specified Cluster <cce_02_0241>`
|
||||
- :ref:`Hibernating a Cluster <cce_02_0374>`
|
||||
- :ref:`Waking Up a Cluster <cce_02_0375>`
|
||||
- :ref:`Obtaining Cluster Certificates <cce_02_0248>`
|
||||
- :ref:`Obtaining Cluster Certificates (Deprecated) <cce_02_0359_0>`
|
||||
- :ref:`Creating a Node <cce_02_0242>`
|
||||
- :ref:`Reading a Specified Node <cce_02_0243>`
|
||||
- :ref:`Listing All Nodes in a Cluster <cce_02_0244>`
|
||||
- :ref:`Updating a Specified Node <cce_02_0245>`
|
||||
- :ref:`Deleting a Node <cce_02_0246>`
|
||||
- :ref:`Reading Job Progress <cce_02_0247>`
|
||||
- :ref:`Querying the Access Information of a Specified Cluster <cce_02_0347>`
|
||||
- :ref:`Modifying the Access Information of a Specified Cluster <cce_02_0346>`
|
||||
- :ref:`Creating a Node Pool <cce_02_0354>`
|
||||
- :ref:`Querying a Specified Node Pool <cce_02_0355>`
|
||||
- :ref:`Updating a Specified Node Pool <cce_02_0356>`
|
||||
- :ref:`Listing All Node Pools in a Specified Cluster <cce_02_0269>`
|
||||
- :ref:`Deleting a Node Pool <cce_02_0357>`
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
:hidden:
|
||||
|
||||
creating_a_cluster
|
||||
reading_a_specified_cluster
|
||||
listing_clusters_in_a_specified_project
|
||||
updating_a_specified_cluster
|
||||
deleting_a_specified_cluster
|
||||
hibernating_a_cluster
|
||||
waking_up_a_cluster
|
||||
obtaining_cluster_certificates
|
||||
obtaining_cluster_certificates_deprecated
|
||||
creating_a_node
|
||||
reading_a_specified_node
|
||||
listing_all_nodes_in_a_cluster
|
||||
updating_a_specified_node
|
||||
deleting_a_node
|
||||
reading_job_progress
|
||||
querying_the_access_information_of_a_specified_cluster
|
||||
modifying_the_access_information_of_a_specified_cluster
|
||||
creating_a_node_pool
|
||||
querying_a_specified_node_pool
|
||||
updating_a_specified_node_pool
|
||||
listing_all_node_pools_in_a_specified_cluster
|
||||
deleting_a_node_pool
|
228
api-ref/source/apis/cluster_management/reading_job_progress.rst
Normal file
@ -0,0 +1,72 @@
|
||||
:original_name: cce_02_0375.html
|
||||
|
||||
.. _cce_02_0375:
|
||||
|
||||
Waking Up a Cluster
|
||||
===================
|
||||
|
||||
Function
|
||||
--------
|
||||
|
||||
This API is used to wake up a hibernated cluster.
|
||||
|
||||
URI
|
||||
---
|
||||
|
||||
POST /api/v3/projects/{project_id}/clusters/{cluster_id}/operation/awake
|
||||
|
||||
.. table:: **Table 1** Path parameters
|
||||
|
||||
+------------+-----------+--------+-------------------------------------------------------------------------------------------------------------------------------+
|
||||
| Parameter | Mandatory | Type | Description |
|
||||
+============+===========+========+===============================================================================================================================+
|
||||
| project_id | Yes | String | Project ID. For details about how to obtain the project ID, see :ref:`How to Obtain Parameters in the API URI <cce_02_0271>`. |
|
||||
+------------+-----------+--------+-------------------------------------------------------------------------------------------------------------------------------+
|
||||
| cluster_id | Yes | String | Cluster ID. For details about how to obtain the cluster ID, see :ref:`How to Obtain Parameters in the API URI <cce_02_0271>`. |
|
||||
+------------+-----------+--------+-------------------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
Request Parameters
|
||||
------------------
|
||||
|
||||
.. table:: **Table 2** Request header parameters
|
||||
|
||||
+-----------------+-----------------+-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| Parameter | Mandatory | Type | Description |
|
||||
+=================+=================+=================+=========================================================================================================================================================================================================================================================================+
|
||||
| Content-Type | Yes | String | Message body type (format). |
|
||||
| | | | |
|
||||
| | | | Default: **application/json** |
|
||||
+-----------------+-----------------+-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| X-Auth-Token | Yes | String | Requests for calling an API can be authenticated using either a token or AK/SK. If token-based authentication is used, this field is mandatory and must be set to a user token. For details about how to obtain a token, see :ref:`API Usage Guidelines <cce_02_0344>`. |
|
||||
| | | | |
|
||||
| | | | Maximum: **16384** |
|
||||
+-----------------+-----------------+-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
Response Parameters
|
||||
-------------------
|
||||
|
||||
None
|
||||
|
||||
Example Requests
|
||||
----------------
|
||||
|
||||
None
|
||||
|
||||
Example Responses
|
||||
-----------------
|
||||
|
||||
None
|
||||
|
||||
Status Codes
|
||||
------------
|
||||
|
||||
+-------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| Status Code | Description |
|
||||
+=============+=============================================================================================================================================================================+
|
||||
| 200 | The cluster wakeup job is successfully delivered. Keep querying the cluster status. When the cluster status changes to **Available**, the cluster is woken up successfully. |
|
||||
+-------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
Error Codes
|
||||
-----------
|
||||
|
||||
See :ref:`Error Codes <cce_02_0250>`.
|
20
api-ref/source/apis/index.rst
Normal file
@ -0,0 +1,20 @@
|
||||
:original_name: cce_02_0103.html
|
||||
|
||||
.. _cce_02_0103:
|
||||
|
||||
APIs
|
||||
====
|
||||
|
||||
- :ref:`API Version Query <cce_02_0348>`
|
||||
- :ref:`Cluster Management <cce_02_0092>`
|
||||
- :ref:`Add-on Management <cce_02_0320>`
|
||||
- :ref:`Quota Management <quota_lifecycle_management>`
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
:hidden:
|
||||
|
||||
api_version_query/index
|
||||
cluster_management/index
|
||||
add-on_management/index
|
||||
quota_management/index
|
14
api-ref/source/apis/quota_management/index.rst
Normal file
@ -0,0 +1,14 @@
|
||||
:original_name: quota_lifecycle_management.html
|
||||
|
||||
.. _quota_lifecycle_management:
|
||||
|
||||
Quota Management
|
||||
================
|
||||
|
||||
- :ref:`Querying Resource Quotas <showquotas>`
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
:hidden:
|
||||
|
||||
querying_resource_quotas
|
48
api-ref/source/appendix/api_permissions.rst
Normal file
@ -0,0 +1,48 @@
|
||||
:original_name: cce_02_0272.html
|
||||
|
||||
.. _cce_02_0272:
|
||||
|
||||
API Permissions
|
||||
===============
|
||||
|
||||
+------------------------+----------------------------------------------------------------------------+-------------------------------------------------------------------+--------------------+
|
||||
| **Module** | **API** | **Function** | **Permission** |
|
||||
+------------------------+----------------------------------------------------------------------------+-------------------------------------------------------------------+--------------------+
|
||||
| Cluster management | GET /api/v3/projects/{project_id}/clusters | Obtaining information about clusters in a specified project | cce:cluster:list |
|
||||
+------------------------+----------------------------------------------------------------------------+-------------------------------------------------------------------+--------------------+
|
||||
| | POST /api/v3/projects/{project_id}/clusters | Creating a cluster | cce:cluster:create |
|
||||
+------------------------+----------------------------------------------------------------------------+-------------------------------------------------------------------+--------------------+
|
||||
| | GET /api/v3/projects/{project_id}/clusters/{cluster_id} | Obtaining information about a specified cluster | cce:cluster:get |
|
||||
+------------------------+----------------------------------------------------------------------------+-------------------------------------------------------------------+--------------------+
|
||||
| | GET /api/v3/projects/{project_id}/clusters/{cluster_id}/clustercert | Obtaining the certificates of a cluster | |
|
||||
+------------------------+----------------------------------------------------------------------------+-------------------------------------------------------------------+--------------------+
|
||||
| | PUT /api/v3/projects/{project_id}/clusters/{cluster_id} | Updating information about a cluster | cce:cluster:update |
|
||||
+------------------------+----------------------------------------------------------------------------+-------------------------------------------------------------------+--------------------+
|
||||
| | DELETE /api/v3/projects/{project_id}/clusters/{cluster_id} | Deleting a cluster | cce:cluster:delete |
|
||||
+------------------------+----------------------------------------------------------------------------+-------------------------------------------------------------------+--------------------+
|
||||
| | GET /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes | Obtaining information about all nodes in a cluster | cce:node:list |
|
||||
+------------------------+----------------------------------------------------------------------------+-------------------------------------------------------------------+--------------------+
|
||||
| | POST /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes | Creating nodes for a cluster | cce:node:create |
|
||||
+------------------------+----------------------------------------------------------------------------+-------------------------------------------------------------------+--------------------+
|
||||
| | PUT /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/{node_id} | Updating information about a specified node | cce:node:update |
|
||||
+------------------------+----------------------------------------------------------------------------+-------------------------------------------------------------------+--------------------+
|
||||
| | GET /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/{node_id} | Obtaining information about a specified node | cce:node:get |
|
||||
+------------------------+----------------------------------------------------------------------------+-------------------------------------------------------------------+--------------------+
|
||||
| | DELETE /api/v3/projects/{project_id}/clusters/{cluster_id}/nodes/{node_id} | Deleting a node | cce:node:delete |
|
||||
+------------------------+----------------------------------------------------------------------------+-------------------------------------------------------------------+--------------------+
|
||||
| | GET /api/v3/projects/{project_id}/jobs/{job_id} | Obtaining information about a specified job | cce:job:get |
|
||||
+------------------------+----------------------------------------------------------------------------+-------------------------------------------------------------------+--------------------+
|
||||
| | GET /api/v3/projects/{project_id}/clusters/{cluster_id}/nodepools | Obtaining information about all node pools in a specified cluster | cce:nodepool:list |
|
||||
+------------------------+----------------------------------------------------------------------------+-------------------------------------------------------------------+--------------------+
|
||||
| Storage management | POST /api/v1/namespaces/{namespace}/cloudpersistentvolumeclaims | Creating a PersistentVolumeClaim | cce:storage:create |
|
||||
+------------------------+----------------------------------------------------------------------------+-------------------------------------------------------------------+--------------------+
|
||||
| | POST /api/v1/cloudpersistentvolumes | Creating a PersistentVolume | |
|
||||
+------------------------+----------------------------------------------------------------------------+-------------------------------------------------------------------+--------------------+
|
||||
| | DELETE /api/v1/namespaces/{namespace}/cloudpersistentvolumeclaims/{name} | Deleting a PersistentVolumeClaim | cce:storage:delete |
|
||||
+------------------------+----------------------------------------------------------------------------+-------------------------------------------------------------------+--------------------+
|
||||
| | DELETE /api/v1/cloudpersistentvolumes/{name} | Deleting a PersistentVolume | |
|
||||
+------------------------+----------------------------------------------------------------------------+-------------------------------------------------------------------+--------------------+
|
||||
| Kubernetes-native APIs | /api/\* | Operating Kubernetes resources | cce:kubernetes:\* |
|
||||
+------------------------+----------------------------------------------------------------------------+-------------------------------------------------------------------+--------------------+
|
||||
| | /apis/\* | | |
|
||||
+------------------------+----------------------------------------------------------------------------+-------------------------------------------------------------------+--------------------+
|
30
api-ref/source/appendix/creating_a_key_pair.rst
Normal file
@ -0,0 +1,30 @@
|
||||
:original_name: cce_02_0101.html
|
||||
|
||||
.. _cce_02_0101:
|
||||
|
||||
Creating a Key Pair
|
||||
===================
|
||||
|
||||
Context
|
||||
-------
|
||||
|
||||
Create a key pair before you create a container cluster. Key pairs are used for user identity authentication upon login to a node.
|
||||
|
||||
If you have already created a key pair, you do not need to create it again.
|
||||
|
||||
Procedure
|
||||
---------
|
||||
|
||||
#. On the management console, click **Service List**, and choose **Computing** > **Elastic Cloud Server** to launch the ECS console.
|
||||
|
||||
#. In the navigation pane, choose **Key Pair**.
|
||||
|
||||
#. Click **Create Key Pair**.
|
||||
|
||||
#. Enter a key pair name and click **OK**.
|
||||
|
||||
The key pair name must be 1 to 64 characters long. Only letters, digits, hyphens (-), and underscores (_) are allowed.
|
||||
|
||||
#. In the displayed dialog box, click **OK**.
|
||||
|
||||
A key file in the **.pem** format is generated and automatically saved to the default directory on your local computer.
|
43
api-ref/source/appendix/creating_a_vpc_and_subnet.rst
Normal file
@ -0,0 +1,43 @@
|
||||
:original_name: cce_02_0100.html
|
||||
|
||||
.. _cce_02_0100:
|
||||
|
||||
Creating a VPC and Subnet
|
||||
=========================
|
||||
|
||||
Context
|
||||
-------
|
||||
|
||||
To provide a secure and isolated network environment for CCE, create a VPC before creating a cluster.
|
||||
|
||||
If you have already created a VPC, you do not need to create it again.
|
||||
|
||||
Creating a VPC
|
||||
--------------
|
||||
|
||||
#. On the management console, click **Service List**, and choose **Network** > **Virtual Private Cloud** to launch the VPC console.
|
||||
|
||||
#. On the VPC console, click **Create VPC**.
|
||||
|
||||
#. The created VPC is displayed in the list. Click its name and obtain the VPC ID, which will be required in :ref:`Creating a Cluster <cce_02_0236>`.
|
||||
|
||||
|
||||
.. figure:: /_static/images/en-us_image_0233731209.png
|
||||
:alt: **Figure 1** Obtaining the VPC ID
|
||||
|
||||
**Figure 1** Obtaining the VPC ID
|
||||
|
||||
Creating a Subnet
|
||||
-----------------
|
||||
|
||||
#. On the management console, click **Service List**, and choose **Network** > **Virtual Private Cloud** to launch the VPC console.
|
||||
|
||||
#. In the navigation pane, choose **Subnets**. On the displayed page, click **Create Subnets**.
|
||||
|
||||
#. After the subnet is created, click its name to obtain the network ID, which will be required in :ref:`Creating a Cluster <cce_02_0236>`.
|
||||
|
||||
|
||||
.. figure:: /_static/images/en-us_image_0233732535.png
|
||||
:alt: **Figure 2** Obtaining the network ID of a subnet
|
||||
|
||||
**Figure 2** Obtaining the network ID of a subnet
|