func getNode(ctx context.Context, c api.ControlClient, input string) (*api.Node, error) {
    // GetNode to match via full ID.
    rg, err := c.GetNode(ctx, &api.GetNodeRequest{NodeID: input})
    if err != nil {
        // If any error (including NotFound), ListServices to match via full name.