> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/i/ibm-urbancode-deploy.md).

# IBM UrbanCode Deploy

IBM UrbanCode Deploy (IBM DevOps Deploy) automates application deployment. OctoXLabs reads the deployment agents as devices and the users who hold a role in a team, directly or through a group.

## Use cases

* List UrbanCode Deploy agents.

```
Adapters = ibm-urbancode-deploy
```

* Find UrbanCode Deploy agents that have not made contact recently.

```
Adapters = ibm-urbancode-deploy AND NOT LastSeen last now-30d/d
```

## Before you begin

### Network

| Source              | Destination             | Port           | Protocol |
| ------------------- | ----------------------- | -------------- | -------- |
| OctoXLabs connector | UrbanCode Deploy server | 8443 (default) | HTTPS    |

### Required permissions

| Scope or role                              | Permission | Needed for |
| ------------------------------------------ | ---------- | ---------- |
| **View Agents**                            | Read       | Devices    |
| Permission to view teams, groups and users | Read       | Users      |

## Create credentials in IBM UrbanCode Deploy

{% stepper %}
{% step %}

### Create an auth token

In UrbanCode Deploy go to **Settings** > **Tokens** and create an auth token. You can also use the password of an account.
{% endstep %}

{% step %}

### Check permissions

The account, or the user the token belongs to, needs **View Agents** for agents, and permission to view teams, groups and users for users.
{% endstep %}

{% step %}

### Keep the default user name

Keep `PasswordIsAuthToken` as the user name when the password field holds an auth token. To use an account password, enter that account's user name.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter    | Required | Type    | Default               | Description                                                           |
| ------------ | -------- | ------- | --------------------- | --------------------------------------------------------------------- |
| IP           | Yes      | Text    | None                  | Host name or IP address of the server. Example: `ucd.example.com`.    |
| Port         | No       | Integer | `8443`                | HTTPS port of the web interface and REST API.                         |
| Is Secure    | No       | Boolean | `true`                | Use HTTPS. The default self-signed certificate is accepted.           |
| Username     | No       | Text    | `PasswordIsAuthToken` | Keep the default with an auth token, otherwise the account user name. |
| Password     | Yes      | Text    | None                  | Auth token or the account password.                                   |
| Thread Count | No       | Integer | `32`                  | Parallel requests for user and agent details (1 to 32).               |
| Timeout      | No       | Integer | `30`                  | Seconds to wait for API responses.                                    |

## Troubleshooting

| Error message                                                                                                                                                    | Cause                                                        | Fix                                                      |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | -------------------------------------------------------- |
| `Details or host name could not be read for <n> agent(s); they are listed under their agent id, some without first and last contact times. Last error: <reason>` | Agent detail or host name calls failed. Logged as a warning. | Check the **View Agents** permission and the log reason. |
| `Details could not be read for <n> user(s); team members are listed without their groups, group-only members are left out. Last error: <reason>`                 | User detail calls failed. Logged as a warning.               | Check the permission to view users.                      |
| `Members of group <name> could not be read. <reason>`                                                                                                            | The group export failed. Logged as a warning.                | Check the permission to view groups.                     |

## Change history

{% hint style="info" %}
Available starting from version 6.9.1.
{% endhint %}
