Importing Topics
Function
This API is used to import topics.
URI
POST /v2/{project_id}/mqs/instances/{instance_id}/topics/import
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Tenant's project ID. |
|
instance_id |
Yes |
String |
Instance ID. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
mode |
No |
String |
Mode for importing topics.
The default value is AddNew. |
|
prefix |
No |
String |
Prefix of an application name. If a prefix is carried, the prefix is added to the existing application name to form a new application name. Then, the topic is imported based on the new application name. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
upload_file_name |
Yes |
File |
List of topics to be imported. |
Response Parameters
None
Example Requests
POST https://{endpoint}/v2/{project_id}/mqs/instances/{instance_id}/topics/import
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
204 |
No Content |
Error Codes
See Error Codes.
Last Article: Deleting Topics in Batches
Next Article: Exporting Topics
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.