1
0

Compare commits

...

17 Commits

Author SHA1 Message Date
f8c0bfcf4c Changes to dis_api-ref from docs/doc-exports#574 (DIS API 20230116 version
Alig

Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com>
Co-authored-by: proposalbot <proposalbot@otc-service.com>
Co-committed-by: proposalbot <proposalbot@otc-service.com>
2023-06-27 15:25:12 +00:00
94e75fbba4 Changes to dis_api-ref from docs/doc-exports#769 (chore: use convertor from sepa
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: proposalbot <proposalbot@otc-service.com>
Co-committed-by: proposalbot <proposalbot@otc-service.com>
2023-06-03 08:34:48 +00:00
2839ad9be6 Changes to dis_umn from docs/doc-exports#769 (chore: use convertor from separate
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: proposalbot <proposalbot@otc-service.com>
Co-committed-by: proposalbot <proposalbot@otc-service.com>
2023-06-03 08:34:45 +00:00
0b3f7ac260 Changes to dis_api-ref from docs/doc-exports#773 (Deprecating Swift API and enab
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: proposalbot <proposalbot@otc-service.com>
Co-committed-by: proposalbot <proposalbot@otc-service.com>
2023-06-01 20:40:13 +00:00
292def3c91 Changes to dis_umn from docs/doc-exports#773 (Deprecating Swift API and enabling
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: proposalbot <proposalbot@otc-service.com>
Co-committed-by: proposalbot <proposalbot@otc-service.com>
2023-06-01 20:40:10 +00:00
ae944b6658 Service Based View
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com>
Co-authored-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-committed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
2023-05-12 07:16:46 +00:00
Goncharov, Artem
1d008423e8 Update Docs configuration
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Goncharov, Artem <artem.goncharov@t-systems.com>
Co-committed-by: Goncharov, Artem <artem.goncharov@t-systems.com>
2023-01-06 18:36:37 +00:00
Goncharov, Artem
2ee8995538 Update Docs configuration
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Goncharov, Artem <artem.goncharov@t-systems.com>
Co-committed-by: Goncharov, Artem <artem.goncharov@t-systems.com>
2023-01-05 19:11:08 +00:00
Goncharov, Artem
46bea3827f Update Docs configuration
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Goncharov, Artem <artem.goncharov@t-systems.com>
Co-committed-by: Goncharov, Artem <artem.goncharov@t-systems.com>
2023-01-04 10:37:31 +00:00
Goncharov, Artem
8d1c36335b Update Docs configuration
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Goncharov, Artem <artem.goncharov@t-systems.com>
Co-committed-by: Goncharov, Artem <artem.goncharov@t-systems.com>
2023-01-03 09:00:15 +00:00
0aad323403 Changes to dis_umn from docs/doc-exports#417 (DIS UMN test2 version
1. The docu

Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com>
Co-authored-by: proposalbot <proposalbot@otc-service.com>
Co-committed-by: proposalbot <proposalbot@otc-service.com>
2022-11-11 10:15:37 +00:00
ba52716044 Changes to dis_api-ref from docs/doc-exports#263 (DIS API test1 version
Upload

Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: proposalbot <proposalbot@otc-service.com>
Co-committed-by: proposalbot <proposalbot@otc-service.com>
2022-11-10 18:01:30 +00:00
Goncharov, Artem
920fef4410 Update Docs configuration
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Goncharov, Artem <artem.goncharov@t-systems.com>
Co-committed-by: Goncharov, Artem <artem.goncharov@t-systems.com>
2022-11-09 16:16:11 +00:00
Goncharov, Artem
667b241a04 Update Docs configuration
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Goncharov, Artem <artem.goncharov@t-systems.com>
Co-committed-by: Goncharov, Artem <artem.goncharov@t-systems.com>
2022-11-08 21:00:03 +00:00
Goncharov, Artem
80aeb1018f Update conf.py
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Goncharov, Artem <artem.goncharov@t-systems.com>
Co-committed-by: Goncharov, Artem <artem.goncharov@t-systems.com>
2022-10-28 11:47:39 +00:00
18f1e8e968 Changes to dis_api-ref from docs/doc-exports#371 (update conf.py
disable smartq

Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: proposalbot <proposalbot@otc-service.com>
Co-committed-by: proposalbot <proposalbot@otc-service.com>
2022-10-21 08:03:22 +00:00
9517ccc0ad Changes to dis_umn from docs/doc-exports#371 (update conf.py
disable smartquote

Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: proposalbot <proposalbot@otc-service.com>
Co-committed-by: proposalbot <proposalbot@otc-service.com>
2022-10-20 15:42:52 +00:00
155 changed files with 8386 additions and 58 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

