# AppDynamics

![AWS Marketplace: AppDynamics](https://assets.relyanceuat.xyz/images/docs/6316229961101/ext-67ba59b33e.jpg)
AppDynamics is a full-stack application performance management (APM) and IT operations analytics (ITOA) company. It focuses on managing the performance and availability of applications across cloud computing environments, IT infrastructure, network architecture, digital user experience design, application security threat detection, observability, and data centers.

#### In AppDynamics:

Get and record the following details from **AppDynamics controller UI**: they will be required later in this procedure.

1. ***controller-url***: AppDynamics controller URL
(should be similar to https://`<<account-name>>`.saas.appdynamics.com/).
2. ***account-name***: Under **Settings** >**Licence** >**Account** >**Name**
3. ***api-client-name*** *and* ***api-client-secret*** *:*
    - Select **Settings**> **Administration**> **API Clients**.
    - Select **Create**.
    - Enter values for “Client name”, “Description” and click on **Generate Secret**.
    - Under **Roles** add “Application & Dashboards Viewer”.
    - Click **Save**.
4. ***product***: Tenant-specific product name that you want to associate with in the integration analysis.

![8.jpg](https://assets.relyanceuat.xyz/images/docs/6316229961101/6341149104269.jpg)

#### In Relyance AI:

1. Select **Settings** i n the Relyance app menu.
2. Select **Integrations** from the Settings menu.
3. Select the **Infrastructure Integration** tab.
4. Click the **AppDynamics** card to open its connections.
5. Under **Authentication Method**, select **OAuth**
6. Under **Account Details**, use the JSON editor using the values recorded from AppDynamics earlier.
    - ***api-client-name*** is the “Client Name”.
    - ***api-client-secret*** is the “Client Secret”. EXAMPLE JSON

    ![mceclip0.png](https://assets.relyanceuat.xyz/images/docs/6316229961101/6317356070925.png)

    ![AppDynamics-1.png](https://assets.relyanceuat.xyz/images/docs/6316229961101/6476365304205.png)

7. Click **Authenticate**.
9. Congratulations, your integration is complete.

<!-- terraform-examples:begin (generated from the integration catalog; do not hand-edit) -->

## Manage this integration with Terraform

Connections for this integration can be managed as code with the [Relyance Terraform provider](https://registry.terraform.io/providers/Relyance/relyance/latest). Non-secret fields go in `auth.params`; secret fields go in `auth.secrets_wo`, which is write-only — never stored in Terraform state. Rotate secrets by bumping `auth.secrets_wo_version`.

```hcl
resource "relyance_integration_connection" "appdynamics" {
  vendor = "appdynamics"
  name   = "<your connection name>"

  auth = {
    method = "account-credentials"
    params = {
      accounts = jsonencode([
        {
          account-name = ""
          api-client-name = ""
          api-client-secret = ""
          controller-url = ""
          product = ""
        }
      ])
      data_storage_location = "us"
    }
  }

  scans = { "data-inspection" = { enabled = true } }
}
```

<!-- terraform-examples:end -->
