查询清洗服务-DescribeCleanService

查询清洗服务

Request Parameters

Parameter nameTypeDescriptionRequired
ResourceIdstring资源id,为空代表查询用户下所有清洗资源;不为空时代表查询指定资源ID的清洗服务;默认为空No
Offsetint数据偏移量, 默认为0。供分页显示使用No
Limitint返回清洗的最多条目数, 默认为10。供分页显示使用No

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint返回码Yes
Actionstring操作名称Yes
RetCodeint返回码Yes
Actionstring操作名称Yes
RetCodeint返回码Yes
Actionstring操作名称Yes
TotalCountint符合条件的条目总数Yes
CleanServiceListarray清洗服务列表Yes

CleanServiceList

Parameter nameTypeDescriptionRequired
ResourceIdstring资源IDYes
CreateTimestring创建时间 (时间戳)Yes
ExpiredTimestring过期时间(时间戳)Yes
CleanRegionstring地域Yes
MaxCleanCapacityint流量清洗上限防护流量(单位G),5、10、15、20、25Yes
DefenceStatusstring状态,清洗服务的当前状态。当前状态 (清洗中:Cleaning 过期:Expired)Yes
StatusRemarksstring状态的补充说明(正常:Normal 超限:Exceed)Yes
ChargeTypestring计费方式(Month:按月,Year:按年)Yes
AutoRenewalint自动续费 1:开启;0:关闭Yes
DefenseIPint最近一次受攻击的IPYes
DefenseTimestring最近攻击时间,时间戳Yes
DefensePeakfloat最近攻击流量峰值Yes

Request Example

https://api.ucloud.cn/?Action=DescribeCleanService
&Offset=9
&Limit=7

Response Example

{
    "RetCode": 0,
    "Action": "DescribeCleanServiceResponse",
    "TotalCount": 2,
    "CleanServiceList": [
        {
            "ResourceId": "usecure_UCLEAN-dch4di",
            "CreateTime": 1526438569,
            "ExpiredTime": 1529116968,
            "CleanRegion": "上海",
            "MaxCleanCapacity": 15,
            "DefenceStatus": "Started",
            "ChargeType": "Month",
            "AutoRenewal": 1,
            "DefenseIP": "192.168.254.10",
            "DefenseTime": 1523334896,
            "DefenseFlow": 80.344
        },
        {
            "ResourceId": "usecure_UCLEAN-sei2sx",
            "CreateTime": 1526437820,
            "ExpiredTime": 1529116220,
            "CleanRegion": "北京",
            "MaxCleanCapacity": 5,
            "DefenceStatus": "Started",
            "ChargeType": "Month",
            "AutoRenewal": 1,
            "DefenseIP": "192.168.254.10",
            "DefenseTime": 1523334896,
            "DefenseFlow": 80.344
        }
    ]
}