Editing a service instance
You can edit any active deployed service instance after selecting the required service instance and editing the parameters.
The following table shows how the different activities are managed during the Edit action when the Editable flag is checked for an activity:
| Activity | Action on Edit |
|---|---|
| Terraform template | Modified (Depends on the template provider) |
| Rest Hook | Destroyed and re-created |
| Email notification | Executed again |
| Helm Chart | Destroyed and re-created |
| Decision | Not supported |
| BAW/BPM template | Not supported |
| Ansible credential | Destroyed and re-created |
| Ansible inventory | Destroyed and re-created |
| Ansible template | Executed again |
Notes:
- The activity parameters, which are parameterized by using the service input parameters can only be edited by using this feature.
- If you change an activity instance from
Editabletonon-Editableor vice versa after the service is deployed, then Edit service instance action is not affected due to this change. - If there are no input parameters or if the values of input parameters are not changed during the edit service instance, the edit action does not take place.
- If a service includes Helm and/or Ansible job activities, after editing the deployed service instance where input parameters are changed for other activity and not for Helm and Ansible job activities, the Helm and Ansible activities are also destroyed and re-created.
- In case where one activity depends on another activity, after an Edit action, if the first activity is destroyed and re-created then the other activity also gets destroyed and re-created. If you want to edit only the first activity, make the other activity as non-editable so that it does not participate in the Edit action. After Edit action, only the first activity gets destroyed and re-created.
To edit a service instance:
-
Navigate to the deployed instances page, by using one of these methods:
- In the navigation bar, click Deployed instances > Services tab.
- Alternatively, any operational user can access the instances page using the service library. From the IBM Cloud Pak for AIOps console, click Automate Infrastructure > Library. The Instances tab shows the deployed instances.
-
In the Deployed Instances page, you can see a list of all deployed instances. Each instance record has name, service offering, status, and the time of order.
-
Edit the deployed active instance by using any of the following methods:
a. Search for your deployed instance by using any of the following search filters:
-
Enter your instance name in Search instances.
-
Click the show filter menu icon to filter records based on the status of a record. The different statuses of a service instance are Active, In progress, Error, and Terminated.
Note: The Wait status is available whenever you use long running Business Process Manager template in your service.
-
You can click Name and Ordered On column headers to sort records. The Name also includes the namespace details. In addition, you have Service Offering and Status column headers.
-
You can select a namespace from the All namespaces drop-down list. The list of deployed services in the page changes based on the selected namespace. You can select "All namespaces" to see all of the deployed services for which you have access.
-
You can use the pagination drop-down to select the number of records you want to display in a page at a time. Use the > or < to go through the next or previous set of records.
-
Click the Edit in the overflow menu. You can edit parameters of any Active service instance.
b. The service instance edit action can also be selected from the service instance details page.
- Click the service instance to be edited.
- Click Edit from the Actions overflow menu of the service instance details page.
c. Alternatively, you can also edit the service instance by selecting the service first and then its associated instance.
- From the menu bar, click Library > Services.
- Click the wanted service from the list of services.
- Click the Associated instances tab and select the instance and click Edit from the overflow menu.
-
-
Confirm Edit in the Edit service instance dialog box.
-
You can Modify or Delete the service tags. For more information about adding tags, see Creating a service.
Notes:
-
You can modify only user added tags and not system tags.
-
To Delete the service tag, click the delete icon on the right side of the text box.
-
-
Modify the required parameters. For more information about creating user-defined parameters, see Creating new input and output parameters.
Notes: The service input parameters, which are marked as Editable during creation can only be updated here.
If the Editable is not checked for an activity and the user edits the service instance, then the service input parameter values are updated in the service instance but in actual resource the parametrized property value is not be changed.
-
Click Perform action. The Planned changes page is displayed.
-
Verify the log output and then click Edit instance. The service instance is redeployed with the latest modifications.