Anyone able to shed light on adding a new DataSource using the API endpoint? While the swagger docs show the expected properties, there is no indication of required or not and the exceptions don't easily tie back to identify what's being expected.
https://app.swaggerhub.com/apis/microsoft-rs/SSRS/2.0#/DataSources/AddDataSource
I've been able to identify that this error: Expected parameter 'Prompted User Credentials' is missing
is raised when the "CredentialsByUser" object (or one of it's child properties isn't set). The standard defaults for when you don't want to prompt the user to login would be NULL and default boolean value would be False... but yet it's still required
"CredentialsByUser"= @{"DisplayText"= $null;
"UseAsWindowsCredentials"= $false;
};
I'm currently fighting against the error: Expected parameter 'User ID' is missing which I suspect is in reference to the "ParameterValues" property. I already have the "CredentialsInServer" UserName and Password set which are indicated as being where the SQL Server creds should be set for the connection string (btw plain text pwd is bad mmmkay).
The ConnectionString doesn't currently have creds included in it only the Data Source and Initial Catalog as my expectation is that the "CredentialsInServer" will be used. Do I need to add a placeholder in the ConnectionString? Something else?
{"Id": "01234567-89ab-cdef-0123-456789abcdef",
"Name": "string",
"Description": "string",
"Path": "string",
"Type": "Unknown",
"Hidden": true,
"Size": 0,
"ModifiedBy": "string",
"ModifiedDate": "2017-04-13T15:51:04Z",
"CreatedBy": "string",
"CreatedDate": "2017-04-13T15:51:04Z",
"ParentFolderId": "01234567-89ab-cdef-0123-456789abcdef",
"ContentType": "string",
"Content": "string",
"IsFavorite": true,
"IsEnabled": true,
"ConnectionString": "string",
"DataSourceType": "string",
"IsOriginalConnectionStringExpressionBased": true,
"IsConnectionStringOverridden": true,
"CredentialsByUser": {
"DisplayText": "string",
"UseAsWindowsCredentials": true
},
"CredentialsInServer": {
"UserName": "string",
"Password": "string",
"UseAsWindowsCredentials": true,
"ImpersonateAuthenticatedUser": true
},
"IsReference": true,
"Subscriptions": {
"Id": "01234567-89ab-cdef-0123-456789abcdef",
"Owner": "string",
"IsDataDriven": true,
"Description": "string",
"Report": "string",
"IsActive": true,
"EventType": "string",
"ScheduleDescription": "string",
"LastRunTime": "2017-04-13T15:51:04Z",
"LastStatus": "string",
"ExtensionSettings": {
"Extension": "string",
"ParameterValues": {
"Name": "string",
"Value": "string",
"IsValueFieldReference": true
}
},
"DeliveryExtension": "string",
"LocalizedDeliveryExtensionName": "string",
"ModifiedBy": "string",
"ModifiedDate": "2017-04-13T15:51:04Z",
"ParameterValues": [
{
"Name": "string",
"Value": "string",
"IsValueFieldReference": true
}
]
}
}