SSRS Rest API - 获取扩展设置

SSRS Rest API - Get Extension Settings

我正在尝试通过 SSRS Rest API 获取订阅详细信息。下面是 API 请求。

Url: http://{URI-host}/reports/api/v2.0/Subscriptions
HttpMethod: GET

它返回给我一个包含订阅详细信息的 json。但我无法在回复中找到与电子邮件相关的详细信息,如收件人、主题等。回复如下。

{
    "@odata.context": "http://{URI-host}/reports/api/v2.0/$metadata#Subscriptions",
    "value": [
        {
            "Id": "8af9701b-1cae-4c7e-be36-5768f6412be5",
            "Owner": "pc\userpower",
            "IsDataDriven": false,
            "Description": "Test",
            "Report": "/Folder/ReportName",
            "IsActive": true,
            "EventType": "TimedSubscription",
            "Schedule": {
                "ScheduleID": null,
                "Definition": {
                    "StartDateTime": "2020-02-29T02:00:00Z",
                    "EndDate": "0001-01-01T00:00:00Z",
                    "EndDateSpecified": false,
                    "Recurrence": {
                        "MinuteRecurrence": null,
                        "DailyRecurrence": {
                            "DaysInterval": 1
                        },
                        "WeeklyRecurrence": null,
                        "MonthlyRecurrence": null,
                        "MonthlyDOWRecurrence": null
                    }
                }
            },
            "ScheduleDescription": "At 2:00 AM every day, starting 2/29/2020",
            "LastRunTime": null,
            "LastStatus": "New Subscription",
            "DataQuery": null,
            "ExtensionSettings": null,
            "DeliveryExtension": "Report Server Email",
            "LocalizedDeliveryExtensionName": "E-Mail",
            "ModifiedBy": "pc\userpower",
            "ModifiedDate": "2020-02-27T09:28:36.103Z",
            "ParameterValues": [
                {
                    "Name": "ProjectID",
                    "Value": "2",
                    "IsValueFieldReference": false
                },
                {
                    "Name": "UserID",
                    "Value": "10",
                    "IsValueFieldReference": false
                }
            ]
        }
    ]
}

如果您注意到 "ExtensionSettings" 始终为空。

此致, 乔

我遇到了完全相同的问题。到目前为止,找到获取此信息的唯一方法是单独调用订阅 GET。获取 ID 将 return ExtensionSettings。

http://{URI-host}/reports/api/v2.0/Subscriptions(8af9701b-1cae-4c7e-be36-5768f6412be5)