Datasets - Get Direct Query Refresh Schedule In Group
从指定的工作区返回指定 DirectQuery 或 LiveConnection 数据集的刷新计划。
权限
此 API 调用可由服务主体配置文件调用。 有关详细信息,请参阅:Power BI Embedded 中的服务主体配置文件。
所需范围
Dataset.ReadWrite.All 或 Dataset.Read.All
GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/directQueryRefreshSchedule
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
dataset
|
path | True |
string |
数据集 ID |
group
|
path | True |
string uuid |
工作区 ID |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
OK |
示例
Days and times schedule example |
Frequency schedule example |
Days and times schedule example
示例请求
GET https://api.powerbi.com/v1.0/myorg/groups/f089354e-8366-4e18-aea3-4cb4a3a50b48/datasets/cfafbeb1-8037-4d0c-896e-a46fb27ff229/directQueryRefreshSchedule
示例响应
{
"days": [
"Sunday",
"Friday",
"Saturday"
],
"times": [
"05:00",
"11:30",
"17:30",
"23:00"
],
"localTimeZoneId": "UTC"
}
Frequency schedule example
示例请求
GET https://api.powerbi.com/v1.0/myorg/groups/f089354e-8366-4e18-aea3-4cb4a3a50b48/datasets/cfafbeb1-8037-4d0c-896e-a46fb27ff229/directQueryRefreshSchedule
示例响应
{
"frequency": 15,
"days": [],
"times": [],
"localTimeZoneId": "UTC"
}
定义
名称 | 说明 |
---|---|
days |
执行刷新的日期 |
Direct |
DirectQuery 或 LiveConnection 的 Power BI 刷新计划,指定频率或天数和时间的组合。 |
days
执行刷新的日期
值 | 说明 |
---|---|
Friday | |
Monday | |
Saturday | |
Sunday | |
Thursday | |
Tuesday | |
Wednesday |
DirectQueryRefreshSchedule
DirectQuery 或 LiveConnection 的 Power BI 刷新计划,指定频率或天数和时间的组合。
名称 | 类型 | 说明 |
---|---|---|
days |
days[] |
执行刷新的日期 |
frequency |
integer |
连续刷新之间的间隔(以分钟为单位)。 支持的值为 15、 30、 60、 120 和 180。 |
localTimeZoneId |
string |
要使用的时区的 ID。 有关详细信息,请参阅 时区信息 |
times |
string[] |
每天执行刷新的时间 |