Access URLs
Updated at:
Some examples print sandbox-related addresses such as sandbox_domain and envd_api_url. These fields are mainly useful for debugging and for confirming that sandbox creation succeeded.
Example
Custom template validation scripts include output like this:
print(f"sandbox_id: {sandbox.sandbox_id}")
print(f"sandbox_domain: {sandbox.sandbox_domain}")
print(f"envd_api_url: {sandbox.envd_api_url}")TypeScript example:
console.log(`sandbox_id: ${sandbox.sandboxId}`);
console.log(`sandbox_domain: ${sandbox.sandboxDomain}`);Recommendations
When your application needs to access a sandbox port, prefer
sandbox.getHost(port).For a complete port access example, see Public Access.
Do not rely on debug fields to construct internal addresses. For field stability, refer to the SDK and compatibility documentation.
Is this page helpful?