Skip to main content

diagrid region update

Update a region

Description​

Update an existing private region. Only the settings you pass change; the others keep their current values.

diagrid region update <region-id> [flags]

Examples​


# Update private region
diagrid region update my-region --ingress updated-domain.company.com

# Update private region location
diagrid region update my-region --location new-location

# Update private region with Diagrid managed domain
diagrid region update my-region --ingress updated-domain.company.com --enable-managed-domain

# Switch a region to fully Diagrid-managed ingress (clears any user-supplied ingress)
diagrid region update my-region --enable-managed-domain --ingress= --enable-public-management-api

# Serve a self-hosted region on one hostname, with no wildcard DNS record or certificate
diagrid region update my-region --shared-project-endpoint --ingress https://catalyst-api.company.com

# Go back to a wildcard domain
diagrid region update my-region --shared-project-endpoint=false --ingress https://*.my-region.company.com:443

# Resize a dedicated region
diagrid region update my-region --tier medium


Options​

--host string A unique host identifier. Only used in multi-host regions for scaling out across Kubernetes clusters.
--location string An informative string describing the region's physical location (e.g. "us-west").
--ingress string The URL the region's gateway is reached at: a wildcard domain (example: https://*.mydomain.com:443), or, with --shared-project-endpoint, one full hostname with no "*." (example: https://catalyst-api.mydomain.com). The port is optional. http:// is accepted but not advised for production. Omit it to keep the current ingress.
--enable-public-management-api Enable an authenticated public endpoint for accessing the region's management API. You can use this if you do not have direct network access to your region from your local machine. Pass --enable-public-management-api=false to turn it off; omit it to leave the setting unchanged.
--enable-managed-domain Enable automatic DNS and TLS management for the region. If enabled, your ingress only needs to locally resolve to the region's gateway IP address and Diagrid will provide a public DNS name and certificate. Pass --enable-managed-domain=false to turn it off; omit it to leave the setting unchanged.
--shared-project-endpoint Serve the whole region on one hostname, given as --ingress (for example https://catalyst-api.mycompany.com), instead of a wildcard domain. Every project's HTTP and gRPC API, region management, OIDC discovery, the trust bundle and app tunnels are served on it, and the App ID's API token selects the project. Only for self-hosted regions without a managed domain: the region needs one DNS record and one TLS certificate for that hostname, and no wildcard. Turning it on or off changes the region's domain, so pass --ingress with it: the full hostname with --shared-project-endpoint, a wildcard with --shared-project-endpoint=false. Every hostname under the old domain stops being served at once, so running apps need the new endpoint. Omit both to leave them unchanged.
--tier string Sizing tier for a dedicated region (small, medium, large or xlarge).
--networking string Networking posture for a dedicated region (private or public).
--support-plan string Support plan purchased with the region (select or premium; standard is available only on Diagrid-managed dedicated regions). The region's price is set by its size and support plan together, so this is part of what you pay for the region, not a separate add-on. Omit to leave the region's current support plan unchanged.
-h, --help help for update

Options inherited from parent commands​

--api-key string Diagrid Cloud API key

SEE ALSO​