Creates an Internet access package to enable Internet access for a workspace.

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 CreateNetworkPackage

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

Bandwidth Integer Yes 10

The maximum public bandwidth. Unit: Mbit/s.

Valid values: 1 to 200.

OfficeSiteId String Yes cn-hangzhou+dir-363353****

The ID of the workspace.

RegionId String Yes cn-hangzhou

The ID of the region.

Response parameters

Parameter Type Example Description
NetworkPackageId String np-amtp8e8q1o9e4****

The ID of the Internet access package.

RequestId String 269BDB16-2CD8-4865-84BD-11C40BC21DB0

The ID of the request.

Examples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/?Action=CreateNetworkPackage
&Bandwidth=10
&OfficeSiteId=cn-hangzhou+dir-363353****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<CreateNetworkPackage>
      <RequestId>269BDB16-2CD8-4865-84BD-11C40BC21DB0</RequestId>
      <NetworkPackageId>np-amtp8e8q1o9e4****</NetworkPackageId>
</CreateNetworkPackage>

JSON format

{
    "RequestId": "269BDB16-2CD8-4865-84BD-11C40BC21DB0",
    "NetworkPackageId": "np-amtp8e8q1o9e4****"
}

Error codes

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