Itential logo
Demos

How to Create Resources, Instances, & Actions in Itential’s Lifecycle Manager

Itential
Company ‐ Itential
Developer Resources
December 14, 2023

[vc_section full_width=”stretch_row” el_id=”section-hero-resource” el_class=”gradient-navy-pink”][vc_row el_id=”hero-row-video-overlay”][vc_column][vc_raw_html]JTVCcmVzb3VyY2VfcHJpbWFyeV9jYXQlNUQ=[/vc_raw_html][/vc_column][/vc_row][/vc_section][vc_row el_class=”resource-video-row”][vc_column css=”.vc_custom_1539617404793{margin-top: -50px !important;}”][vc_empty_space][vc_raw_html]JTNDc2NyaXB0JTIwc3JjJTNEJTIyaHR0cHMlM0ElMkYlMkZmYXN0Lndpc3RpYS5jb20lMkZlbWJlZCUyRm1lZGlhcyUyRmFsa2NjOWwzZjAuanNvbnAlMjIlMjBhc3luYyUzRSUzQyUyRnNjcmlwdCUzRSUzQ3NjcmlwdCUyMHNyYyUzRCUyMmh0dHBzJTNBJTJGJTJGZmFzdC53aXN0aWEuY29tJTJGYXNzZXRzJTJGZXh0ZXJuYWwlMkZFLXYxLmpzJTIyJTIwYXN5bmMlM0UlM0MlMkZzY3JpcHQlM0UlM0NkaXYlMjBjbGFzcyUzRCUyMndpc3RpYV9yZXNwb25zaXZlX3BhZGRpbmclMjIlMjBzdHlsZSUzRCUyMnBhZGRpbmclM0E1Ni4yNSUyNSUyMDAlMjAwJTIwMCUzQnBvc2l0aW9uJTNBcmVsYXRpdmUlM0IlMjIlM0UlM0NkaXYlMjBjbGFzcyUzRCUyMndpc3RpYV9yZXNwb25zaXZlX3dyYXBwZXIlMjIlMjBzdHlsZSUzRCUyMmhlaWdodCUzQTEwMCUyNSUzQmxlZnQlM0EwJTNCcG9zaXRpb24lM0FhYnNvbHV0ZSUzQnRvcCUzQTAlM0J3aWR0aCUzQTEwMCUyNSUzQiUyMiUzRSUzQ2RpdiUyMGNsYXNzJTNEJTIyd2lzdGlhX2VtYmVkJTIwd2lzdGlhX2FzeW5jX2Fsa2NjOWwzZjAlMjBzZW8lM0R0cnVlJTIwdmlkZW9Gb2FtJTNEdHJ1ZSUyMiUyMHN0eWxlJTNEJTIyaGVpZ2h0JTNBMTAwJTI1JTNCcG9zaXRpb24lM0FyZWxhdGl2ZSUzQndpZHRoJTNBMTAwJTI1JTIyJTNFJTNDZGl2JTIwY2xhc3MlM0QlMjJ3aXN0aWFfc3dhdGNoJTIyJTIwc3R5bGUlM0QlMjJoZWlnaHQlM0ExMDAlMjUlM0JsZWZ0JTNBMCUzQm9wYWNpdHklM0EwJTNCb3ZlcmZsb3clM0FoaWRkZW4lM0Jwb3NpdGlvbiUzQWFic29sdXRlJTNCdG9wJTNBMCUzQnRyYW5zaXRpb24lM0FvcGFjaXR5JTIwMjAwbXMlM0J3aWR0aCUzQTEwMCUyNSUzQiUyMiUzRSUzQ2ltZyUyMHNyYyUzRCUyMmh0dHBzJTNBJTJGJTJGZmFzdC53aXN0aWEuY29tJTJGZW1iZWQlMkZtZWRpYXMlMkZhbGtjYzlsM2YwJTJGc3dhdGNoJTIyJTIwc3R5bGUlM0QlMjJmaWx0ZXIlM0FibHVyJTI4NXB4JTI5JTNCaGVpZ2h0JTNBMTAwJTI1JTNCb2JqZWN0LWZpdCUzQWNvbnRhaW4lM0J3aWR0aCUzQTEwMCUyNSUzQiUyMiUyMGFsdCUzRCUyMiUyMiUyMGFyaWEtaGlkZGVuJTNEJTIydHJ1ZSUyMiUyMG9ubG9hZCUzRCUyMnRoaXMucGFyZW50Tm9kZS5zdHlsZS5vcGFjaXR5JTNEMSUzQiUyMiUyMCUyRiUzRSUzQyUyRmRpdiUzRSUzQyUyRmRpdiUzRSUzQyUyRmRpdiUzRSUzQyUyRmRpdiUzRQ==[/vc_raw_html][/vc_column][/vc_row][vc_row el_id=”transcript-row”][vc_column width=”2/3″][vc_column_text]

