# Lock Pipeline

If you lock a pipeline it will prevent any modifications to the pipeline from the UI. You can still modify the pipeline using the API. Follow the steps below to lock a pipeline.

1. Click on the application from the [**application dashboard**](https://docs.opsmx.com/user-guide/dashboard/application-dashboard)**.** The **Pipelines** page with the details of all the pipelines for the selected application is displayed.&#x20;
2. Select the **Pipeline** to be disabled and click **Configure.**&#x20;

   <figure><img src="https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2FESA4f5cnRaiOVvFYD9YQ%2Fimage.png?alt=media&#x26;token=3408f093-04d1-4ebf-9df7-b2b6a209bb8c" alt=""><figcaption></figcaption></figure>
3. Select **Lock** option from the **Pipeline Actions** drop-down as shown below.

<figure><img src="https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2FbpfbuFm9Yw07Erb6rDvb%2FLock%20pipeline%202.png?alt=media&#x26;token=056a3c57-9ea0-4973-8a6f-375edc0aa80a" alt=""><figcaption></figcaption></figure>

3\.  A confirmation screen as shown appears to confirm your pipeline lock request. Make sure that you have selected the correct pipeline name and update the description of why this pipeline is locked and click **Lock pipeline**.&#x20;

{% hint style="info" %}
**Note: After clicking Lock Pipeline, this pipeline will be locked and cannot be modified.**&#x20;
{% endhint %}

<figure><img src="https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2FIwZEnkBLpG8MxBzmJyqZ%2FLock%20pipeline%201.png?alt=media&#x26;token=2b8d0b98-756d-4b6e-b2cc-2554a5bd44a0" alt=""><figcaption></figcaption></figure>

4\.  Now the selected pipeline is locked and a message **This pipeline is locked and does not allow modification** appears as shown in the image below.

<figure><img src="https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2FlmAwIb6lRoipOaA5MB4C%2FLock%20pipeline%203.png?alt=media&#x26;token=4b0de986-5585-43b2-bfa2-3a4ab513e9ff" alt=""><figcaption></figcaption></figure>

5\. To unlock the locked pipelines, **Unlock** option appears in the **Pipeline Actions** drop-down as shown in the image below.

<figure><img src="https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2FFTMpOKwQlEOwMeW6eVxZ%2FLock%20pipeline%204.png?alt=media&#x26;token=f2a7181e-01fe-4df1-a3c8-5821d06661e7" alt=""><figcaption></figcaption></figure>
