Go to: Synopsis. Return value. MEL examples.

Synopsis

containerCreateBindingSet

This script creates a or updates a binding set on the template associated with a container. The container is used as reference to generate the binding set mappings.

Return value

None

Arguments

Variable Name Variable Type Description
$containerstring, the container to use, or "" to use selected
$bindingSetstring, the bindingSet to use, or "" have default bindingSet name determined automatically
$updateModeintwhen true, indicates that the binding set exists and is being updated.
$forceUpdateintwhen true, indicates that the update will replace existing entries in the binding set. When false, existing binding set entries will be left as-is.

MEL examples

	// Create new binding set "MyBindings".  
	containerCreateBindingSet(myContainer, "MyBindings", 0, 0);

	// Update an existing binding set.  
  // Since force option is not used, existing bindings will not be replaced,
  // only new entries will be added.
	containerCreateBindingSet(myContainer, "MyBindings", 1, 0);

	// Update an existing binding set.  
  // Since force option is used, existing bindings will be refreshed with
  // the current bindings of the reference container. 
	containerCreateBindingSet(myContainer, "MyBindings", 1, 1);

	// Create a new binding set. Since the binding set name is not
  // specified, the new binding set will use a default binding set name.
	containerCreateBindingSet(myContainer, "", 0, 0);

	// Update the default binding set based on the reference container.
  // Since force option is used, all entries will be refreshed.
	containerCreateBindingSet(myContainer, "", 1, 1);