Skip to Content
Basic Network(UNet)DescribeShareBandwidth

Get shared bandwidth information - DescribeShareBandwidth

Overview

Get shared bandwidth information

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeShareBandwidth.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.Yes
ShareBandwidthIds.NstringShared Bandwidth Id to be returnedNo

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
DataSetarray[UnetShareBandwidthSet]Shared Bandwidth Information Group See UnetShareBandwidthSetNo
TotalCountintThe total shared bandwidth that meets the conditions, is greater than or equal to the returned DataSet length.No

Data Model

UnetShareBandwidthSet

Field NameTypeDescription InformationRequired
IPVersionstringShared Bandwidth TypeYes
ShareBandwidthintShared Bandwidth Value (Prepaid)/Shared Bandwidth Peak (Postpaid), Unit MbpsNo
ShareBandwidthIdstringResource ID of Shared BandwidthNo
ChargeTypestringPayment methods: Prepaid: Yearly, Monthly, Dynamic (on a time-based basis); Postpaid: PostPay (monthly)No
CreateTimeintCreation time, in Unix Timestamp formatNo
ExpireTimeintExpiration time, in Unix Timestamp formatNo
EIPSetarray[EIPSetData]EIP Information, see EIPSetData for detailsNo
NamestringShared Bandwidth NameNo
TagstringThe business group identifier for shared bandwidth, the default value is “Default”.No
LimitTypestringShared Bandwidth Throttling Type; Enum values: “Normal”, “SpeedLimitNo
AutoRenewstringWhether to enable auto-renewal for shared bandwidth; whether to enable auto-renewal; enumeration values: “Yes”, “NoNo
OperatorNamestringOperator name for ShareBandwidNo

EIPSetData

Field NameTypeDescription InformationRequired
BandwidthintEIP Bandwidth ValueNo
EIPAddrarray[EIPAddrSet]EIP’s IP information, see EIPAddrSet for details.No
EIPIdstringEIP Resource IdNo
FollowShareBandwidthbooleanWhether to enable the EIP follow-up shared bandwidth mode; in scenarios where ordinary shared bandwidth is bound and speed limit is enabled for follow-up, set FollowShareBandwidth to true, and set it to false in other scenariosNo

EIPAddrSet

Field NameTypeDescription InformationRequired
OperatorNamestringOperator Information, enumeration values are: BGP: BGP; International: International.No
IPstringElastic IP AddressNo

Example

Request Example

https://api.dezai.com/?Action=DescribeShareBandwidth &Region=cn-bj2

Response Example

{ "Action": "DescribeShareBandwidthResponse", "DataSet": [ { "ChargeType": "Dynamic", "CreateTime": 1529660427, "EIPSet": [ { "Bandwidth": 1000, "EIPAddr": [ { "IP": "106.75.XX.XX", "OperatorName": "BGP" } ], "EIPId": "eip-XXXXX" } ], "ExpireTime": 1529898027, "Name": "test", "ShareBandwidth": 20, "ShareBandwidthId": "bwshare-XXXX" } ], "Request_uuid": "a36b7aec-3911-4096-9110-XXXXX", "RetCode": 0, "TotalCount": 1, "TotolCount": 2 }