> ## Documentation Index
> Fetch the complete documentation index at: https://anaconda.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# DeployedApp

A deployed app on Anaconda Platform, imported from `metaflow.apps`.

Obtain instances via `AppDeployer.deploy()` or `AppDeployer.list_deployments()`.

**Examples:**

After deployment:

```python theme={null}
deployed = deployer.deploy()
print(deployed.public_url)
```

After listing:

```python theme={null}
apps = AppDeployer.list_deployments(tags=[{"env": "staging"}])
for app in apps:
    print(f"{app.name}: {app.public_url}")
```

Inspect and manage:

```python theme={null}
# Get logs
for worker_id, lines in deployed.logs().items():
    print(f"Worker {worker_id}: {len(lines)} log lines")

# Scale down
deployed.scale_to_zero()

# Clean up
deployed.delete()
```

Make authenticated requests (API auth):

```python theme={null}
import requests
response = requests.get(deployed.public_url, headers=deployed.auth())
```
