Datasets - Get Refresh Schedule
从 “我的工作区”中返回指定数据集的刷新计划。
必需范围
Dataset.ReadWrite.All 或 Dataset.Read.All
GET https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/refreshSchedule
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
dataset
|
path | True |
string |
数据集 ID |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
OK |
示例
Refresh schedule example
示例请求
GET https://api.powerbi.com/v1.0/myorg/datasets/cfafbeb1-8037-4d0c-896e-a46fb27ff229/refreshSchedule
示例响应
{
"days": [
"Sunday",
"Friday",
"Saturday"
],
"times": [
"05:00",
"11:30",
"17:30",
"23:00"
],
"enabled": true,
"localTimeZoneId": "UTC",
"notifyOption": "MailOnFailure"
}
定义
名称 | 说明 |
---|---|
days |
执行刷新的日期 |
Refresh |
导入模型的 Power BI 刷新计划 |
Schedule |
计划刷新终止的通知选项。 服务主体仅支持 |
days
执行刷新的日期
名称 | 类型 | 说明 |
---|---|---|
Friday |
string |
|
Monday |
string |
|
Saturday |
string |
|
Sunday |
string |
|
Thursday |
string |
|
Tuesday |
string |
|
Wednesday |
string |
RefreshSchedule
导入模型的 Power BI 刷新计划
名称 | 类型 | 说明 |
---|---|---|
days |
days[] |
执行刷新的日期 |
enabled |
boolean |
是否启用刷新 |
localTimeZoneId |
string |
要使用的时区的 ID。 有关详细信息,请参阅 时区信息。 |
notifyOption |
计划刷新终止的通知选项。 服务主体仅支持 |
|
times |
string[] |
执行刷新的一天中的时间 |
ScheduleNotifyOption
计划刷新终止的通知选项。 服务主体仅支持 NoNotification
值。
名称 | 类型 | 说明 |
---|---|---|
MailOnFailure |
string |
刷新失败时将发送邮件通知 |
NoNotification |
string |
不会发送通知 |