# workerDeploymentUIBundles

Audience: Developer

Lists every Worker Deployment Version in the tenant's namespace with its drainage status and the UI bundle it ships.

Lists every Worker Deployment Version in the tenant's namespace with its
drainage status and the UI bundle it ships. Used for drain visibility — which
versions still have pinned in-flight executions (draining) versus which are
safe to retire (drained). Admin-only.

**Served by:** [workflow](https://docs.pyck.cloud/api/services/workflow.md)

## Arguments

| Name | Type |
| --- | --- |
| `first` | Int |
| `after` | String |

## Returns

[DeploymentVersionUIConnection](https://docs.pyck.cloud/api/types/deploymentversionuiconnection.md)!

## Example

Returns the first 10 Worker Deployment Versions of the tenant's namespace with their drainage status and the UI bundles they ship. Admin only.

```graphql
query GetWorkerDeploymentUIBundles($first: Int, $after: String) {
  workerDeploymentUIBundles(first: $first, after: $after) {
    totalCount
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
    edges {
      cursor
      node {
        buildID
        bundles {
          slug
          version
          workflowType
        }
        deploymentName
        drainageStatus
      }
    }
  }
}
```

**Variables**

```json
{
  "first": 10
}
```
