Adding cloud_tags via dataiku python api

Options
Abdoulaye
Abdoulaye Dataiku DSS Core Designer, Registered Posts: 42 ✭✭✭✭✭

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?

Answers

  • Abdoulaye
    Abdoulaye Dataiku DSS Core Designer, Registered Posts: 42 ✭✭✭✭✭
    Options

    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'}])
Setup Info
    Tags
      Help me…