manage_dtc
Configure global server load balancing (GSLB) via DTC resources: LBDNs, pools, servers, policies. Perform create, update, delete, get, and list actions.
Instructions
Manage DNS Traffic Control (DTC/GSLB): LBDNs, pools, servers, and policies. USE THIS for global server load balancing and traffic steering. For DNS zones use manage_dns_zone(). For DNS records use manage_dns_record().
IMPORTANT: Delete runs in dry_run mode by default. LBDN is the primary resource; pools, servers, and policies are supporting configuration.
Args: resource_type: Type of DTC resource to manage action: Operation to perform name: Resource name (for create/update) resource_id: Resource ID for get/update/delete view: DNS view ID (for LBDN create) dtc_policy: DTC policy ID (for LBDN create) comment: Description dry_run: If True (default), delete shows resource only. Set False to execute.
Returns: DTC operation result
Examples: - manage_dtc(resource_type="lbdn", action="list") → all LBDNs - manage_dtc(resource_type="lbdn", action="create", name="app.example.com", view="dns/view/1", dtc_policy="dtc/policy/1") - manage_dtc(resource_type="pool", action="list") → all DTC pools - manage_dtc(resource_type="server", action="list") → all DTC servers - manage_dtc(resource_type="policy", action="list") → all DTC policies
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| view | No | ||
| action | Yes | ||
| comment | No | ||
| dry_run | No | ||
| dtc_policy | No | ||
| resource_id | No | ||
| resource_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||