All Products
Document Center


Last Updated: Apr 01, 2019


You can call this operation to configure the read-write mode for a topic.


By default, only primary accounts can call this operation. RAM sub-accounts can call this operation only after being authorized.

Request parameters

Name Type Required Description
PreventCache Long Yes The parameter used for CSRF verification, which can be set to the current system time. Unit: ms
InstanceId String No The ID of the instance.
Topic String Yes The name of the topic you want to configure, which must not be duplicated under one account even in different regions.
Perm Integer Yes Set the read-write mode for the topic. Valid values:
  • 6: Both read and write operations are supported.
  • 4: Write operation is prohibited.
  • 2: Read operation is prohibited.

Response parameters

Name Type Description
RequestId String A common parameter. Each request has a unique ID.
HelpUrl String A help link.


For more information about sample codes, see API sample code and endpoints.