View File

@ -0,0 +1,88 @@
:original_name: CreateApp.html
.. _CreateApp:
Creating Consumption Apps
=========================
Function
--------
This API is used to create consumption apps.
URI
---
POST /v2/{project_id}/apps
.. table:: **Table 1** Path Parameters
========== ========= ====== ===========
Parameter Mandatory Type Description
========== ========= ====== ===========
project_id Yes String Project ID.
========== ========= ====== ===========
Request Parameters
------------------
.. table:: **Table 2** Request header parameters
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
| Parameter | Mandatory | Type | Description |
+=================+=================+=================+==========================================================================================================================================================+
| X-Auth-Token | Yes | String | User token |
| | | | |
| | | | The token can be obtained by calling the IAM API used to obtain a user token. The value of **X-Subject-Token** in the response header is the user token. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
.. table:: **Table 3** Request body parameters
+-----------------+-----------------+-----------------+------------------------------------------------------------------------------------------------------------------------+
| Parameter | Mandatory | Type | Description |
+=================+=================+=================+========================================================================================================================+
| app_name | Yes | String | Name of the consumer application to be created |
| | | | |
| | | | The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed. |
| | | | |
| | | | Minimum: **1** |
| | | | |
| | | | Maximum: **200** |
+-----------------+-----------------+-----------------+------------------------------------------------------------------------------------------------------------------------+
Response Parameters
-------------------
None
Example Requests
----------------
Creating Consumption Apps
.. code-block:: text
POST https://{Endpoint}/v2/{project_id}/apps
{
"app_name" : "newapp"
}
Example Responses
-----------------
None
Status Codes
------------
=========== ================
Status Code Description
=========== ================
201 Normal response.
=========== ================
Error Codes
-----------
See :ref:`Error Codes <errorcode>`.

View File

@ -0,0 +1,71 @@
:original_name: DeleteApp.html
.. _DeleteApp:
Deleting Apps
=============
Function
--------
This API is used to delete apps.
URI
---
DELETE /v2/{project_id}/apps/{app_name}
.. table:: **Table 1** Path Parameters
========== ========= ====== ==============================
Parameter Mandatory Type Description
========== ========= ====== ==============================
project_id Yes String Project ID.
app_name Yes String Name of the app to be deleted.
========== ========= ====== ==============================
Request Parameters
------------------
.. table:: **Table 2** Request header parameters
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
| Parameter | Mandatory | Type | Description |
+=================+=================+=================+==========================================================================================================================================================+
| X-Auth-Token | Yes | String | User token |
| | | | |
| | | | The token can be obtained by calling the IAM API used to obtain a user token. The value of **X-Subject-Token** in the response header is the user token. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
Response Parameters
-------------------
None
Example Requests
----------------
Deleting Apps
.. code-block:: text
DELETE https://{Endpoint}/v2/{project_id}/apps/{app_name}
Example Responses
-----------------
None
Status Codes
------------
=========== ================
Status Code Description
=========== ================
204 Normal response.
=========== ================
Error Codes
-----------
See :ref:`Error Codes <errorcode>`.

View File

@ -0,0 +1,22 @@
:original_name: topic_300000001.html
.. _topic_300000001:
App Management
==============
- :ref:`Creating Consumption Apps <createapp>`
- :ref:`Querying Apps <listapp>`
- :ref:`Deleting Apps <deleteapp>`
- :ref:`Querying App Details <showapp>`
- :ref:`Querying App Consumption Status <showconsumerstate>`
.. toctree::
:maxdepth: 1
:hidden:
creating_consumption_apps
querying_apps
deleting_apps
querying_app_details
querying_app_consumption_status

