Switches the network connection status of an instance.

Debugging

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.

Examples

Sample requests

http(s)://[Endpoint]/?Action=SwitchHiTSDBInstancePublicNet
&InstanceId=ts-ufxxxxxxxxxxxxxx
&SwitchAction=1
&<Common request parameters>

Sample success responses

XML format

<SwitchHiTSDBInstancePublicNetResponse>
      <RequestId>EC6A17BC-B326-4626-B3BE-932B003DB3A9</RequestId>
</SwitchHiTSDBInstancePublicNetResponse>

JSON format

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

Error codes

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