Skip to main content
client.agent_vault.proxies.create() creates a proxy and its proxy token. The client must log in as a user or machine identity with the Admin role in the Agent Vault project.

Parameters

str
required
The ID of the Agent Vault project to create the proxy in.
str
required
The name of the proxy, in lowercase letters, numbers, and hyphens (up to 64 characters).
Union[AgentVaultTrafficPolicy, str]
The proxy’s traffic policy, either AgentVaultTrafficPolicy.ANY_HOST ("any-host") to forward requests to any host or AgentVaultTrafficPolicy.SERVICE_HOSTS ("service-hosts") to refuse requests to hosts that none of the session’s services cover (defaults to AgentVaultTrafficPolicy.ANY_HOST; 1.1.0 calls SERVICE_HOSTS AgentVaultTrafficPolicy.BUNDLE_HOSTS, and that name still works).
Union[List[str], str]
Hosts that agents can reach under AgentVaultTrafficPolicy.SERVICE_HOSTS even if none of the session’s services cover them, as a list or a comma-separated string (see Exceptions).
int
How often, in seconds, the proxy checks its sessions and settings with Infisical, from 10 to 300 (defaults to 60).
str
What the proxy is for (up to 256 characters, without line breaks or tabs).

Returns

AgentVaultProxyWithTokenResponse
The proxy in proxy, and its proxy token in proxyToken (Infisical returns the token only once).
To start the proxy with the proxy token, run one of the commands in Create a proxy and start it.