Skip to main content

enterprise_ai.llm.isolation

Source: sdks/python/src/enterprise_ai/llm/isolation/__init__.py. Back to the Python SDK reference index.

note

This page is generated by tools/docs/gen_sdk_reference.py from the SDK sources and the OpenAPI text folders. Do not edit it by hand: change the source and regenerate.

Class IsolationClient​

/v1/llm/isolation.

Resource

IsolationClient.get​

get(project_id: str | None = None) -> Any

Read the isolation mode. Effective isolation mode for the tenant or one of its projects: the project setting when present, else the tenant setting, else connected, with the declared internal hosts. Requires a tenant principal (400 tenant_required) with tenant_admin, platform_admin, security_officer, finops, developer, auditor or viewer.

Route: /v1/llm/isolation (GET).

NameTypeDefaultRequiredDescription
project_idstr | NoneNonenoProject whose mode is read. Omit it for the tenant mode.

Returns: Any. Decoded JSON answer of the operation "Read the isolation mode".

Raises: the typed errors of the transport (Errors).

IsolationClient.set​

set(profile: dict[str, Any]) -> Any

Set the isolation mode. Sets the isolation mode of the tenant or of one project. In local_only or air_gapped, only local providers (vLLM, Ollama, LM Studio) and the declared internal hosts are reachable: an external route is refused in preflight (403 isolation_external_route) and the outbound call is checked again (403 isolation_egress_denied). Audited (llm.isolation.set). Requires a tenant principal with tenant_admin, platform_admin or security_officer.

Route: /v1/llm/isolation (PUT).

NameTypeDefaultRequiredDescription
profiledict[str, Any]yesIsolation profile document (dedicated providers, regions, network egress) sent as the PUT body.

Returns: Any. Decoded JSON answer of the operation "Set the isolation mode".

Raises: the typed errors of the transport (Errors).