From 7533ebe13e404520d9bfcb4e36b4a6324e8f2c5a Mon Sep 17 00:00:00 2001 From: SeaBlooms Date: Thu, 5 Sep 2024 11:03:16 -0600 Subject: [PATCH] add integration_definition_id param and set default to Custom --- jupiterone/client.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/jupiterone/client.py b/jupiterone/client.py index 6fc7b88..5d31a37 100644 --- a/jupiterone/client.py +++ b/jupiterone/client.py @@ -412,18 +412,23 @@ def delete_relationship(self, relationship_id: str = None): response = self._execute_query(DELETE_RELATIONSHIP, variables=variables) return response["data"]["deleteRelationship"] - def create_integration_instance(self, instance_name: str = None, instance_description: str = None): + def create_integration_instance(self, + instance_name: str = None, + instance_description: str = None, + integration_definition_id: str = "8013680b-311a-4c2e-b53b-c8735fd97a5c"): """Creates a new Custom Integration Instance. args: instance_name (str): The "Account name" for integration instance instance_description (str): The "Description" for integration instance + integration_definition_id (str): The "Integration definition ID" for integration instance, + if no parameter is passed, then the Custom Integration definition ID will be used. """ variables = { "instance": { "name": instance_name, "description": instance_description, - "integrationDefinitionId": "8013680b-311a-4c2e-b53b-c8735fd97a5c", + "integrationDefinitionId": integration_definition_id, "pollingInterval": "DISABLED", "config": { "@tag": {