testing the Test Connection in swagger we get an error. The purpose is to test the test connection for all assets on SPP since on SPP if many assets are selected, there can be many false positives. The customer wants a script that he can launch massively on demand. I attach step by step process we are trying.
First we query this method to have all the id of the assets: ASSETS GET /v4/Assets specifying to have the id in the field "fields"
Once we have all ids we query this method to test the “TestConnection”: POST /4/Assets/(id)/TestConnection specifying the single id
we want to cycle this but if we try with a specific id we get some responces but mainly an error:
{
"Code": 70000,
"Message": "The request is invalid.",
"ModelState": {
"entity.ConnectionProperties.ServiceAccountProfileId": [
"The field ServiceAccountProfileId must be a valid non-zero database ID."
],
"entity.ConnectionProperties.ServiceAccountSshKeyProfileId": [
"The field ServiceAccountSshKeyProfileId must be a valid non-zero database ID."
]
}
}
what can we do?
the aim is to create a script that is launched on demand to query all assets with the test connection since in spp if too many assets are queried, many false positives are received.
thank you so much!