Creates a premium bandwidth plan for an office network.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:CreateNetworkPackage |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call DescribeRegions to query the regions supported by Elastic Desktop Service. |
cn-hangzhou |
| Bandwidth |
integer |
Yes |
The bandwidth of the premium bandwidth plan. Unit: Mbit/s.
|
2 |
| OfficeSiteId |
string |
No |
The office network ID. |
cn-hangzhou+dir-363353**** |
| PayType |
string |
No |
The billing method. Valid values:
|
PrePaid |
| InternetChargeType |
string |
No |
The billable methods of the premium bandwidth plan.
Valid values:
|
PayByTraffic |
| Period |
integer |
No |
The subscription duration of the premium bandwidth plan. This parameter takes effect and is required only when PayType is set to PrePaid. Valid values are determined by the PeriodUnit parameter.
Default value: 1. |
1 |
| PeriodUnit |
string |
No |
The unit of the subscription duration for the premium bandwidth plan. This parameter takes effect and is required only when PayType is set to PrePaid. Valid values:
|
Week |
| AutoPay |
boolean |
No |
Specifies whether to enable automatic payment. Valid values:
|
false |
| AutoRenew |
boolean |
No |
Specifies whether to enable auto-renewal. Valid values:
|
false |
| PromotionId |
string |
No |
The promotion activity ID. |
23141 |
| ResellerOwnerUid |
integer |
No |
The user ID of resource ownership in the reseller pattern. You do not need to specify this parameter if you are not using the reseller pattern. |
1422724566551XXX |
| ChannelCookie |
string |
No |
Note
This field is not publicly available. |
PBKB1QbqEl2tslEuU6gRrLxvCFBU2M%2FVD0Eru6Oo%2FI9LTU3XQhvq3PGMWarE%2BPJdkNvCqT3blqlRSthNy4A%2BJQ%3D%3D |
| Tag |
array<object> |
No |
The tags. A maximum of 20 tags are supported. |
|
|
object |
No |
|||
| Key |
string |
No |
The tag key. If you specify this parameter, the value cannot be an empty string. The tag key can be up to 128 characters in length and cannot start with |
TestKey |
| Value |
string |
No |
The tag value. The tag value can be an empty string. The tag value can be up to 128 characters in length and cannot start with |
TestValue |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| NetworkPackageId |
string |
The premium bandwidth plan ID. |
np-amtp8e8q1o9e4**** |
| RequestId |
string |
The request ID. |
269BDB16-2CD8-4865-84BD-11C40BC21DB0 |
| OrderId |
string |
The order ID. |
234526262716724 |
Examples
Success response
JSON format
{
"NetworkPackageId": "np-amtp8e8q1o9e4****",
"RequestId": "269BDB16-2CD8-4865-84BD-11C40BC21DB0",
"OrderId": "234526262716724"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | RISK.RISK_CONTROL_REJECTION | In order to protect the security of your account, the order was suspended, please contact customer service for details. | In order to protect the security of your account, the order was suspended, please contact customer service for details. |
| 500 | INTERNAL_ERROR | Internal error. | Internal error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.