Forum Discussion
I don't think you need to post all that for the test location.
I looked through my code and all i'm passing is the `collectorId` and `all` like this:
website = Website(
name=website["name"],
type=website["type"],
test_location={
"collectorIds": [1,2],
"all": True,
},
- cna31 days agoNeophyte
Forgot to include more details...
This took me a while to figure this out as well since the SDK docs aren't really clear. Since the SDK is just automatically generated via swagger, I often find myself digging through the API docs to try to piece together what's needed.
There's no equivalent doc for v3 API, but I can confirm this still is still the same in v3. https://www.logicmonitor.com/support/rest-api-developers-guide/v1/services/add-services(also i just noticed that IDs 1 and 2 used in my example aren't valid... but the point still stands. find the IDs of our collectors and that's all you need.)
Related Content
- 2 years ago
- 5 months ago