For the complete documentation index, see llms.txt. This page is also available as Markdown.

create

Create a Target Group

Usage

ionosctl compute targetgroup create [flags]

Aliases

For targetgroup command:

[tg]

For create command:

[c]

Description

Create a Target Group: a reusable backend pool that an Application Load Balancer forwarding rule can point to.

This command creates the group and its health-check configuration only. It starts with zero targets; add backend servers afterwards with ionosctl compute targetgroup target add. The group does nothing on its own until an ALB FORWARD rule references its ID.

The group defines two independent layers of health checking that must both pass for a target to receive traffic:

  • Connection check (--check-timeout, --check-interval, --retries): a TCP-level probe.

  • HTTP check (--path, --method, --match-type, --response): an application-level probe whose success is decided by matching either the HTTP status code or the response body.

--protocol only accepts HTTP. See --algorithm for how traffic is distributed across targets.

Use --wait (-w) to wait for the resource to reach AVAILABLE state.

Options

Examples

Last updated