获取配额信息-GetUFileQuotaInfo

获取配额信息

Request Parameters

Parameter nameTypeDescriptionRequired
Regionstring可用地域Yes
QuotaType.nstring配额类型,取值为storage-volume, download-traffic或request-countYes
ProjectIdstring项目IDNo

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
DataSetarray配额信息数据集No

UFileQuotaDataSetItem

Parameter nameTypeDescriptionRequired
Regionstring可用地域No
Oweint是否欠费:1表示欠费;0表示未欠费No
Storagefloat剩余存储容量No
DownloadFlowfloat剩余下载流量No
RequestCntfloat剩余请求次数No

Request Example

http(s)://api.ucloud.cn/?Action=GetUFileQuotaInfo
&Region=cn-bj2
&QuotaType.0=storage-volume
&QuotaType.1=download-traffic
&QuotaType.2=request-count
&ProjectId=org-5150

Response Example

{
    "RetCode": 0,
    "Action": "GetUFileQuotaInfoResponse",
    "DataSet": [
        {
            "Region": "cn-bj",
            "Owe": 1,
            "Storage": {
                "Left": -13507.2
            },
            "DownloadFlow": {
                "Left": -5.180299999999999
            },
            "RequestCnt": {
                "Left": 202
            }
        }
    ]
}