View File

@ -0,0 +1,96 @@
:original_name: ShowApp.html
.. _ShowApp:
Querying App Details
====================
Function
--------
This API is used to query app details.
URI
---
GET /v2/{project_id}/apps/{app_name}
.. table:: **Table 1** Path Parameters
========== ========= ====== ==============================
Parameter Mandatory Type Description
========== ========= ====== ==============================
project_id Yes String Project ID.
app_name Yes String Name of the app to be queried.
========== ========= ====== ==============================
Request Parameters
------------------
.. table:: **Table 2** Request header parameters
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
| Parameter | Mandatory | Type | Description |
+=================+=================+=================+==========================================================================================================================================================+
| X-Auth-Token | Yes | String | User token |
| | | | |
| | | | The token can be obtained by calling the IAM API used to obtain a user token. The value of **X-Subject-Token** in the response header is the user token. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
Response Parameters
-------------------
**Status code: 200**
.. table:: **Table 3** Response body parameters
+--------------------------------+------------------+------------------------------------------------+
| Parameter | Type | Description |
+================================+==================+================================================+
| app_name | String | Name of the app. |
+--------------------------------+------------------+------------------------------------------------+
| app_id | String | Unique identifier of the app. |
+--------------------------------+------------------+------------------------------------------------+
| create_time | Long | Time when the app is created, in milliseconds. |
+--------------------------------+------------------+------------------------------------------------+
| commit_checkpoint_stream_names | Array of strings | List of associated streams. |
+--------------------------------+------------------+------------------------------------------------+
Example Requests
----------------
Querying App Details
.. code-block:: text
GET https://{Endpoint}/v2/{project_id}/apps/{app_name}
Example Responses
-----------------
**Status code: 200**
Normal response.
.. code-block::
{
"app_id" : "bd6IPpvgiIflQPMpi9M",
"app_name" : "newstream",
"create_time" : 1593569685875,
"commit_checkpoint_stream_names" : [ "newstream" ]
}
Status Codes
------------
=========== ================
Status Code Description
=========== ================
200 Normal response.
=========== ================
Error Codes
-----------
See :ref:`Error Codes <errorcode>`.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,96 @@
:original_name: DeleteCheckpoint.html
.. _DeleteCheckpoint:
Deleting Checkpoints
====================
Function
--------
This API is used to delete checkpoints.
URI
---
DELETE /v2/{project_id}/checkpoints
.. table:: **Table 1** Path Parameters
========== ========= ====== ===========
Parameter Mandatory Type Description
========== ========= ====== ===========
project_id Yes String Project ID.
========== ========= ====== ===========
.. table:: **Table 2** Query Parameters
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Parameter | Mandatory | Type | Description |
+=================+=================+=================+============================================================================================================================================================================+
| stream_name | Yes | String | Name of the stream to which the checkpoint belongs. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| app_name | Yes | String | Name of the application associated with the checkpoint. |
| | | | |
| | | | Minimum: **1** |
| | | | |
| | | | Maximum: **50** |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| checkpoint_type | Yes | String | Type of the checkpoint |
| | | | |
| | | | - **LAST_READ**: Only sequence numbers are recorded in databases. |
| | | | |
| | | | Enumeration values: |
| | | | |
| | | | - **LAST_READ** |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| partition_id | No | String | Identifier of the stream partition to which the checkpoint belongs. The value can be in either of the following formats:- shardId-0000000000- 0 |
| | | | |
| | | | For example, if a stream has three partitions, the partition identifiers are 0, 1, and 2, or shardId-0000000000, shardId-0000000001, and shardId-0000000002, respectively. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Request Parameters
------------------
.. table:: **Table 3** Request header parameters
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
| Parameter | Mandatory | Type | Description |
+=================+=================+=================+==========================================================================================================================================================+
| X-Auth-Token | Yes | String | User token |
| | | | |
| | | | The token can be obtained by calling the IAM API used to obtain a user token. The value of **X-Subject-Token** in the response header is the user token. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
Response Parameters
-------------------
None
Example Requests
----------------
Deleting Checkpoints
.. code-block:: text
DELETE https://{Endpoint}/v2/{project_id}/checkpoints
Example Responses
-----------------
None
Status Codes
------------
=========== ================
Status Code Description
=========== ================
204 Normal response.
=========== ================
Error Codes
-----------
See :ref:`Error Codes <errorcode>`.

