Get Environment
Environments
Get Environment
Read an environment’s identity, lifecycle state, network edges and workload identity.
Three fields exist so you can wire your own infrastructure to the environment, and all three are read live from the environment’s infrastructure on every request:
ingress_hostis the load balancer in front of the environment’s ingress. Point your own DNS records at it - aCNAMEwhen it is a hostname (AWS), anArecord when it is an IP address (GCP).public_nat_ipsare the NAT gateway addresses the environment’s outbound traffic leaves from. Allowlist them in your own firewalls and database security groups.svc_role_arnis the IAM role the environment’s pods assume on AWS. Name it as a principal in your own bucket, queue and KMS key policies. It is an identifier and not a credential, so naming it grants nothing until you also set up the trust in your own account.
All three are empty until the environment is provisioned. svc_role_arn is always empty on GCP, where the equivalent identity is a service account rather than a role.
GET
Get Environment
Authorizations
Your account API token, sent as Authorization: Bearer <api_token>. Owners and admins can read the token from the LocalOps console.
Path Parameters
The unique identifier of the environment