doc-exports/docs/dms/api-ref/UpdateInstanceAutoCreateTopic.html
Chen, Junjie f5b629cc78 DMS API 20240722 version
Reviewed-by: Ziuzko, Stanislav <stanislav.ziuzko@t-systems.com>
Co-authored-by: Chen, Junjie <chenjunjie@huawei.com>
Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
2024-09-06 09:17:23 +00:00

4.8 KiB

Configuring Automatic Topic Creation

Function

This API is used to enable or disable automatic topic creation.

URI

POST /v2/{project_id}/instances/{instance_id}/autotopic

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details about how to obtain it, see Obtaining a Project ID.

instance_id

Yes

String

Instance ID.

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

enable_auto_topic

Yes

Boolean

Whether to enable automatic topic creation.

Response Parameters

None

Example Requests

Enabling automatic topic creation.

POST https://{endpoint}/v2/{project_id}/instances/{instance_id}/autotopic

{
  "enable_auto_topic" : true
}

Example Responses

None

Status Codes

Status Code

Description

200

The function is enabled or disabled successfully.

Error Codes

See Error Codes.