Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

There are two Tosca Parsers submited into modeling project, their API are listed below:

  • Openstack Tosca Parser API: (Python)

 1) use cli, which is used to validate tosca simple based service template. It can be used as:

        tosca-parser --template-file=<path to the YAML template>  [--nrpv]  [--debug]

        tosca-parser --template-file=<path to the CSAR zip file> [--nrpv]  [--debug]

        tosca-parser --template-file=<URL to the template or CSAR>  [--nrpv]  [--debug]

    options:

      --nrpv Ignore input parameter validation when parse template.

     --debug debug mode for print more details other than raise exceptions when errors happen


  2) use api, which is used to parse and get the result of service template. it can be used as

   ToscaTemplate(path=None, parsed_params=None, a_file=True, yaml_dict_tpl=None, 

                                          sub_mapped_node_template=None,

                                          no_required_paras_valid=False, debug=False )



  • Java based Tosca Parser API: (Java)