Skip to content

No Way To Rename A Service #92

Description

@adrianosela

The Tailscale API supports renaming a VIP service without deleting and recreating it by sending PUT /tailnet/{tailnet}/vip-services/{oldName} with a different name in the request body. This preserves the service's assigned VIPs.

CreateOrUpdate cannot do this because it always derives the URL path from svc.Name:

  req, err := vr.buildRequest(ctx, http.MethodPut, vr.buildTailnetURL("vip-services", svc.Name), requestBody(svc))

So if svc.Name is the new name, the request goes to the new name's URL — which creates a new service rather than renaming the existing one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions