调用GetControlRules获取启停设置列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetControlRules |
系统规定参数,取值:GetControlRules。 |
Page | String | 是 | 10 |
当前页码。 |
PageSize | String | 是 | 1 |
每页的记录条数。 |
Version | String | 是 | 2017-04-11 |
版本号。 |
AccessKeyId | String | 否 | yourAccessKeyId |
AccessKeyId。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Code | Integer | 0 |
业务码,成功返回0。 |
Pager |
分页信息。 |
||
Page | Integer | 1 |
当前页码。 |
PageSize | Integer | 2 |
每页的记录条数。 |
Total | Integer | 173 |
总记录的条数。 |
RequestId | String | 20963AEE-E3A5-461F-8809-C494558373AB |
请求ID。 |
SettingList |
返回的计费信息列表。 |
||
Setting |
返回的计费信息列表。 |
||
AppVersion | String | 6.6.2 |
应用版本号。 |
BusinessType | String | live |
业务类型。 |
ClientId | String | 200000 |
用户ID。 |
CreatedAt | String | 2017-06-02 13:16:37.0 |
插入时间。 |
IspName | String | unicom |
运营商。 |
MarketType | String | all |
市场类型。 |
Name | String | qqq |
规则名称。 |
Onoff | Boolean | false |
启停状态。 |
PlatformType | String | 01 |
终端类型代码。 |
Region | String | 11 |
地区。 |
ResourceId | String | lrntfr |
启停规则资源ID。 |
UpdatedAt | String | 2017-06-01 21:19:12.0 |
更新时间。 |
Usable | Boolean | true |
规则是否启用,一般为true。 |
示例
请求示例
http://pcdn.aliyuncs.com/?&Action=GetControlRules
&PageSize=10
&Page=1
&Version=2017-04-11
&<公共参数>
正常返回示例
XML
格式
<GetControlRulesResponse>
<Pager>
<PageSize>2</PageSize>
<Page>1</Page>
<Total>173</Total>
</Pager>
<Code>0</Code>
<SettingList>
<Setting>
<UpdatedAt>2017-06-02 13:16:37.0</UpdatedAt>
<Onoff>false</Onoff>
<Name>qqq</Name>
<PlatformType>01</PlatformType>
<Region>11</Region>
<IspName>unicom</IspName>
<ResourceId>lrntfr</ResourceId>
<MarketType>all</MarketType>
<AppVersion>6.6.2</AppVersion>
<BusinessType>live</BusinessType>
<ClientId>200000</ClientId>
<CreatedAt>2017-06-02 13:16:37.0</CreatedAt>
</Setting>
<Setting>
<UpdatedAt>2017-06-01 21:19:12.0</UpdatedAt>
<Onoff>false</Onoff>
<Name>59</Name>
<PlatformType>02</PlatformType>
<Region>11</Region>
<IspName>all</IspName>
<ResourceId>pm8fq9</ResourceId>
<MarketType>b1f2523b184b66ab|39667742fd585678</MarketType>
<AppVersion>3.3.024_home|DVB_TV_Yingshi_R_5.1.1.25_1d433747</AppVersion>
<BusinessType>live</BusinessType>
<ClientId>200000</ClientId>
<CreatedAt>2017-06-01 21:19:12.0</CreatedAt>
</Setting>
</SettingList>
</GetControlRulesResponse>
JSON
格式
{
"Pager":{
"Page":1,
"PageSize":2,
"Total":173
},
"RequestId":"20963AEE-E3A5-461F-8809-C494558373AB",
"Code":0,
"SettingList":{
"Setting":[
{
"PlatformType":"01",
"Name":"qqq",
"Onoff":false,
"UpdatedAt":"2017-06-02 13:16:37.0",
"Region":"11",
"IspName":"unicom",
"AppVersion":"6.6.2",
"MarketType":"all",
"ResourceId":"lrntfr",
"BusinessType":"live",
"ClientId":"200000",
"CreatedAt":"2017-06-02 13:16:37.0"
},
{
"PlatformType":"02",
"Name":"59",
"Onoff":false,
"UpdatedAt":"2017-06-01 21:19:12.0",
"Region":"11",
"IspName":"all",
"AppVersion":"3.3.024_home|DVB_TV_Yingshi_R_5.1.1.25_1d433747",
"MarketType":"b1f2523b184b66ab|39667742fd585678",
"ResourceId":"pm8fq9",
"BusinessType":"live",
"ClientId":"200000",
"CreatedAt":"2017-06-01 21:19:12.0"
}
]
}
}
错误码
访问错误中心查看更多错误码。