api.feature_templates
¶
Cisco vManage Feature Templates API Methods.
Module Contents¶
-
class
api.feature_templates.
FeatureTemplates
(session, host, port=443)[source]¶ Bases:
object
vManage Feature Templates API
Responsible for DELETE, GET, POST, PUT methods against vManage Feature Templates.
-
delete_feature_template
(self, templateId)[source]¶ Obtain a list of all configured feature templates.
- Parameters
templateId (str) – Object ID for feature template
- Returns
All data associated with a response.
- Return type
result (dict)
-
get_feature_templates
(self)[source]¶ Obtain a list of all configured feature templates.
- Returns
All data associated with a response.
- Return type
result (dict)
-
add_feature_template
(self, feature_template)[source]¶ Add a feature template to Vmanage.
- Parameters
feature_template (dict) – Feature Template
- Returns
Response from Vmanage
- Return type
result (list)
-
update_feature_template
(self, feature_template)[source]¶ Update a feature template on Vmanage.
- Parameters
feature_template (dict) – Feature Template
- Returns
Response from Vmanage
- Return type
result (list)
-
get_feature_template_list
(self, factory_default=False, name_list=None)[source]¶ Obtain a list of all configured feature templates.
- Parameters
factory_default (bool) – Whether to return factory default templates
name_list (list of strings) – A list of the template names to return
- Returns
All data associated with a response.
- Return type
result (dict)
-
get_feature_template_dict
(self, factory_default=False, key_name='templateName', remove_key=True, name_list=None)[source]¶ Obtain a dictionary of all configured feature templates.
- Parameters
factory_default (bool) – Whether to return factory default templates
key_name (string) – The name of the attribute to use as the dictionary key
remove_key (boolean) – Remove the search key from the element
name_list (list of strings) – A list of the template names to return
- Returns
All data associated with a response.
- Return type
result (dict)
-