Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Hello, I'm getting error when I try to add cloud_tags using dataiku api.
I've tried different methods in vain
docs says:
:param dict cloud_tags: a key value dictionary of tags to be applied on the cloud resources
instance_creator = FMAWSInstanceCreator(client, label, template_id, network_id, image_id)
instance_creator.with_cloud_tags({"key1": 'value1', "key2": 'value2'})
dataikuapi.utils.DataikuException: com.dataiku.common.server.DKUControllerBase$MalformedRequestException: Could not parse a PublicProtoLogicalInstance from request body
What the issu?
The solution is to use list of dictionary not a dict as writen in code source.
instance_creator.with_cloud_tags([{'key': 'key1', 'value': 'value1'}],[{'key': 'key2', 'value': 'value2'}])