// Module included in the following assemblies:
// as_amq2api-create-integration.adoc

[id='amq2api-name-and-publish_{context}']
= Giving the integration a name and deploying it

The AMQ to REST API sample integration is complete when it has a Red Hat AMQ start
connection, a Damage Reporter step, a data mapper step, and it finishes
with a Todo App Client API connection. Follow the instructions here to 
deploy it. 

.Prerequisites
* You added the start and finish connections to the integration.
* You added a Damager Reporter step between the start and finish connections.
* You added a data mapper step between the Damage Reporter step and 
the connection to the Todo App API. 

.Procedure
. In {prodname}, in the upper right, click *Publish*.
. In the *Name* field, enter a name for the
integration. For example, `*AMQ to REST API Sample Integration*`.
. Optionally, in the *Description* field, enter information that might be
helpful to know about this integration.
. Optionally, add one or more custom environment variables for an integration. 
. Optionally, in the *Labels* field, add one or more labels. A label is a key-value pair tag that you can apply to an integration for later filtering and selecting in OpenShift. For example, an OpenShift admin user can filter the list of running pods or deployments by label.
. In the upper right corner, click *Save and publish*.
+
{prodname} starts to deploy the integration and then displays the 
list of integrations in this environment. In the entry for your AMQ to 
REST API integration, you can see a progress
indicator that shows the publishing stages. 
{prodname} is generating the runtime for the integration and
will start it when the runtime is ready. This takes a few minutes.
+
A {prodname} account is limited to a specific number of 
integrations that can be running at one time. For details, 
see the pricing plan. If you are already running the maximum
number of integrations, then you must stop an integration
before you can start running another one. 

. If you are already running the maximum number of integrations, follow
these steps to stop an integration:

.. In the left panel, click *Integrations*.
.. In the entry for the integration that you want to stop, click
image:images/tutorials/ThreeVerticalDotsKebab.png[title="the three vertical dots"]
on the far right. 
.. In the popup, click *Stop*. 

. After stopping an integration, start another integration as follows:

.. In the left panel, click *Integrations*.
.. In the entry for the integration that you want to start, click
image:images/tutorials/ThreeVerticalDotsKebab.png[title="the three vertical dots"]
on the far right. 
.. In the popup, click *Start*. 
