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

# Security

> Kill switch, quarantine, agent lifecycle, ownership, relationships, and security posture via the SDK

## block\_agent()

Block an agent from making requests (kill switch).

```python theme={null}
client.block_agent("agt_abc123", reason="Suspected credential leak")
```

## unblock\_agent()

Remove a block from an agent.

```python theme={null}
client.unblock_agent("agt_abc123")
```

## quarantine\_agent()

Quarantine a shadow or suspicious agent.

```python theme={null}
client.quarantine_agent("agt_abc123", reason="Unregistered agent detected on production traffic")
```

## release\_quarantine()

Release an agent from quarantine.

```python theme={null}
client.release_quarantine("agt_abc123")
```

## list\_quarantined\_agents()

List all quarantined agents.

```python theme={null}
quarantined = client.list_quarantined_agents()
```

## list\_expired\_agents()

List agents past their expiry date.

```python theme={null}
expired = client.list_expired_agents()
```

## list\_agents\_due\_review()

List agents due for access review.

```python theme={null}
due_review = client.list_agents_due_review()
```

## set\_agent\_lifecycle()

Configure an agent's expiry date, review frequency, and sponsor.

```python theme={null}
client.set_agent_lifecycle(
    "agt_abc123",
    expires_at="2026-12-31T00:00:00Z",
    review_frequency="quarterly",
    sponsor_id="user_42",
)
```

## assign\_owner()

Assign an owner to an agent, with an optional permission set.

```python theme={null}
client.assign_owner(
    "agt_abc123",
    owner_type="team",
    owner_id="support-team",
    owner_name="Support Team",
    permissions={"can_edit": True, "can_delete": False},
)
```

## list\_agent\_owners()

List all owners of an agent.

```python theme={null}
owners = client.list_agent_owners("agt_abc123")
```

## remove\_owner()

Remove an owner from an agent.

```python theme={null}
client.remove_owner("agt_abc123", 7)
```

## list\_owner\_agents()

List all agents owned by a specific owner.

```python theme={null}
agents = client.list_owner_agents("support-team")
```

## get\_agent\_relationships()

Get an agent's model, provider, and tool dependencies.

```python theme={null}
relationships = client.get_agent_relationships("agt_abc123")
```

## get\_relationship\_graph()

Get the full agent relationship graph as nodes and edges.

```python theme={null}
graph = client.get_relationship_graph()
```

## get\_security\_posture()

Get the tenant's security posture score (0-100) across six dimensions.

```python theme={null}
posture = client.get_security_posture()
```