How to Create Resources, Instances, & Actions in Itentialu2019s Lifecycle Manager

Lifecycle Manager is an application within the Itential Automation Platform that helps teams and organizations centrally manage automation initiatives by allowing users to track changes and other information using stored state data. It provides a framework for tracking automated processes for network resources under a service lifecycle view, which is especially useful when managing large-scale or complex infrastructure. Lifecycle Manager enables this central approach to managing automated network services by allowing users to define Resources and use Actions to create different Instances, or stages, within the overall project view. In plain language, itu2019s a more convenient way to manage all of the different resources, jobs, and state data across different sources for large-scale or high-volume automated services. To help you see it for yourself, this demo shows how Lifecycle Manager is used to manage the creation and decommissioning of multiple virtual machines using VMware vSphere. In this ItentiaLearn demo learn step-by-step how to:

  • Create a new Resource and define a Resource Model to store pertinent properties of a virtual machine.
  • Leverage Lifecycle Manager Actions to perform virtual machine tasks like create, shutdown, and delete at scale.
  • Create and manage a Lifecycle Manager Instance by executing different Actions.
  • Use Lifecycle Manager to deliver services more consistently.

[/vc_column_text][vc_column_text][break]

Useful Documentation

Lifecycle Manager Overview Lifecycle Manager Resources[/vc_column_text][/vc_column][vc_column width=”1/3″][mpc_accordion preset=”mpc_preset_3″ auto_close=”true” auto_indent=”” opened=”1″ title_font_color=”#E1E1E1″ title_font_size=”16″ title_font_transform=”uppercase” title_font_align=”left” title_background_color=”#FF0095″ title_border_divider=”true” title_border_css=”border-radius:10px;” title_padding_divider=”true” title_padding_css=”padding-top:7px;padding-right:10px;padding-bottom:7px;padding-left:10px;” title_margin_divider=”true” title_margin_css=”margin-top:10px;margin-right:0px;margin-bottom:0px;margin-left:0px;” hover_title_color=”#ffffff” hover_title_background_color=”#FF0095″ content_font_align=”left” content_background_color=”#f5f5f5″ content_border_divider=”true” content_padding_divider=”true” content_padding_css=”padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px;” content_margin_divider=”true” content_margin_css=”margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;” border_divider=”true” margin_divider=”true” margin_css=”margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;” mpc_icon__transition=”slide-right” mpc_icon__icon=”eti eti_book_alt” mpc_icon__icon_color=”#adadad” mpc_icon__icon_size=”20″ mpc_icon__background_color=”#f5f5f5″ mpc_icon__padding_css=”padding:10px;” mpc_icon__hover_icon=”eti eti_close_alt” mpc_icon__hover_icon_color=”#ffffff” mpc_icon__hover_background_color=”#b39a68″ mpc_icon__hover_border_divider=”true” class=”transcript-accordion”][mpc_accordion_tab title=”Demo Notes” class=”transcript-head”][vc_column_text css=””](So you can skip ahead, if you want.) 00:00 Introduction of Lifecycle Manager & Overview of Demo 00:34 Creating a New Resource 00:59 Defining the Resource Model 01:27 Creating Actions in Lifecycle Manager u2014 Create, Update, & Delete 03:34 Using Actions with Resources 05:22 Validating an Action Is Created Correctly 06:58 Overview of How to Use Created Actions 07:16 Creating Instances Using Actions 08:06 Viewing Properties of a Completed Instance[/vc_column_text][/mpc_accordion_tab][mpc_accordion_tab title=”View Transcript” class=”transcript-head”][vc_column_text css=”” el_class=”transcript”]Speaker u2022 00:00 Hello and welcome to another Itential demo using Lifecycle Manager. In today’s demo, we will have a walkthrough of LCM, a new application available in IAP version 2023.1. LCM enables users to take advantage of the state that Itential keeps of the attributes of a service. With the help of asset modeling, LCM makes it easy for users to track changes to their assets throughout the lifecycle. Now let’s dive into LCM on IAP and create our first resource. Let’s create a resource. We will be naming this resource as VMware vSphere VM. Now, let’s define the resource model. We will be storing three values in this resource model. Speaker u2022 01:07 The name of the virtual machine created, the VM ID, which is going to be used in making API calls and track the VM, and the power of the VM, whether the VM is turned on or off. Let’s save this resource model. So now our resource model is saved successfully, and we will be moving on to how to create actions in Lifecycle Manager. There are three types of actions, create, update, and delete. And for the purpose of this demo, we will be creating one action of each type. Let’s start with the create action. Let’s name this action as create VM, let’s add a workflow to this action. Speaker u2022 02:00 Now we can see that the output values of the workflows do not map to the schema or the resource model. For this, we will use a post transformation. Let’s select the post transformation. As we can see all the errors are gone. Now let’s have a look at this post transformation in Automation Studio. Here the inputs for this JST are the outputs of the workflow ADR LCM create VM and we are extracting information from these job variables and transforming them into the resource schema of the instance. Similarly let’s go and create an update action. Speaker u2022 03:09 Let’s name this action as VM shutdown. Let’s select a workflow. This action will shut down the VM on demand in case if there is a need to free up some infrastructure. Now let’s select a pre-transformation. The reason why we use a pre-transformation is to make use of the values or the stateful information that is already stored in the schema. In this case, we will be creating our new pre-transformation. Here, the input is the instance or the information that is being stored for this particular instance or this particular VM. Speaker u2022 04:16 And we will be mapping the VM ID to the outgoing schema here, which will be the input to our workflow. Let’s save this transformation. We will also need to modify the values of the schema after our workflow execution is complete. This can be done with the help of a POST transformation. Let’s create a new POST transformation. Since we are shutting down the VM, we will be setting the value of the powerdown variable in this instance to false. Let’s create a new Boolean. Speaker u2022 05:07 We will also be passing the VM ID and the name of the VM as is. Let’s save this transformation. And if you go to Lifecycle Manager again, we can see that our action does not have any form of errors anymore, and it is already saved. So this completes our update action. Similarly, we will be creating a delete action. Let’s create a new delete action. We’ll name this action as delete VM. Speaker u2022 05:45 Now let’s select our workflow. We will be creating a pre-transformation here again, like we created in the update action. Similarly, to pass the VM ID to the workflow, let’s save this transformation and let’s go back to Lifecycle Manager. Here we are required to create a post-transformation in the same way that we created for the update and the create action. So let’s create this post-transformation. Since we are just deleting the VM, we will simply be passing all the values that we already have to the instance without any form of modification. Let’s save this transformation. Speaker u2022 06:51 Let’s go back to lifecycle manager and we can see our post transformation has already been added here. Let’s save this action. This means that now we have one action for each type of action, which is we have one action that will create the VM, one which will shut the VM down, and then one which will finally delete the VM. Let’s move on to creating instances using these actions. Say for example, a new user wants a Red Hat Linux server. Let’s create an instance using our create action. Let’s name this instance as red-hat-test-server. Speaker u2022 07:44 The create action, which will be used to create this server, requires certain inputs like the name and the specs of the VM, which we will be entering here. Once these information have been added, we will click save. And, as we can see here, a new instance is created and currently it is running. Once this has completed execution, we will be able to see that the instance has been successfully created and have a look at the properties. Upon returning a couple of minutes later, we can see that our VM has been successfully created. Let’s have a look at the properties. Over here, we have the name of the VM, the VM ID, which will be used in subsequent actions like update and delete, as well as we can see that the VM has been powered on. Speaker u2022 08:46 Now let’s run a different action, which is called VM shutdown. So let’s run the shutdown action. Let’s go to the history here. And we can see that the shutdown action is currently running on the VM and it is complete. So let’s look at the properties again. And in this case, the powered on is now not checked anymore as the VM is turned off. Let’s now run our final action, which is to delete this instance. Speaker u2022 09:23 Let’s go back to history and the VM has successfully been deleted and it does not show up here as an active instance. If we need to still fetch some history from it, we can go to show deleted and over here we have our final state as well as the last action on it. So this pretty much concludes the demo. Please refer to docs. itential.com if you need any further information related to Lifecycle Manager.[/vc_column_text][/mpc_accordion_tab][/mpc_accordion][/vc_column][/vc_row][vc_row el_class=”resource-video-row”][vc_column css=”.vc_custom_1539617404793{margin-top: -50px !important;}”][related-content][/vc_column][/vc_row]

Keep Learning

The Latest in Agentic Operations

Get Started

Agentic infrastructure operations starts here.

See how Itential connects AI reasoning to governed execution across your entire infrastructure.

Talk to our Experts