View File

@ -0,0 +1,18 @@
:original_name: topic_300000002.html
.. _topic_300000002:
Checkpoint Management
=====================
- :ref:`Submitting Checkpoints <dis_02_0403>`
- :ref:`Querying Checkpoint Details <showcheckpoint>`
- :ref:`Deleting Checkpoints <deletecheckpoint>`
.. toctree::
:maxdepth: 1
:hidden:
submitting_checkpoints
querying_checkpoint_details
deleting_checkpoints

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,18 @@
:original_name: topic_300000003.html
.. _topic_300000003:
Data Management
===============
- :ref:`Uploading Data <dis_02_0018>`
- :ref:`Downloading Data <dis_02_0019>`
- :ref:`Obtaining Data Cursors <dis_02_0020>`
.. toctree::
:maxdepth: 1
:hidden:
uploading_data
downloading_data
obtaining_data_cursors

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,72 @@
:original_name: DeleteTransferTask.html
.. _DeleteTransferTask:
Deleting Dump Tasks
===================
Function
--------
This API is used to delete dump tasks.
URI
---
DELETE /v2/{project_id}/streams/{stream_name}/transfer-tasks/{task_name}
.. table:: **Table 1** Path Parameters
=========== ========= ====== ====================================
Parameter Mandatory Type Description
=========== ========= ====== ====================================
project_id Yes String Project ID.
stream_name Yes String Name of the stream.
task_name Yes String Name of the dump task to be deleted.
=========== ========= ====== ====================================
Request Parameters
------------------
.. table:: **Table 2** Request header parameters
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
| Parameter | Mandatory | Type | Description |
+=================+=================+=================+==========================================================================================================================================================+
| X-Auth-Token | Yes | String | User token |
| | | | |
| | | | The token can be obtained by calling the IAM API used to obtain a user token. The value of **X-Subject-Token** in the response header is the user token. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
Response Parameters
-------------------
None
Example Requests
----------------
Deleting Dump Tasks
.. code-block:: text
DELETE https://{Endpoint}/v2/{project_id}/streams/{stream_name}/transfer-tasks/{task_name}
Example Responses
-----------------
None
Status Codes
------------
=========== ================
Status Code Description
=========== ================
204 Normal response.
=========== ================
Error Codes
-----------
See :ref:`Error Codes <errorcode>`.

View File

@ -0,0 +1,24 @@
:original_name: topic_300000004.html
.. _topic_300000004:
Dump Task Management
====================
- :ref:`Adding OBS Dump Tasks <dis_02_0410>`
- :ref:`Querying Dump Task <listtransfertasks>`
- :ref:`Deleting Dump Tasks <deletetransfertask>`
- :ref:`Querying Dump Task Details <showtransfertask>`
- :ref:`Starting Dump Tasks in Batches <batchstarttransfertask>`
- :ref:`Pausing Dump Tasks in Batches <batchstoptransfertask>`
.. toctree::
:maxdepth: 1
:hidden:
adding_obs_dump_tasks
querying_dump_task
deleting_dump_tasks
querying_dump_task_details
starting_dump_tasks_in_batches
pausing_dump_tasks_in_batches

View File

