# Pub/Sub Subscription Name

### PUBSUB

The following figure depicts the information to be provided to add PUBSUB as an integration.

<figure><img src="https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2FZvrCdl1BMbFaksn7AES9%2FPUBSUB.png?alt=media&#x26;token=8216fa29-71e1-4b28-8ce8-390d823d1a83" alt=""><figcaption></figcaption></figure>

Following are the fields:

* **Account Name**: The name of the Aquawave user account&#x20;
* **Project Name**: Name of the GCP project where the subscription is
* **Subscription Name**: Name of the subscription
* **Message Format**: Select the message format from the drop down. The supported formats are GCB, GCS, GCR, CUSTOM
* **Authentication Type**: Select the user authentication mode for the Artifactory.&#x20;

  1. Select **Anonymous / Role-Based** as the authentication type if no authentication is required.
  2. You can also select **Json Key File** as the authentication type. Add the JSON service account file in the **File** field for Spinnaker to use as credentials. If this option is selected another field named **Translation Template** is displayed.&#x20;
  3. **Translation Template** - This template translates the Pub/Sub payload as a Spinnaker artifact by creating a Jinja template. Add your file by clicking **Choose File**.&#x20;

  <figure><img src="https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2FCRpznYJwCBJQIJ3LKxtE%2Fimage.png?alt=media&#x26;token=05ed18ff-6840-439f-860b-f05ef139541a" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
The Translation Template field is optional for GCB, GCR, GCS message formats and mandatory for Custom message format.&#x20;
{% endhint %}

* **Validate**: To validate the entries before saving, enable the Validate radio button. The default value is true
* **Connect to CD**: Enable the selection & Select the spinnaker instance you want to associate this account to&#x20;
* **Group and Permissions**: To enable access to all user groups, check the  **Enable all access to all the groups for this** checkbox. To provide access to only selected user groups, uncheck this checkbox and select the required users from the **Select Group** drop down and enable the needed permissions like **Edit**, **View** or **Delete**.&#x20;
