Switches the network connection status of an instance.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String No SwitchHiTSDBInstancePublicNet

The operation that you want to perform. Set the value to SwitchHiTSDBInstancePublicNet.

InstanceId String Yes ts-ufxxxxxxxxxxxxxx

The ID of the instance.

SwitchAction Long Yes 1
  • 1: enables access from the Internet
  • 0: disables access from the Internet
RegionId String No cn-shanghai

The ID of the region.

Response parameters

Parameter Type Example Description
RequestId String EC6A17BC-B326-4626-B3BE-932B003DB3A9

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

   "RequestId": "EC6A17BC-B326-4626-B3BE-932B003DB3A9"

Error codes

For a list of error codes, visit the API Error Center.