@ -0,0 +1,95 @@
:original_name: BatchStopTransferTask.html
.. _BatchStopTransferTask:
Pausing Dump Tasks in Batches
=============================
Function
--------
This API is used to pause dump tasks in batches.
URI
---
POST /v2/{project_id}/streams/{stream_name}/transfer-tasks/action
.. table:: **Table 1** Path Parameters
+-----------------+-----------------+-----------------+-----------------------------------+
| Parameter | Mandatory | Type | Description |
+=================+=================+=================+===================================+
| project_id | Yes | String | Project ID. |
+-----------------+-----------------+-----------------+-----------------------------------+
| stream_name | Yes | String | Name of the stream to be queried. |
| | | | |
| | | | Maximum: **60** |
+-----------------+-----------------+-----------------+-----------------------------------+
Request Parameters
------------------
.. table:: **Table 2** Request body parameters
+-----------------+-----------------+----------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------+
| Parameter | Mandatory | Type | Description |
+=================+=================+==============================================================================================+============================================================================================+
| action | Yes | String | Dump task operation. The value can only be **stop**, which indicates stopping a dump task. |
| | | | |
| | | | Enumeration values: |
| | | | |
| | | | - **stop** |
+-----------------+-----------------+----------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------+
| tasks | Yes | Array of :ref:`BatchTransferTask <batchstoptransfertask__request_batchtransfertask>` objects | List of dump tasks to be paused. |
+-----------------+-----------------+----------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------+
.. _batchstoptransfertask__request_batchtransfertask:
.. table:: **Table 3** BatchTransferTask
========= ========= ====== =============
Parameter Mandatory Type Description
========= ========= ====== =============
id Yes String Dump task ID.
========= ========= ====== =============
Response Parameters
-------------------
None
Example Requests
----------------
Pausing Dump Tasks in Batches
.. code-block:: text
POST https://{Endpoint}/v2/{project_id}/streams/{stream_name}/transfer-tasks/action
{
"action" : "stop",
"tasks" : [ {
"id" : "9dSu1wfCytSk1aOLxvF"
} ]
}
Example Responses
-----------------
None
Status Codes
------------
=========== ================
Status Code Description
=========== ================
200 Normal response.
=========== ================
Error Codes
-----------
See :ref:`Error Codes <errorcode>`.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,95 @@
:original_name: BatchStartTransferTask.html
.. _BatchStartTransferTask:
Starting Dump Tasks in Batches
==============================
Function
--------
This API is used to start dump tasks in batches.
URI
---
POST /v2/{project_id}/streams/{stream_name}/transfer-tasks/action
.. table:: **Table 1** Path Parameters
+-----------------+-----------------+-----------------+-----------------------------------+
| Parameter | Mandatory | Type | Description |
+=================+=================+=================+===================================+
| project_id | Yes | String | Project ID. |
+-----------------+-----------------+-----------------+-----------------------------------+
| stream_name | Yes | String | Name of the stream to be queried. |
| | | | |
| | | | Maximum: **60** |
+-----------------+-----------------+-----------------+-----------------------------------+
Request Parameters
------------------
.. table:: **Table 2** Request body parameters
+-----------------+-----------------+-----------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------+
| Parameter | Mandatory | Type | Description |
+=================+=================+===============================================================================================+=============================================================================================+
| action | Yes | String | Dump task operation. The value can only be **start**, which indicates starting a dump task. |
| | | | |
| | | | Enumeration values: |
| | | | |
| | | | - **start** |
+-----------------+-----------------+-----------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------+
| tasks | Yes | Array of :ref:`BatchTransferTask <batchstarttransfertask__request_batchtransfertask>` objects | List of dump tasks to be operated. |
+-----------------+-----------------+-----------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------+
.. _batchstarttransfertask__request_batchtransfertask:
.. table:: **Table 3** BatchTransferTask
========= ========= ====== =============
Parameter Mandatory Type Description
========= ========= ====== =============
id Yes String Dump task ID.
========= ========= ====== =============
Response Parameters
-------------------
None
Example Requests
----------------
Starting Dump Tasks in Batches
.. code-block:: text
POST https://{Endpoint}/v2/{project_id}/streams/{stream_name}/transfer-tasks/action
{
"action" : "start",
"tasks" : [ {
"id" : "9dSu1wfCytSk1aOLxvF"
} ]
}
Example Responses
-----------------
None
Status Codes
------------
=========== ================
Status Code Description
=========== ================
200 Normal response.
=========== ================
Error Codes
-----------
See :ref:`Error Codes <errorcode>`.

View File

