All Products
Document Center


Last Updated: Mar 30, 2018


Switches the public network connection status of the instance.

Request parameters

Name Type Required or not Description
RegionId String Yes ID of the region in which the instance is located
InstanceId String Yes Instance ID
SwitchAction Integer Yes 1-Enable connection to the public network and 0-Disable connection to the public network

NOTE: All the above request parameters have no default value.

Return example

JSON format:

    "code": "200",
    "data": {
        "RequestId": "EC6A17BC-B326-4626-B3BE-932B003DB3A9"
    "requestId": "EC6A17BC-B326-4626-B3BE-932B003DB3A9",
    "successResponse": true