Get shared bandwidth information - DescribeShareBandwidth
Overview
Get shared bandwidth information
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is DescribeShareBandwidth . | Yes |
PublicKey | string | The user's public key can be obtained from Console (opens in a new tab) | Yes |
Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Region | string | Region. See List of Regions and Availability Zones | Yes |
ProjectId | string | Project ID. If not filled in, the default project is used, and the sub-account must be filled in. Please refer to the GetProjectList interface. | No |
ShareBandwidthIds.N | string | Shared Bandwidth Id to be returned | No |
Response Field
Field Name | Type | Description Information | Required |
---|---|---|---|
RetCode | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. | Yes |
Action | string | Operation command name. | Yes |
Message | string | Returns an error message, providing detailed description when RetCode is non-zero. | No |
DataSet | array[UnetShareBandwidthSet] | Shared Bandwidth Information Group See UnetShareBandwidthSet | No |
TotalCount | int | The total shared bandwidth that meets the conditions, is greater than or equal to the returned DataSet length. | No |
Data Model
UnetShareBandwidthSet
Field Name | Type | Description Information | Required |
---|---|---|---|
IPVersion | string | Shared Bandwidth Type | Yes |
ShareBandwidth | int | Shared Bandwidth Value (Prepaid)/Shared Bandwidth Peak (Postpaid), Unit Mbps | No |
ShareBandwidthId | string | Resource ID of Shared Bandwidth | No |
ChargeType | string | Payment method, Prepayment: Yearly, Monthly, Dynamic Pay-as-you-go; Postpayment: PostPay (Monthly) | No |
CreateTime | int | Creation time, in Unix Timestamp format | No |
ExpireTime | int | Expiration time, in Unix Timestamp format | No |
EIPSet | array[EIPSetData] | EIP Information, see EIPSetData for details | No |
Name | string | Shared Bandwidth Name | No |
EIPSetData
Field Name | Type | Description Information | Required |
---|---|---|---|
Bandwidth | int | EIP Bandwidth Value | No |
EIPAddr | array[EIPAddrSet] | EIP's IP information, see EIPAddrSet for details. | No |
EIPId | string | EIP Resource Id | No |
EIPAddrSet
Field Name | Type | Description Information | Required |
---|---|---|---|
OperatorName | string | Operator Information, enumeration values are: BGP: BGP; International: International. | No |
IP | string | Elastic IP Address | No |
Example
Request Example
https://api.surfercloud.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
}