@ -0,0 +1,26 @@
:original_name: dis_02_0015.html
.. _dis_02_0015:
API Description
===============
- :ref:`Stream Management <topic_300000000>`
- :ref:`App Management <topic_300000001>`
- :ref:`Checkpoint Management <topic_300000002>`
- :ref:`Data Management <topic_300000003>`
- :ref:`Dump Task Management <topic_300000004>`
- :ref:`Monitoring Management <topic_300000005>`
- :ref:`Tag Management <topic_300000006>`
.. toctree::
:maxdepth: 1
:hidden:
stream_management/index
app_management/index
checkpoint_management/index
data_management/index
dump_task_management/index
monitoring_management/index
tag_management/index

View File

@ -0,0 +1,16 @@
:original_name: topic_300000005.html
.. _topic_300000005:
Monitoring Management
=====================
- :ref:`Querying Stream Monitoring Data <showstreammetrics>`
- :ref:`Querying Partition Monitoring Data <showpartitionmetrics>`
.. toctree::
:maxdepth: 1
:hidden:
querying_stream_monitoring_data
querying_partition_monitoring_data

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,74 @@
:original_name: DeleteStream.html
.. _DeleteStream:
Deleting Specified Streams
==========================
Function
--------
This API is used to delete specified streams.
URI
---
DELETE /v2/{project_id}/streams/{stream_name}
.. table:: **Table 1** Path Parameters
+-----------------+-----------------+-----------------+-----------------------------------+
| Parameter | Mandatory | Type | Description |
+=================+=================+=================+===================================+
| project_id | Yes | String | Project ID. |
+-----------------+-----------------+-----------------+-----------------------------------+
| stream_name | Yes | String | Name of the stream to be deleted. |
| | | | |
| | | | Maximum: **60** |
+-----------------+-----------------+-----------------+-----------------------------------+
Request Parameters
------------------
.. table:: **Table 2** Request header parameters
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
| Parameter | Mandatory | Type | Description |
+=================+=================+=================+==========================================================================================================================================================+
| X-Auth-Token | Yes | String | User token |
| | | | |
| | | | The token can be obtained by calling the IAM API used to obtain a user token. The value of **X-Subject-Token** in the response header is the user token. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
Response Parameters
-------------------
None
Example Requests
----------------
Deleting Specified Streams
.. code-block:: text
DELETE https://{Endpoint}/v2/{project_id}/streams/{stream_name}
Example Responses
-----------------
None
Status Codes
------------
=========== ================
Status Code Description
=========== ================
204 Normal response.
=========== ================
Error Codes
-----------
See :ref:`Error Codes <errorcode>`.

View File

@ -0,0 +1,22 @@
:original_name: topic_300000000.html
.. _topic_300000000:
Stream Management
=================
- :ref:`Creating Streams <dis_02_0016_01>`
- :ref:`Querying Streams <dis_02_0024>`
- :ref:`Deleting Specified Streams <deletestream>`
- :ref:`Querying Stream Details <dis_02_0025>`
- :ref:`Changing Partition Quantity <updatepartitioncount>`
.. toctree::
:maxdepth: 1
:hidden:
creating_streams
querying_streams
deleting_specified_streams
querying_stream_details
changing_partition_quantity

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,72 @@
:original_name: DeleteTag.html
.. _DeleteTag:
Deleting Tags of Specified Streams
==================================
Function
--------
This API is used to delete tags of specified streams.
URI
---
DELETE /v2/{project_id}/stream/{stream_id}/tags/{key}
.. table:: **Table 1** Path Parameters
========== ========= ====== ===========
Parameter Mandatory Type Description
========== ========= ====== ===========
project_id Yes String Project ID.
stream_id Yes String Stream ID.
key Yes String Tag key.
========== ========= ====== ===========
Request Parameters
------------------
.. table:: **Table 2** Request header parameters
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
| Parameter | Mandatory | Type | Description |
+=================+=================+=================+==========================================================================================================================================================+
| X-Auth-Token | Yes | String | User token |
| | | | |
| | | | The token can be obtained by calling the IAM API used to obtain a user token. The value of **X-Subject-Token** in the response header is the user token. |
+-----------------+-----------------+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
Response Parameters
-------------------
None
Example Requests
----------------
Deleting Tags of Specified Streams
.. code-block:: text
DELETE https://{Endpoint}/v2/{project_id}/stream/{stream_id}/tags/{key}
Example Responses
-----------------
None
Status Codes
------------
=========== ================
Status Code Description
=========== ================
204 Normal response.
=========== ================
Error Codes
-----------
See :ref:`Error Codes <errorcode>`.

