Restores or disables Internet access.

Description

If you want to temporarily disable Internet access for a cloud desktop, you can disable the Internet access package. You can restore the package based on your requirements.

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 Yes ModifyNetworkPackageEnabled

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

Enabled Boolean Yes true

Specifies whether to restore or disable Internet access for the cloud desktop.

  • true: restores Internet access.
  • false: disables Internet access.
NetworkPackageId String Yes np-cfedn7r2pe48g****

The ID of the Internet access package.

RegionId String Yes cn-hangzhou

The ID of the region.

Response parameters

Parameter Type Example Description
RequestId String 56939C35-3903-4AA6-A58C-1684CC0F7EA8

The ID of the request.

Examples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/?Action=ModifyNetworkPackageEnabled
&Enabled=true
&NetworkPackageId=np-cfedn7r2pe48g****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<ModifyNetworkPackageEnabledResponse>
  <RequestId>56939C35-3903-4AA6-A58C-1684CC0F7EA8</RequestId>
</ModifyNetworkPackageEnabledResponse>

JSON format

{
    "RequestId": "56939C35-3903-4AA6-A58C-1684CC0F7EA8"
}