Slices¶
-
tnglib.create_slice_template(path)¶ Creates a slice template.
Parameters: path – relative path to where the slice template is stored. Returns: A tuple. [0] is a bool with the result. [1] is a string containing the uuid of the uploaded slice template, or an error message.
-
tnglib.delete_slice_template(slice_template_uuid)¶ Deletes a specific slice template.
Parameters: slice_template_uuid – uuid of a slice template. Returns: A tuple. [0] is a bool with the result. [1] is a string containing the uuid of the removed slice template.
-
tnglib.get_slice_instance(slice_instance_uuid)¶ Returns info on a specific slice instance.
Parameters: slice_instance_uuid – uuid of a slice instance. Returns: A tuple. [0] is a bool with the result. [1] is a dictionary containing a slice instance record.
-
tnglib.get_slice_instances()¶ Returns info on all slice instances.
Returns: A tuple. [0] is a bool with the result. [1] is a list of dictionaries. Each dictionary contains a slice instance record.
-
tnglib.get_slice_template(slice_template_uuid)¶ Returns info on a specific slice template.
Parameters: slice_template_uuid – uuid of a slice template. Returns: A tuple. [0] is a bool with the result. [1] is a dictionary containing a slice template.
-
tnglib.get_slice_templates()¶ Returns info on all available slice templates.
Returns: A tuple. [0] is a bool with the result. [1] is a list of dictionaries. Each dictionary contains a slice template.