View File

@ -0,0 +1,26 @@
:original_name: topic_300000006.html
.. _topic_300000006:
Tag Management
==============
- :ref:`Adding Tags for Specified Streams <createtag>`
- :ref:`Querying Tags of Specified Streams <showstreamtags>`
- :ref:`Deleting Tags of Specified Streams <deletetag>`
- :ref:`Adding Resource Tags in Batches <batchcreatetags>`
- :ref:`Querying Tags of Specified Regions <listtags>`
- :ref:`Using Tags to Filter Resources (Streams) <listresourcesbytags>`
- :ref:`Deleting Resource Tags in Batches <batchdeletetags>`
.. toctree::
:maxdepth: 1
:hidden:
adding_tags_for_specified_streams
querying_tags_of_specified_streams
deleting_tags_of_specified_streams
adding_resource_tags_in_batches
querying_tags_of_specified_regions
using_tags_to_filter_resources_streams
deleting_resource_tags_in_batches

View File

@ -0,0 +1,8 @@
:original_name: dis_02_0200.html
.. _dis_02_0200:
API Overview
============
DIS provides self-developed APIs that comply with RESTful API design specifications. You can use DIS functions listed in :ref:`API Description <dis_02_0015>` by calling these APIs.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,18 @@
:original_name: dis_02_0500.html
.. _dis_02_0500:
Appendix
========
- :ref:`Error Codes <errorcode>`
- :ref:`Status Codes <dis_02_0022>`
- :ref:`Obtaining a Project ID <dis_02_0501>`
.. toctree::
:maxdepth: 1
:hidden:
error_codes
status_codes
obtaining_a_project_id

View File

@ -0,0 +1,58 @@
:original_name: dis_02_0501.html
.. _dis_02_0501:
Obtaining a Project ID
======================
Obtaining a Project ID by Calling an API
----------------------------------------
You can obtain the project ID by calling the API `used to query project information <https://docs.otc.t-systems.com/api/iam/en-us_topic_0057845625.html>`__.
The API used to obtain a project ID is GET **https://{Endpoint}/v3/projects**. **{Endpoint}** is the IAM endpoint and can be obtained from `Regions and Endpoints <https://docs.otc.t-systems.com/en-us/endpoint/index.html>`__. For details about API authentication, see :ref:`Authentication <dis_02_0517>`.
The following is an example response. The value of **id** is the project ID. If multiple IDs are returned, obtain the desired project ID based on the actual region (name).
.. code-block::
{
"projects": [
{
"domain_id": "65382450e8f64ac0870cd180d14e684b",
"is_domain": false,
"parent_id": "65382450e8f64ac0870cd180d14e684b",
"name": "region_name",
"description": "",
"links": {
"next": null,
"previous": null,
"self": "https://www.example.com/v3/projects/a4a5d4098fb4474fa22cd05f897d6b99"
},
"id": "a4a5d4098fb4474fa22cd05f897d6b99",
"enabled": true
}
],
"links": {
"next": null,
"previous": null,
"self": "https://www.example.com/v3/projects"
}
}
Obtaining a Project ID from the Console
---------------------------------------
A project ID is required for some URLs when an API is called. To obtain a project ID, perform the following operations:
#. Log in to the management console.
#. Click the username and select **My Credentials** from the drop-down list.
On the **My Credentials** page, view project IDs in the project list.
.. figure:: /_static/images/en-us_image_0191919629.jpg
:alt: **Figure 1** Viewing project IDs
**Figure 1** Viewing project IDs

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
:original_name: dis_02_0512.html
.. _dis_02_0512:
API Calling
===========
DIS supports Representational State Transfer (REST) APIs, allowing you to call APIs using HTTPS. For details about API calling, see :ref:`Calling APIs <dis_02_0516>`.

Some files were not shown because too many files have changed in this diff Show More