Updated on 2023-12-13 GMT+08:00

VPC.BandWidth

Property Descriptione

Table 1 Property description

Property

Mandatory

Type

Description

name

No

string

Created bandwidth name

Value Description: Consists of hyphens (-), underscores (_), letters, and digits, and supports a maximum of 64 characters.

Value Constraint: The value contains 1 to 64 characters. This value is unique under a tenant, and must meet the following requirement: {"regex":"^[a-zA-Z][0-9a-zA-Z-_]*$","min_length":1,"max_length":64}.

Suggestion: For details, see the ECS documentation at https://support.huaweicloud.com/intl/en-us/api-ecs/en-us_topic_0020212668.html.

shareType

Yes

string

Bandwidth type

Value Description: Supports two bandwidth types: "PER" and "WHOLE".When the bandwidth is exclusive, set this property to PER. When it is shared, set it to WHOLE.

Value Constraint: The value can only be PER or WHOLE.

Suggestion: For details, see the ECS documentation at https://support.huaweicloud.com/intl/en-us/api-ecs/en-us_topic_0020212668.html.

chargeMode

No

string

Billing mode

Value Description: Supports two billing modes: "bandwidth" and "traffic".

Value Constraint: The value can only be bandwidth or traffic.

Suggestion: For details, see the ECS documentation at https://support.huaweicloud.com/intl/en-us/api-ecs/en-us_topic_0020212668.html.

productId

No

string

Product ID

Value Description: Satisfies the UUID rule and supports a maximum of 64 characters.

Value Constraint: Satisfies the UUID rule and supports a maximum of 64 characters.

Suggestion: For details, see the ECS documentation at https://support.huaweicloud.com/intl/en-us/api-ecs/en-us_topic_0020212668.html.

id

No

string

Existing bandwidth ID

Value Description: Satisfies the UUID rule and supports a maximum of 64 characters.

Value Constraint: The value must satisfy the UUID rule and support a maximum of 64 characters.

Suggestion: For details, see the ECS documentation at https://support.huaweicloud.com/intl/en-us/api-ecs/en-us_topic_0020212668.html.

size

No

integer

Bandwidth

Value Description: Specifies the bandwidth (Mbit/s). The value ranges from 1 to 300. This parameter is mandatory when share_type is set to PER and is optional when share_type is set to WHOLE with an ID specified.

Value Constraint: The value must range from 1 to 300 (bandwidth unit: Mbit/s).

Suggestion: For details, see the ECS documentation at https://support.huaweicloud.com/intl/en-us/api-ecs/en-us_topic_0020212668.html.